PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9.1 4.4.9 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 All 141 releases
← All changes | inc/ExternalPlugin/Elementor/Widgets/BecomeATeacherElementor.php +39 -39 4.3.8 → 4.4.9 View file →
@@ -1,39 +1,39 @@
1 -<?php
2 -/**
3 - * Class SingleInstructorElementor
4 - *
5 - * @sicne 4.2.3
6 - * @version 1.0.0
7 - */
8 -
9 -namespace LearnPress\ExternalPlugin\Elementor\Widgets;
10 -
11 -use LearnPress\ExternalPlugin\Elementor\LPElementorWidgetBase;
12 -use LearnPress\Helpers\Config;
13 -
14 -class BecomeATeacherElementor extends LPElementorWidgetBase {
15 - public function __construct( $data = [], $args = null ) {
16 - $this->title = esc_html__( 'Become a teacher', 'learnpress' );
17 - $this->name = 'become_a_teacher';
18 - $this->keywords = [ 'teacher', 'become' ];
19 - $this->icon = 'eicon-site-logo';
20 - parent::__construct( $data, $args );
21 - }
22 -
23 - protected function register_controls() {
24 - $this->controls = Config::instance()->get( 'become-a-teacher', 'elementor/instructor' );
25 - parent::register_controls();
26 - }
27 -
28 - public function render() {
29 - $settings = $this->get_settings_for_display();
30 -
31 - echo do_shortcode( '[learn_press_become_teacher_form title="' . $settings['title'] . '" description="' . $settings['description'] . '" submit_button_text="' . esc_html( $settings['submit_button_text'] ) . '" submit_button_process_text="' . $settings['submit_button_process_text'] . '"]' );
32 - }
33 -
34 - public function get_style_depends() {
35 - wp_register_style( 'learnpress', LP_PLUGIN_URL . 'assets/css/learnpress.css', array(), uniqid() );
36 -
37 - return array( 'learnpress' );
38 - }
39 -}
1 +<?php
2 +/**
3 + * Class SingleInstructorElementor
4 + *
5 + * @sicne 4.2.3
6 + * @version 1.0.0
7 + */
8 +
9 +namespace LearnPress\ExternalPlugin\Elementor\Widgets;
10 +
11 +use LearnPress\ExternalPlugin\Elementor\LPElementorWidgetBase;
12 +use LearnPress\Helpers\Config;
13 +
14 +class BecomeATeacherElementor extends LPElementorWidgetBase {
15 + public function __construct( $data = [], $args = null ) {
16 + $this->title = esc_html__( 'Become a teacher', 'learnpress' );
17 + $this->name = 'become_a_teacher';
18 + $this->keywords = [ 'teacher', 'become' ];
19 + $this->icon = 'eicon-site-logo';
20 + parent::__construct( $data, $args );
21 + }
22 +
23 + protected function register_controls() {
24 + $this->controls = Config::instance()->get( 'become-a-teacher', 'elementor/instructor' );
25 + parent::register_controls();
26 + }
27 +
28 + public function render() {
29 + $settings = $this->get_settings_for_display();
30 +
31 + echo do_shortcode( '[learn_press_become_teacher_form title="' . $settings['title'] . '" description="' . $settings['description'] . '" submit_button_text="' . esc_html( $settings['submit_button_text'] ) . '" submit_button_process_text="' . $settings['submit_button_process_text'] . '"]' );
32 + }
33 +
34 + public function get_style_depends() {
35 + wp_register_style( 'learnpress', LP_PLUGIN_URL . 'assets/css/learnpress.css', array(), uniqid() );
36 +
37 + return array( 'learnpress' );
38 + }
39 +}