PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
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 3.5.1 All 200 releases
← All changes | includes/Shortcodes/CategoryList.php +5 -3 4.5.24.9.2 View file →
@@ -39,9 +39,10 @@
39 39 'title_tag' => 'h2',
40 40 'layout_type' => '',
41 41 'list_icon_url' => '',
42 42 'sidebar_layout' => '',
43 - 'list_icon_name' => ''
43 + 'list_icon_name' => '',
44 + 'lazy_load' => false
44 45 ];
45 46 }
46 47
47 48 public function view_params() {
@@ -46,9 +47,9 @@
46 47
47 48 public function view_params() {
48 49 $terms_query = $this->query->terms_query(
49 50 [
50 - 'multiple_kb' => $this->attributes['multiple_knowledge_base'],
51 + 'multiple_kb' => ( $this->attributes['multiple_knowledge_base'] && ! empty( $this->attributes['kb_slug'] ) ) ? true : false,
51 52 'kb_slug' => $this->attributes['kb_slug'],
52 53 'terms' => $this->attributes['terms'],
53 54 'order' => $this->attributes['terms_order'],
54 55 'orderby' => $this->attributes['terms_orderby'],
@@ -89,9 +90,10 @@
89 90 'layout_type' => $this->attributes['layout_type'],
90 91 'list_icon_url' => $this->attributes['list_icon_url'],
91 92 'sidebar_layout' => $this->attributes['sidebar_layout'],
92 93 'list_icon_name' => $this->attributes['list_icon_name'],
93 - 'title_tag' => $this->attributes['title_tag']
94 + 'title_tag' => $this->attributes['title_tag'],
95 + 'lazy_load' => ! empty( $this->attributes['lazy_load'] )
94 96 ];
95 97 }
96 98
97 99 public function render( $atts, $content = null ) {