PluginProbe
Tutor LMS – eLearning and online course solution / 1.6.0
Tutor LMS – eLearning and online course solution v1.6.0
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
← All changes | classes/Theme_Compatibility.php +13 -20 trunk1.6.0 View file →
@@ -1,39 +1,32 @@
1 1 <?php
2 2 /**
3 3 * Integration class
4 4 *
5 - * @package Tutor\ThemeCompatibility
6 - * @author Themeum <support@themeum.com>
7 - * @link https://themeum.com
8 - * @since 1.0.0
5 + * @author: themeum
6 + * @author_uri: https://themeum.com
7 + * @package Tutor
8 + * @since v.1.0.0
9 9 */
10 10
11 +
11 12 namespace TUTOR;
12 13
13 -if ( ! defined( 'ABSPATH' ) ) {
14 +
15 +if ( ! defined( 'ABSPATH' ) )
14 16 exit;
15 -}
16 -/**
17 - * Template compatibility
18 - *
19 - * @since 1.0.0
20 - */
17 +
21 18 class Theme_Compatibility {
22 19
23 - /**
24 - * Prepare dependencies
25 - *
26 - * @since 1.0.0
27 - */
28 20 public function __construct() {
29 - $template = trailingslashit( get_template() );
21 + $template = trailingslashit(get_template());
30 22 $tutor_path = tutor()->path;
31 23
32 - $compatibility_theme_path = $tutor_path . 'includes/theme-compatibility/' . $template . 'functions.php';
24 + $compatibility_theme_path = $tutor_path.'includes/theme-compatibility/'.$template.'functions.php';
33 25
34 - if ( file_exists( $compatibility_theme_path ) ) {
26 + if (file_exists($compatibility_theme_path)){
35 27 include $compatibility_theme_path;
36 28 }
37 29
38 30 }
39 -}
31 +
32 +}