← All changes
|
config/elementor/instructor/sections/count_courses.php
+59
-59
4.3.8
→
4.4.8
View file →
| @@ -1,59 +1,59 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Elementor Controls for widget Instructor Count Courses settings. | |
| 4 | - * | |
| 5 | - * @since 4.2.3 | |
| 6 | - * @version 1.0.0 | |
| 7 | - */ | |
| 8 | - | |
| 9 | -use Elementor\Controls_Manager; | |
| 10 | -use LearnPress\ExternalPlugin\Elementor\LPElementorControls; | |
| 11 | - | |
| 12 | -// Fields tab content | |
| 13 | -$content_fields = array_merge( | |
| 14 | - LPElementorControls::add_fields_in_section( | |
| 15 | - 'wrapper', | |
| 16 | - esc_html__( 'Wrapper', 'learnpress' ), | |
| 17 | - Controls_Manager::TAB_CONTENT, | |
| 18 | - [ | |
| 19 | - LPElementorControls::add_control_type( | |
| 20 | - 'instructor_id', | |
| 21 | - esc_html__( 'Set Instructor ID', 'learnpress' ), | |
| 22 | - '', | |
| 23 | - Controls_Manager::TEXT, | |
| 24 | - [ | |
| 25 | - 'description' => 'If widget include on page is Single Instructor, will be get instructor id automatic, from query var.', | |
| 26 | - ] | |
| 27 | - ) | |
| 28 | - ] | |
| 29 | - ), | |
| 30 | - [] | |
| 31 | -); | |
| 32 | - | |
| 33 | -// Fields tab style | |
| 34 | -$style_fields = array_merge( | |
| 35 | - LPElementorControls::add_fields_in_section( | |
| 36 | - 'instructor_count_courses', | |
| 37 | - esc_html__( 'Instructor Count Courses', 'learnpress' ), | |
| 38 | - Controls_Manager::TAB_STYLE, | |
| 39 | - LPElementorControls::add_controls_style_text( | |
| 40 | - 'count_courses', | |
| 41 | - '.instructor-total-courses' | |
| 42 | - ) | |
| 43 | - ), | |
| 44 | - [] | |
| 45 | -); | |
| 46 | - | |
| 47 | -return apply_filters( | |
| 48 | - 'learn-press/elementor/instructor/count-courses', | |
| 49 | - array_merge( | |
| 50 | - apply_filters( | |
| 51 | - 'learn-press/elementor/instructor/count-courses/tab-content', | |
| 52 | - $content_fields | |
| 53 | - ), | |
| 54 | - apply_filters( | |
| 55 | - 'learn-press/elementor/instructor/count-courses/tab-styles', | |
| 56 | - $style_fields | |
| 57 | - ) | |
| 58 | - ) | |
| 59 | -); | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Elementor Controls for widget Instructor Count Courses settings. | |
| 4 | + * | |
| 5 | + * @since 4.2.3 | |
| 6 | + * @version 1.0.0 | |
| 7 | + */ | |
| 8 | + | |
| 9 | +use Elementor\Controls_Manager; | |
| 10 | +use LearnPress\ExternalPlugin\Elementor\LPElementorControls; | |
| 11 | + | |
| 12 | +// Fields tab content | |
| 13 | +$content_fields = array_merge( | |
| 14 | + LPElementorControls::add_fields_in_section( | |
| 15 | + 'wrapper', | |
| 16 | + esc_html__( 'Wrapper', 'learnpress' ), | |
| 17 | + Controls_Manager::TAB_CONTENT, | |
| 18 | + [ | |
| 19 | + LPElementorControls::add_control_type( | |
| 20 | + 'instructor_id', | |
| 21 | + esc_html__( 'Set Instructor ID', 'learnpress' ), | |
| 22 | + '', | |
| 23 | + Controls_Manager::TEXT, | |
| 24 | + [ | |
| 25 | + 'description' => 'If widget include on page is Single Instructor, will be get instructor id automatic, from query var.', | |
| 26 | + ] | |
| 27 | + ) | |
| 28 | + ] | |
| 29 | + ), | |
| 30 | + [] | |
| 31 | +); | |
| 32 | + | |
| 33 | +// Fields tab style | |
| 34 | +$style_fields = array_merge( | |
| 35 | + LPElementorControls::add_fields_in_section( | |
| 36 | + 'instructor_count_courses', | |
| 37 | + esc_html__( 'Instructor Count Courses', 'learnpress' ), | |
| 38 | + Controls_Manager::TAB_STYLE, | |
| 39 | + LPElementorControls::add_controls_style_text( | |
| 40 | + 'count_courses', | |
| 41 | + '.instructor-total-courses' | |
| 42 | + ) | |
| 43 | + ), | |
| 44 | + [] | |
| 45 | +); | |
| 46 | + | |
| 47 | +return apply_filters( | |
| 48 | + 'learn-press/elementor/instructor/count-courses', | |
| 49 | + array_merge( | |
| 50 | + apply_filters( | |
| 51 | + 'learn-press/elementor/instructor/count-courses/tab-content', | |
| 52 | + $content_fields | |
| 53 | + ), | |
| 54 | + apply_filters( | |
| 55 | + 'learn-press/elementor/instructor/count-courses/tab-styles', | |
| 56 | + $style_fields | |
| 57 | + ) | |
| 58 | + ) | |
| 59 | +); | |