| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Declare list LP widgets for elementor |
| 5 |
*/ |
| 6 |
|
| 7 |
use LearnPress\ExternalPlugin\Elementor\Widgets\BecomeATeacherElementor; |
| 8 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseAuthorNameElementor; |
| 9 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseAuthorAvatarElementor; |
| 10 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseAuthorUrlElementor; |
| 11 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseCapacityDynamicElementor; |
| 12 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseCountLessonDynamicElementor; |
| 13 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseCountQuizDynamicElementor; |
| 14 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseCountStudentDynamicElementor; |
| 15 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseDurationDynamicElementor; |
| 16 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseLevelDynamicElementor; |
| 17 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseOfflineDeliverTypeDynamicElementor; |
| 18 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseOfflineAddressDynamicElementor; |
| 19 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CourseOfflineCountLessonDynamicElementor; |
| 20 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\ListCoursesByPageElementor; |
| 21 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Sections\CoursePriceElementor; |
| 22 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\FilterCourseElementor; |
| 23 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Skins\CoursesGrid; |
| 24 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Skins\CoursesList; |
| 25 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Skins\CoursesLoopItem; |
| 26 |
use LearnPress\ExternalPlugin\Elementor\Widgets\CourseListElementor; |
| 27 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Instructor\Sections\InstructorButtonViewElementor; |
| 28 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Instructor\Sections\InstructorDescriptionElementor; |
| 29 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Instructor\Sections\InstructorTitleElementor; |
| 30 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Instructor\Sections\InstructorAvatarElementor; |
| 31 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Instructor\Sections\InstructorCountStudentsElementor; |
| 32 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Instructor\Sections\InstructorCountCoursesElementor; |
| 33 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Instructor\ListInstructorsElementor; |
| 34 |
use LearnPress\ExternalPlugin\Elementor\Widgets\LoginUserFormElementor; |
| 35 |
use LearnPress\ExternalPlugin\Elementor\Widgets\RegisterUserFormElementor; |
| 36 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CountCoursesFreeDynamicElementor; |
| 37 |
use LearnPress\ExternalPlugin\Elementor\Widgets\Course\Dynamic\CountStudentDynamicElementor; |
| 38 |
|
| 39 |
return [ |
| 40 |
'widgets' => apply_filters( |
| 41 |
'lp/elementor/widgets', |
| 42 |
[ |
| 43 |
//'single-instructor' => SingleInstructorElementor::class, |
| 44 |
'list-instructors' => ListInstructorsElementor::class, |
| 45 |
'instructor-title' => InstructorTitleElementor::class, |
| 46 |
'instructor-description' => InstructorDescriptionElementor::class, |
| 47 |
'instructor-button-view' => InstructorButtonViewElementor::class, |
| 48 |
'instructor-avatar' => InstructorAvatarElementor::class, |
| 49 |
'instructor-count-students' => InstructorCountStudentsElementor::class, |
| 50 |
'instructor-count-courses' => InstructorCountCoursesElementor::class, |
| 51 |
'become-a-teacher' => BecomeATeacherElementor::class, |
| 52 |
'login-form' => LoginUserFormElementor::class, |
| 53 |
'register-form' => RegisterUserFormElementor::class, |
| 54 |
'list-courses' => CourseListElementor::class, |
| 55 |
//'list-courses-by-page' => ListCoursesByPageElementor::class, |
| 56 |
// Single Course |
| 57 |
'course-price' => CoursePriceElementor::class, |
| 58 |
//'filter-course' => FilterCourseElementor::class |
| 59 |
] |
| 60 |
), |
| 61 |
'dynamic' => apply_filters( |
| 62 |
'lp/elementor/dynamic', |
| 63 |
[ |
| 64 |
'course-count-student' => CourseCountStudentDynamicElementor::class, |
| 65 |
'course-count-lesson' => CourseCountLessonDynamicElementor::class, |
| 66 |
'course-offline-count-lesson' => CourseOfflineCountLessonDynamicElementor::class, |
| 67 |
'course-deliver-type' => CourseOfflineDeliverTypeDynamicElementor::class, |
| 68 |
'course-address' => CourseOfflineAddressDynamicElementor::class, |
| 69 |
'course-count-quiz' => CourseCountQuizDynamicElementor::class, |
| 70 |
'course-count-level' => CourseLevelDynamicElementor::class, |
| 71 |
'course-count-duration' => CourseDurationDynamicElementor::class, |
| 72 |
'course-author-name' => CourseAuthorNameElementor::class, |
| 73 |
'course-author-avatar' => CourseAuthorAvatarElementor::class, |
| 74 |
'course-author-url' => CourseAuthorUrlElementor::class, |
| 75 |
'count-student-courses' => CountStudentDynamicElementor::class, |
| 76 |
'course-courses-free' => CountCoursesFreeDynamicElementor::class, |
| 77 |
'course-capacity' => CourseCapacityDynamicElementor::class, |
| 78 |
] |
| 79 |
), |
| 80 |
'loadAjax' => apply_filters( |
| 81 |
'lp/elementor/loadAjax', |
| 82 |
[ |
| 83 |
CoursesGrid::class . ':render_courses', |
| 84 |
CoursesList::class . ':render_courses', |
| 85 |
CoursesLoopItem::class . ':render_courses', |
| 86 |
] |
| 87 |
), |
| 88 |
]; |
| 89 |
|