| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly |
| 4 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 5 |
|
| 6 |
require_once "class-pb-widget-rf-epf.php"; |
| 7 |
|
| 8 |
/** |
| 9 |
* Elementor widget for our wppb-register shortcode |
| 10 |
*/ |
| 11 |
class PB_Elementor_Register_Widget extends PB_Elementor_Register_Edit_Profile_Widget { |
| 12 |
|
| 13 |
public function __construct($data = [], $args = null) { |
| 14 |
parent::__construct($data, $args); |
| 15 |
|
| 16 |
$this -> register_pb_scripts_styles(); |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Get widget name. |
| 21 |
* |
| 22 |
*/ |
| 23 |
public function get_name() { |
| 24 |
return 'wppb-register'; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Get widget title. |
| 29 |
* |
| 30 |
*/ |
| 31 |
public function get_title() { |
| 32 |
return __( 'Register', 'profile-builder' ); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Get widget icon. |
| 37 |
* |
| 38 |
*/ |
| 39 |
public function get_icon() { |
| 40 |
return 'eicon-price-list'; |
| 41 |
} |
| 42 |
|
| 43 |
/** |
| 44 |
* Register widget controls. |
| 45 |
* |
| 46 |
*/ |
| 47 |
protected function register_controls() { |
| 48 |
$this -> register_rf_epf_controls( 'rf' ); |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* Render widget output in the front-end. |
| 53 |
* |
| 54 |
*/ |
| 55 |
protected function render() { |
| 56 |
$this->render_widget( 'rf'); |
| 57 |
} |
| 58 |
|
| 59 |
} |
| 60 |
|