Plugin Directory

Changeset 2553128


Ignore:
Timestamp:
06/24/2021 05:42:21 AM (5 years ago)
Author:
re_enter_rupok
Message:

Version 1.8.2

Location:
betterdocs
Files:
177 added
6 edited

Legend:

Unmodified
Added
Removed
  • betterdocs/trunk/README.txt

    r2544882 r2553128  
    55Requires at least: 4.0
    66Tested up to: 5.7.2
    7 Stable tag: 1.8.1
     7Stable tag: 1.8.2
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    157157
    158158== Changelog ==
     159
     160= 1.8.2 - 24/06/2021 =
     161- Fixed: Disable masonry layout when nested subcategory is enabled
     162- Fixed: Compatibility issue with PHP 8.0
     163- Few minor bug fix and improvements
    159164
    160165= 1.8.1 - 09/06/2021 =
  • betterdocs/trunk/admin/class-betterdocs-admin.php

    r2536006 r2553128  
    253253            BETTERDOCS_ADMIN_URL.'/assets/img/betterdocs-icon-white.svg', 5
    254254        );
    255         add_submenu_page( 
     255        add_submenu_page(
    256256            $this->menu_slug, '',
    257257            __( 'All Docs', 'betterdocs' ),
     
    270270        foreach( $settings as $slug => $setting ) {
    271271            $cap  = isset( $setting['capability'] ) ? $setting['capability'] : 'delete_users';
    272             $hook = add_submenu_page( $this->menu_slug, $setting['title'], $setting['title'], $cap, $slug, $setting['callback'] );
     272            add_submenu_page( $this->menu_slug, $setting['title'], $setting['title'], $cap, $slug, $setting['callback'] );
    273273        }
    274274    }
  • betterdocs/trunk/betterdocs.php

    r2544882 r2553128  
    55 * Plugin URI:        https://betterdocs.co/
    66 * Description:       Create stunning Knowledge base for your WordPress website and reduce support pressure with the help of BetterDocs. Get access to amazing templates and create fully customizable KB within minutes.
    7  * Version:           1.8.1
     7 * Version:           1.8.2
    88 * Author:            WPDeveloper
    99 * Author URI:        https://wpdeveloper.net
     
    1919}
    2020
    21 define('BETTERDOCS_VERSION', '1.8.1');
     21define('BETTERDOCS_VERSION', '1.8.2');
    2222define('BETTERDOCS_DIR_PATH', plugin_dir_path(__FILE__));
    2323define('BETTERDOCS_URL', plugin_dir_url(__FILE__));
  • betterdocs/trunk/includes/elementor/class-betterdocs-elementor.php

    r2544882 r2553128  
    316316
    317317        return '';
    318     }
    319 
    320     /**
    321      * This function is responsible for counting doc post under a category.
    322      *
    323      * @param int $term_count
    324      * @param int $term_id
    325      * @return int $term_count;
    326      */
    327     public static function get_doc_post_count($term_count = 0, $term_id)
    328     {
    329         $tax_terms = get_terms('doc_category', ['child_of' => $term_id]);
    330 
    331         foreach ($tax_terms as $tax_term) {
    332             $term_count += $tax_term->count;
    333         }
    334 
    335         return $term_count;
    336318    }
    337319
  • betterdocs/trunk/public/betterdocs-shortcodes.php

    r2544882 r2553128  
    1414 * Get terms post count including child terms
    1515 */
    16 function betterdocs_get_postcount($term_count=0, $term_id, $nested_subcategory=false)
     16function betterdocs_get_postcount($term_count, $term_id, $nested_subcategory=false)
    1717{
    1818    if ($nested_subcategory==false) {
     
    9090            if ($get_args['sidebar_list'] == true) {
    9191                $class[] = 'layout-flex';
    92             } elseif ($masonry == true) {
     92            } elseif ($masonry == true && $nested_subcategory == false) {
    9393                wp_enqueue_script('masonry');
    9494                $class[] = 'layout-masonry';
     
    269269        </div>';
    270270        }
    271         if ($masonry == true ) {
     271        if ($masonry == true && $nested_subcategory == false) {
    272272            $output = betterdocs_generate_output();
    273273            echo '<script>
  • betterdocs/trunk/public/partials/template-single/layout-1.php

    r2522453 r2553128  
    138138                    $post_social_share = get_theme_mod('betterdocs_post_social_share', true);
    139139                    if ($post_social_share == true) {
    140                         $social_sharing_text = get_theme_mod('betterdocs_social_sharing_text', 'Share This Article :');
     140                        $social_sharing_text = get_theme_mod('betterdocs_social_sharing_text', esc_html__('Share This Article :','betterdocs'));
    141141                        $facebook_sharing = get_theme_mod('betterdocs_post_social_share_facebook', true);
    142142                        $twitter_sharing = get_theme_mod('betterdocs_post_social_share_twitter', true);
Note: See TracChangeset for help on using the changeset viewer.