| @@ -1,67 +1,67 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Elementor Controls for widget Become a teacher 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 = []; | |
| 14 | - | |
| 15 | -// Fields tab style | |
| 16 | -$style_fields = array_merge( | |
| 17 | - LPElementorControls::add_fields_in_section( | |
| 18 | - 'title', | |
| 19 | - esc_html__( 'Title', 'learnpress' ), | |
| 20 | - Controls_Manager::TAB_STYLE, | |
| 21 | - LPElementorControls::add_controls_style_text( | |
| 22 | - 'title', | |
| 23 | - '.learn-press-form-register h3' | |
| 24 | - ) | |
| 25 | - ), | |
| 26 | - LPElementorControls::add_fields_in_section( | |
| 27 | - 'form_label', | |
| 28 | - esc_html__( 'Form Label', 'learnpress' ), | |
| 29 | - Controls_Manager::TAB_STYLE, | |
| 30 | - LPElementorControls::add_controls_style_text( | |
| 31 | - 'form_label', | |
| 32 | - '.learn-press-form-register label' | |
| 33 | - ) | |
| 34 | - ), | |
| 35 | - LPElementorControls::add_fields_in_section( | |
| 36 | - 'form_input_text', | |
| 37 | - esc_html__( 'Form Input', 'learnpress' ), | |
| 38 | - Controls_Manager::TAB_STYLE, | |
| 39 | - LPElementorControls::add_controls_style_button( | |
| 40 | - 'form_input_text', | |
| 41 | - '.learn-press-form-register input, .learn-press-form-register textarea' | |
| 42 | - ) | |
| 43 | - ), | |
| 44 | - LPElementorControls::add_fields_in_section( | |
| 45 | - 'btn_submit', | |
| 46 | - esc_html__( 'Button Submit', 'learnpress' ), | |
| 47 | - Controls_Manager::TAB_STYLE, | |
| 48 | - LPElementorControls::add_controls_style_button( | |
| 49 | - 'form', | |
| 50 | - '.learn-press-form-register button' | |
| 51 | - ) | |
| 52 | - ) | |
| 53 | -); | |
| 54 | - | |
| 55 | -return apply_filters( | |
| 56 | - 'learn-press/elementor/register-user-form', | |
| 57 | - array_merge( | |
| 58 | - apply_filters( | |
| 59 | - 'learn-press/elementor/register-user-form/tab-content', | |
| 60 | - $content_fields | |
| 61 | - ), | |
| 62 | - apply_filters( | |
| 63 | - 'learn-press/elementor/register-user-form/tab-styles', | |
| 64 | - $style_fields | |
| 65 | - ) | |
| 66 | - ) | |
| 67 | -); | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Elementor Controls for widget Become a teacher 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 = []; | |
| 14 | + | |
| 15 | +// Fields tab style | |
| 16 | +$style_fields = array_merge( | |
| 17 | + LPElementorControls::add_fields_in_section( | |
| 18 | + 'title', | |
| 19 | + esc_html__( 'Title', 'learnpress' ), | |
| 20 | + Controls_Manager::TAB_STYLE, | |
| 21 | + LPElementorControls::add_controls_style_text( | |
| 22 | + 'title', | |
| 23 | + '.learn-press-form-register h3' | |
| 24 | + ) | |
| 25 | + ), | |
| 26 | + LPElementorControls::add_fields_in_section( | |
| 27 | + 'form_label', | |
| 28 | + esc_html__( 'Form Label', 'learnpress' ), | |
| 29 | + Controls_Manager::TAB_STYLE, | |
| 30 | + LPElementorControls::add_controls_style_text( | |
| 31 | + 'form_label', | |
| 32 | + '.learn-press-form-register label' | |
| 33 | + ) | |
| 34 | + ), | |
| 35 | + LPElementorControls::add_fields_in_section( | |
| 36 | + 'form_input_text', | |
| 37 | + esc_html__( 'Form Input', 'learnpress' ), | |
| 38 | + Controls_Manager::TAB_STYLE, | |
| 39 | + LPElementorControls::add_controls_style_button( | |
| 40 | + 'form_input_text', | |
| 41 | + '.learn-press-form-register input, .learn-press-form-register textarea' | |
| 42 | + ) | |
| 43 | + ), | |
| 44 | + LPElementorControls::add_fields_in_section( | |
| 45 | + 'btn_submit', | |
| 46 | + esc_html__( 'Button Submit', 'learnpress' ), | |
| 47 | + Controls_Manager::TAB_STYLE, | |
| 48 | + LPElementorControls::add_controls_style_button( | |
| 49 | + 'form', | |
| 50 | + '.learn-press-form-register button' | |
| 51 | + ) | |
| 52 | + ) | |
| 53 | +); | |
| 54 | + | |
| 55 | +return apply_filters( | |
| 56 | + 'learn-press/elementor/register-user-form', | |
| 57 | + array_merge( | |
| 58 | + apply_filters( | |
| 59 | + 'learn-press/elementor/register-user-form/tab-content', | |
| 60 | + $content_fields | |
| 61 | + ), | |
| 62 | + apply_filters( | |
| 63 | + 'learn-press/elementor/register-user-form/tab-styles', | |
| 64 | + $style_fields | |
| 65 | + ) | |
| 66 | + ) | |
| 67 | +); | |