PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.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 3.5.2 All 199 releases
betterdocs / views / widgets / archive-header.php

archive-header.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.8.2, at views/widgets/archive-header.php

39 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! isset( $current_category ) ) {
3 return;
4 }
5
6 $count_suffix_singular = betterdocs()->settings->get( 'count_text_singular' );
7 $count_suffix = betterdocs()->settings->get( 'count_text' );
8 $_counts = [
9 'counts' => $found_posts,
10 'prefix' => ! empty( $count_prefix ) ? $count_prefix : '',
11 'suffix' => ! empty( $count_suffix ) ? $count_suffix : '',
12 'suffix_singular' => ! empty( $count_suffix_singular ) ? $count_suffix_singular : ''
13 ];
14 ?>
15
16 <div class="<?php echo $blockId; ?> betterdocs-main-category-folder">
17 <div class="betterdocs-category-header">
18 <div class="betterdocs-category-header-inner">
19 <?php
20 $view_object->get( 'template-parts/category-icon', [
21 'show_icon' => $show_icon,
22 'category_icon' => 'folder-open',
23 'term_id' => isset( $current_category->term_id ) ? $current_category->term_id : ''
24 ] );
25
26 $view_object->get( 'template-parts/category-title', [
27 'title' => isset( $current_category->name ) ? $current_category->name : '',
28 'tag' => $title_tag
29 ] );
30
31 $view_object->get( 'template-parts/sub-category-counter', [
32 'show_count' => $show_count,
33 'counts' => $_counts
34 ] );
35 ?>
36 </div>
37 </div>
38 </div>
39