PluginProbe
Tutor LMS – eLearning and online course solution / 3.9.14
Tutor LMS – eLearning and online course solution v3.9.14
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/Config.php +3 -27 trunk3.9.14 View file →
@@ -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 ),