PluginProbe
Tutor LMS – eLearning and online course solution / 1.8.10
Tutor LMS – eLearning and online course solution v1.8.10
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/Addons.php +89 -2 1.0.41.8.10 View file →
@@ -10,14 +10,101 @@
10 10
11 11
12 12 namespace TUTOR;
13 13
14 -
15 14 if ( ! defined( 'ABSPATH' ) )
16 15 exit;
17 16
18 17 class Addons {
19 18
19 + public function __construct() {
20 + add_filter('tutor_pro_addons_lists_for_display', array($this, 'tutor_addons_lists_to_show'));
21 + }
22 +
23 + public function tutor_addons_lists_to_show(){
24 + $addons = array(
25 + 'buddypress' => array(
26 + 'name' => __('BuddyPress', 'tutor'),
27 + 'description' => 'Discuss about course and share your knowledge with your friends through BuddyPress',
28 + ),
29 + 'gradebook' => array(
30 + 'name' => __('Gradebook', 'tutor'),
31 + 'description' => 'Shows student progress from assignment and quiz',
32 + ),
33 + 'content-drip' => array(
34 + 'name' => __('Content Drip', 'tutor'),
35 + 'description' => 'Unlock lessons by schedule or when the student meets specific condition.',
36 + ),
37 + 'enrollments' => array(
38 + 'name' => __('Enrollments', 'tutor'),
39 + 'description' => 'Take advanced control on enrollments. Enroll the student manually.',
40 + ),
41 + 'wc-subscriptions' => array(
42 + 'name' => __('WooCommerce Subscriptions', 'tutor'),
43 + 'description' => 'Capture Residual Revenue with Recurring Payments.',
44 + ),
45 + 'pmpro' => array(
46 + 'name' => __('Paid Memberships Pro', 'tutor'),
47 + 'description' => 'Maximize revenue by selling membership access to all of your courses.',
48 + ),
49 + 'restrict-content-pro' => array(
50 + 'name' => __('Restrict Content Pro', 'tutor'),
51 + 'description' => 'Unlock Course depending on Restrict Content Pro Plugin Permission.',
52 + ),
53 + 'tutor-assignments' => array(
54 + 'name' => __('Tutor Assignments', 'tutor'),
55 + 'description' => 'Tutor assignments is a great way to assign tasks to students.',
56 + ),
57 + 'tutor-certificate' => array(
58 + 'name' => __('Tutor Certificate', 'tutor'),
59 + 'description' => 'Students will be able to download a certificate after course completion.',
60 + ),
61 + 'tutor-course-attachments' => array(
62 + 'name' => __('Tutor Course Attachments', 'tutor'),
63 + 'description' => 'Add unlimited attachments/ private files to any Tutor course',
64 + ),
65 + 'tutor-course-preview' => array(
66 + 'name' => __('Tutor Course Preview', 'tutor'),
67 + 'description' => 'Unlock some lessons for students before enrollment.',
68 + ),
69 + 'tutor-email' => array(
70 + 'name' => __('Tutor E-Mail', 'tutor'),
71 + 'description' => 'Send email on various tutor events',
72 + ),
73 + 'tutor-multi-instructors' => array(
74 + 'name' => __('Tutor Multi Instructors', 'tutor'),
75 + 'description' => 'Start a course with multiple instructors by Tutor Multi Instructors',
76 + ),
77 + 'tutor-prerequisites' => array(
78 + 'name' => __('Tutor Prerequisites', 'tutor'),
79 + 'description' => 'Specific course you must complete before you can enroll new course by Tutor Prerequisites',
80 + ),
81 + 'tutor-report' => array(
82 + 'name' => __('Tutor Report', 'tutor'),
83 + 'description' => 'Check your course performance through Tutor Report stats.',
84 + ),
85 + 'quiz-import-export' => array(
86 + 'name' => __('Quiz Export/Import', 'tutor'),
87 + 'description' => __('Save time by exporting/importing quiz data with easy options.', 'tutor'),
88 + ),
89 + 'tutor-zoom' => array(
90 + 'name' => __('Tutor Zoom Integration', 'tutor'),
91 + 'description' => __('Connect Tutor LMS with Zoom to host live online classes. Students can attend live classes right from the lesson page.', 'tutor'),
92 + ),
93 + 'google-classroom' => array(
94 + 'name' => __('Google Classroom Integration', 'tutor'),
95 + 'description' => __('Helps connect Google Classrooms with Tutor LMS courses, allowing you to use features like Classroom streams and files directly from the Tutor LMS course.', 'tutor'),
96 + ),
97 + );
98 +
99 + return $addons;
100 + }
101 +
102 +
103 + /**
104 + * @deprecated from alpha version
105 + */
106 +
20 107 public function addons_page(){
21 108
22 109 if ( false === ( $addons_themes_data = get_transient( 'tutor_addons_themes_data' ) ) ) {
23 110 //Request New
@@ -40,9 +127,9 @@
40 127 if (tutor_utils()->avalue_dot('body', $response) && tutor_utils()->avalue_dot('response.code', $response) == 200 ){
41 128 $api_data = tutor_utils()->avalue_dot('body', $response);
42 129
43 130 $addons_themes_data = array(
44 - 'last_checked_time' => time(),
131 + 'last_checked_time' => tutor_time(),
45 132 'data' => $api_data,
46 133 );
47 134 }
48 135 }