PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / inc / class-lp-theme-support.php

class-lp-theme-support.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7, at inc/class-lp-theme-support.php

42 lines 673 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class LP_Theme_Support
5 *
6 * @since 4.x.x
7 */
8 class LP_Theme_Support {
9
10 /**
11 * @var LP_Theme_Support_Base
12 */
13 public $theme = null;
14
15 /**
16 * LP_Theme_Support constructor.
17 */
18 public function __construct() {
19 $template = get_template();
20 $theme_support = LP_PLUGIN_PATH . "inc/theme-support/{$template}/class-{$template}.php";
21
22 if ( file_exists( $theme_support ) ) {
23 $this->theme = include_once $theme_support;
24 }
25 }
26
27 /**
28 * @return LP_Theme_Support
29 */
30 public static function instance() {
31 static $instance = null;
32
33 if ( ! $instance ) {
34 $instance = new self();
35 }
36
37 return $instance;
38 }
39 }
40
41 return LP_Theme_Support::instance();
42