PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.2
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.2
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / config / elementor / instructor / become-a-teacher.php

become-a-teacher.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.2, at config/elementor/instructor/become-a-teacher.php

104 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 = LPElementorControls::add_fields_in_section(
14 'content',
15 esc_html__( 'Content', 'learnpress' ),
16 Controls_Manager::TAB_CONTENT,
17 [
18 'title' => LPElementorControls::add_control_type(
19 'title',
20 esc_html__( 'Title', 'learnpress' ),
21 esc_html__( 'Become a teacher', 'learnpress' )
22 ),
23 'description' => LPElementorControls::add_control_type(
24 'description',
25 esc_html__( 'Description', 'learnpress' ),
26 esc_html__( 'Fill in your information and send it to us to become a teacher.', 'learnpress' ),
27 Controls_Manager::TEXTAREA
28 ),
29 'submit_button_text' => LPElementorControls::add_control_type(
30 'submit_button_text',
31 esc_html__( 'Button text', 'learnpress' ),
32 esc_html__( 'Submit', 'learnpress' )
33 ),
34 'submit_button_process_text' => LPElementorControls::add_control_type(
35 'submit_button_process_text',
36 esc_html__( 'Button Processing text', 'learnpress' ),
37 esc_html__( 'Processing', 'learnpress' )
38 ),
39 ]
40 );
41
42 // Fields tab style
43 $style_fields = array_merge(
44 LPElementorControls::add_fields_in_section(
45 'style_title',
46 esc_html__( 'Title', 'learnpress' ),
47 Controls_Manager::TAB_STYLE,
48 LPElementorControls::add_controls_style_text(
49 'title',
50 '#learn-press-become-teacher-form h3'
51 )
52 ),
53 LPElementorControls::add_fields_in_section(
54 'style_description',
55 esc_html__( 'Description', 'learnpress' ),
56 Controls_Manager::TAB_STYLE,
57 LPElementorControls::add_controls_style_text(
58 'description',
59 '.become-teacher-form__description'
60 )
61 ),
62 LPElementorControls::add_fields_in_section(
63 'form_label',
64 esc_html__( 'Form Label', 'learnpress' ),
65 Controls_Manager::TAB_STYLE,
66 LPElementorControls::add_controls_style_text(
67 'form_label',
68 '.become-teacher-form label'
69 )
70 ),
71 LPElementorControls::add_fields_in_section(
72 'form_input_text',
73 esc_html__( 'Form Input', 'learnpress' ),
74 Controls_Manager::TAB_STYLE,
75 LPElementorControls::add_controls_style_button(
76 'form_input_text',
77 '.become-teacher-form input[type=text], .become-teacher-form textarea'
78 )
79 ),
80 LPElementorControls::add_fields_in_section(
81 'btn_submit',
82 esc_html__( 'Button Submit', 'learnpress' ),
83 Controls_Manager::TAB_STYLE,
84 LPElementorControls::add_controls_style_button(
85 'form',
86 '.become-teacher-form button'
87 )
88 )
89 );
90
91 return apply_filters(
92 'learn-press/elementor/instructor/become-a-teacher',
93 array_merge(
94 apply_filters(
95 'learn-press/elementor/instructor/become-a-teacher/tab-content',
96 $content_fields
97 ),
98 apply_filters(
99 'learn-press/elementor/instructor/become-a-teacher/tab-styles',
100 $style_fields
101 )
102 )
103 );
104