PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 All 201 releases
← All changes | views/templates/sidebars/sidebar-8.php +7 -1 4.5.0 → 4.9.3 View file →
@@ -1,6 +1,11 @@
1 1 <?php
2 - if ( ( isset( $force ) && $force == null ) || ! isset( $force ) ) {
2 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.
3 +
4 +if ( ! defined( 'ABSPATH' ) ) {
5 + exit;
6 +}
7 +if ( ( isset( $force ) && $force == null ) || ! isset( $force ) ) {
3 8 if ( ! betterdocs()->settings->get( 'enable_sidebar_cat_list' ) && isset( $layout_type ) && $layout_type == 'template' ) {
4 9 return;
5 10 }
6 11 }
@@ -45,8 +50,9 @@
45 50 'title_tag' => betterdocs()->template_helper->is_valid_tag( $title_tag ),
46 51 'layout_type' => isset( $layout_type ) ? $layout_type : '',
47 52 'show_list_icon' => false,
48 53 'wrapper_class' => 'sidebar-8',
54 + 'lazy_load' => ! empty( betterdocs()->settings->get( 'archive_lazy_load_descendants' ) ),
49 55 ];
50 56
51 57 if ( isset( $layout_type ) && $layout_type == 'template' ) {
52 58 $_shortcode_attr['list_icon_url'] = ! empty( betterdocs()->customizer->defaults->get( 'betterdocs_sidbebar_item_list_icon' ) ) ? betterdocs()->customizer->defaults->get( 'betterdocs_sidbebar_item_list_icon' ) : ( ! empty( betterdocs()->settings->get( 'docs_list_icon' ) ) ? betterdocs()->settings->get( 'docs_list_icon' )['url'] : '' );