| @@ -9,39 +9,16 @@ | ||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | namespace TUTOR; |
| 12 | 12 | |
| 13 | -defined( 'ABSPATH' ) || exit; | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit; | |
| 15 | +} | |
| 14 | 16 | |
| 15 | 17 | /** |
| 16 | 18 | * Config Class |
| 17 | 19 | * |
| 18 | 20 | * @since 3.7.0 |
| 19 | - * | |
| 20 | - * @property string $path Plugin file path. | |
| 21 | - * @property string $url Plugin url. | |
| 22 | - * @property string $basename Plugin base name. | |
| 23 | - * @property string $basepath Plugin base path. | |
| 24 | - * @property string $version Plugin version. | |
| 25 | - * @property string $assets_url Assets url. | |
| 26 | - * @property string $template_path Template path. | |
| 27 | - * @property string $icon_dir Icons dir. | |
| 28 | - * @property string $v2_img_dir Version 2 images dir. | |
| 29 | - * @property string $current_url Current url. | |
| 30 | - * @property string $nonce_action Nonce action. | |
| 31 | - * @property string $nonce Nonce. | |
| 32 | - * @property bool $has_pro Has pro plugin. | |
| 33 | - * @property string $course_post_type Course post type. | |
| 34 | - * @property string $bundle_post_type Bundle post type. | |
| 35 | - * @property string $lesson_post_type Lesson post type. | |
| 36 | - * @property string $instructor_role Instructor role. | |
| 37 | - * @property string $topics_post_type Topics post type. | |
| 38 | - * @property string $announcement_post_type Announcement post type. | |
| 39 | - * @property string $assignment_post_type Assignment post type. | |
| 40 | - * @property string $enrollment_post_type Enrollment post type. | |
| 41 | - * @property string $quiz_post_type Quiz post type. | |
| 42 | - * @property string $zoom_post_type Zoom post type. | |
| 43 | - * @property string $meet_post_type Meet post type. | |
| 44 | 21 | */ |
| 45 | 22 | class Config extends Singleton { |
| 46 | 23 | /** |
| 47 | 24 | * All settings. |
| @@ -71,9 +48,8 @@ | ||
| 71 | 48 | |
| 72 | 49 | $this->settings = array( |
| 73 | 50 | 'path' => $path, |
| 74 | 51 | 'url' => plugin_dir_url( TUTOR_FILE ), |
| 75 | - 'assets_url' => plugin_dir_url( TUTOR_FILE ) . 'assets/', | |
| 76 | 52 | 'icon_dir' => plugin_dir_url( TUTOR_FILE ) . 'assets/images/images-v2/icons/', |
| 77 | 53 | 'v2_img_dir' => plugin_dir_url( TUTOR_FILE ) . 'assets/images/images-v2/', |
| 78 | 54 | 'current_url' => $current_url, |
| 79 | 55 | 'basename' => plugin_basename( TUTOR_FILE ), |