| 1 |
<?php |
| 2 |
/** |
| 3 |
* Addons class |
| 4 |
* |
| 5 |
* @author: themeum |
| 6 |
* @author_uri: https://themeum.com |
| 7 |
* @package Tutor |
| 8 |
* @since v.1.0.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
|
| 12 |
namespace TUTOR; |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
|
| 18 |
class Addons { |
| 19 |
|
| 20 |
public function __construct() { |
| 21 |
add_filter( 'tutor_pro_addons_lists_for_display', array( $this, 'tutor_addons_lists_to_show' ) ); |
| 22 |
} |
| 23 |
|
| 24 |
public function tutor_addons_lists_to_show() { |
| 25 |
$addons = array( |
| 26 |
'buddypress' => array( |
| 27 |
'name' => __( 'BuddyPress', 'tutor' ), |
| 28 |
'description' => 'Discuss about course and share your knowledge with your friends through BuddyPress', |
| 29 |
), |
| 30 |
'gradebook' => array( |
| 31 |
'name' => __( 'Gradebook', 'tutor' ), |
| 32 |
'description' => 'Shows student progress from assignment and quiz', |
| 33 |
), |
| 34 |
'content-drip' => array( |
| 35 |
'name' => __( 'Content Drip', 'tutor' ), |
| 36 |
'description' => 'Unlock lessons by schedule or when the student meets specific condition.', |
| 37 |
), |
| 38 |
'enrollments' => array( |
| 39 |
'name' => __( 'Enrollments', 'tutor' ), |
| 40 |
'description' => 'Take advanced control on enrollments. Enroll the student manually.', |
| 41 |
), |
| 42 |
'wc-subscriptions' => array( |
| 43 |
'name' => __( 'WooCommerce Subscriptions', 'tutor' ), |
| 44 |
'description' => 'Capture Residual Revenue with Recurring Payments.', |
| 45 |
), |
| 46 |
'pmpro' => array( |
| 47 |
'name' => __( 'Paid Memberships Pro', 'tutor' ), |
| 48 |
'description' => 'Maximize revenue by selling membership access to all of your courses.', |
| 49 |
), |
| 50 |
'restrict-content-pro' => array( |
| 51 |
'name' => __( 'Restrict Content Pro', 'tutor' ), |
| 52 |
'description' => 'Unlock Course depending on Restrict Content Pro Plugin Permission.', |
| 53 |
), |
| 54 |
'tutor-assignments' => array( |
| 55 |
'name' => __( 'Tutor Assignments', 'tutor' ), |
| 56 |
'description' => 'Tutor assignments is a great way to assign tasks to students.', |
| 57 |
), |
| 58 |
'tutor-certificate' => array( |
| 59 |
'name' => __( 'Tutor Certificate', 'tutor' ), |
| 60 |
'description' => 'Students will be able to download a certificate after course completion.', |
| 61 |
), |
| 62 |
'tutor-course-attachments' => array( |
| 63 |
'name' => __( 'Tutor Course Attachments', 'tutor' ), |
| 64 |
'description' => 'Add unlimited attachments/ private files to any Tutor course', |
| 65 |
), |
| 66 |
'tutor-course-preview' => array( |
| 67 |
'name' => __( 'Tutor Course Preview', 'tutor' ), |
| 68 |
'description' => 'Unlock some lessons for students before enrollment.', |
| 69 |
), |
| 70 |
'tutor-email' => array( |
| 71 |
'name' => __( 'Tutor E-Mail', 'tutor' ), |
| 72 |
'description' => 'Send email on various tutor events', |
| 73 |
), |
| 74 |
'tutor-multi-instructors' => array( |
| 75 |
'name' => __( 'Tutor Multi Instructors', 'tutor' ), |
| 76 |
'description' => 'Start a course with multiple instructors by Tutor Multi Instructors', |
| 77 |
), |
| 78 |
'tutor-prerequisites' => array( |
| 79 |
'name' => __( 'Tutor Prerequisites', 'tutor' ), |
| 80 |
'description' => 'Specific course you must complete before you can enroll new course by Tutor Prerequisites', |
| 81 |
), |
| 82 |
'tutor-report' => array( |
| 83 |
'name' => __( 'Tutor Report', 'tutor' ), |
| 84 |
'description' => 'Check your course performance through Tutor Report stats.', |
| 85 |
), |
| 86 |
'quiz-import-export' => array( |
| 87 |
'name' => __( 'Quiz Export/Import', 'tutor' ), |
| 88 |
'description' => __( 'Save time by exporting/importing quiz data with easy options.', 'tutor' ), |
| 89 |
), |
| 90 |
'tutor-zoom' => array( |
| 91 |
'name' => __( 'Tutor Zoom Integration', 'tutor' ), |
| 92 |
'description' => __( 'Connect Tutor LMS with Zoom to host live online classes. Students can attend live classes right from the lesson page.', 'tutor' ), |
| 93 |
), |
| 94 |
'google-classroom' => array( |
| 95 |
'name' => __( 'Google Classroom Integration', 'tutor' ), |
| 96 |
'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' ), |
| 97 |
), |
| 98 |
'tutor-calendar' => array( |
| 99 |
'name' => 'Calendar', |
| 100 |
'description' => 'Allow students to see everything in a calendar view in the front dashboard.' |
| 101 |
), |
| 102 |
'tutor-notifications' => array( |
| 103 |
'name' => 'Notifications', |
| 104 |
'description' => 'Get On Site and Push Notifications on specified tutor events.' |
| 105 |
), |
| 106 |
'tutor-wpml' => array( |
| 107 |
'name' => __( 'WPML Multilingual CMS', 'tutor' ), |
| 108 |
'description' => __( 'Create multilingual courses, lessons, dashboard and more for a global audience.', 'tutor' ), |
| 109 |
), |
| 110 |
); |
| 111 |
|
| 112 |
return $addons; |
| 113 |
} |
| 114 |
} |
| 115 |
|