PluginProbe
weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot / trunk
weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot vtrunk
2.5.0 2.4.1 2.4.0 2.3.1 2.3.0 2.2.5 2.2.6 2.2.7 2.2.2 2.2.3 2.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.4 1.4.1 1.5 1.6 1.6.1 1.6.2 1.6.3 1.7 1.7.1 1.7.2 All 54 releases
wedocs / includes / Theme_Support.php

Theme_Support.php in weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot trunk, at includes/Theme_Support.php

63 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WeDevs\WeDocs;
4
5 /**
6 * Theme Support Class.
7 *
8 * @since 1.4
9 */
10 class Theme_Support {
11
12 /**
13 * Theme wrapper class
14 *
15 * @var \WeDevs\WeDocs\Theme\Twenty_Seventeen
16 */
17 public $twenty17;
18
19 /**
20 * Theme wrapper class
21 *
22 * @var \WeDevs\WeDocs\Theme\Twenty_Fifteen
23 */
24 public $twenty15;
25
26 /**
27 * Theme wrapper class
28 *
29 * @var \WeDevs\WeDocs\Theme\Astra
30 */
31 public $astra;
32
33 /**
34 * Initialize the class
35 */
36 public function __construct() {
37 $this->theme_support();
38 }
39
40 /**
41 * Loads theme compatibility wrappers.
42 *
43 * @return void
44 */
45 public function theme_support() {
46 $current_theme = get_template();
47
48 switch ( $current_theme ) {
49 case 'twentyseventeen':
50 $this->twenty17 = new Theme\Twenty_Seventeen();
51 break;
52
53 case 'twentyfifteen':
54 $this->twenty15 = new Theme\Twenty_Fifteen();
55 break;
56
57 case 'astra':
58 $this->astra = new Theme\Astra();
59 break;
60 }
61 }
62 }
63