elementor_widget_book_button.php
1 year ago
elementor_widget_book_form.php
1 year ago
elementor_widget_calendar.php
1 year ago
elementor_widget_customer_dashboard.php
1 year ago
elementor_widget_customer_login.php
1 year ago
elementor_widget_list_of_resources.php
1 year ago
elementor_widget_customer_login.php
59 lines
| 1 | <?php |
| 2 | |
| 3 | class Latepoint_Elementor_Widget_Customer_Login extends \Elementor\Widget_Base { |
| 4 | |
| 5 | protected $widget_data; |
| 6 | /** |
| 7 | * Widget base constructor |
| 8 | */ |
| 9 | public function __construct( $data = [], $args = null ) { |
| 10 | $this->widget_data = $args; |
| 11 | parent::__construct( $data, $args ); |
| 12 | } |
| 13 | |
| 14 | |
| 15 | /** |
| 16 | * Get widget name |
| 17 | */ |
| 18 | public function get_name(): string { |
| 19 | return 'latepoint_customer_login'; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Get widget title |
| 24 | */ |
| 25 | public function get_title(): string { |
| 26 | return esc_html__( 'Customer Login', 'latepoint' ); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Get widget icon |
| 31 | */ |
| 32 | public function get_icon(): string { |
| 33 | return 'eicon-lock-user'; |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Get widget categories |
| 38 | */ |
| 39 | public function get_categories(): array { |
| 40 | return [ OsElementorHelper::$category ]; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Register widget controls |
| 45 | */ |
| 46 | protected function register_controls(): void {} |
| 47 | |
| 48 | |
| 49 | /** |
| 50 | * Render widget output on the frontend |
| 51 | */ |
| 52 | protected function render(): void { |
| 53 | //$settings = $this->get_settings_for_display(); |
| 54 | |
| 55 | echo do_shortcode('[latepoint_customer_login]'); |
| 56 | |
| 57 | } |
| 58 | |
| 59 | } |