PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 1.7.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v1.7.3
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 / includes / elementor / betterdocs-doc-archive.php

betterdocs-doc-archive.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 1.7.3, at includes/elementor/betterdocs-doc-archive.php

59 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use ElementorPro\Modules\ThemeBuilder\Documents\Archive;
4
5 if (!defined('ABSPATH')) {
6 exit; // Exit if accessed directly
7 }
8
9 class Betterdocs_Doc_Archive extends Archive
10 {
11 public static function get_properties()
12 {
13 $properties = parent::get_properties();
14
15 $properties['location'] = 'archive';
16 $properties['condition_type'] = 'doc_archive';
17
18 return $properties;
19 }
20
21 protected static function get_site_editor_type()
22 {
23 return 'doc-archive';
24 }
25
26 public static function get_title()
27 {
28 return __('Docs Archive', 'betterdocs');
29 }
30
31 protected static function get_editor_panel_categories()
32 {
33 $categories = [
34 'docs-archive' => [
35 'title' => __('Docs Archive', 'elementor-pro'),
36 ],
37 ];
38 $categories += parent::get_editor_panel_categories();
39 unset($categories['theme-elements-archive']);
40 return $categories;
41 }
42
43 public static function get_editor_panel_config()
44 {
45 $config = parent::get_editor_panel_config();
46 $config['widgets_settings']['theme-archive-title']['categories'][] = 'docs-archive';
47 return $config;
48 }
49
50 protected function get_remote_library_config()
51 {
52 $config = parent::get_remote_library_config();
53
54 $config['category'] = 'Docs Archive';
55
56 return $config;
57 }
58 }
59