| @@ -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 | +} | |