promotion-control.php
39 lines
| 1 | <?php |
| 2 | namespace Elementor\Modules\Promotions\Controls; |
| 3 | |
| 4 | use Elementor\Base_Data_Control; |
| 5 | |
| 6 | class Promotion_Control extends Base_Data_Control { |
| 7 | |
| 8 | const TYPE = 'promotion_control'; |
| 9 | |
| 10 | public function get_type() { |
| 11 | return static::TYPE; |
| 12 | } |
| 13 | |
| 14 | public function content_template() { |
| 15 | ?> |
| 16 | <div data-promotion="{{{ data.name }}}" class="elementor-control-type-switcher elementor-label-inline e-control-promotion__wrapper"> |
| 17 | <div class="elementor-control-content"> |
| 18 | <div class="elementor-control-field"> |
| 19 | <# if ( data.label ) {#> |
| 20 | <label for="<?php $this->print_control_uid(); ?>" class="elementor-control-title">{{{ data.label }}}</label> |
| 21 | <# } #> |
| 22 | <span class="e-control-promotion__lock-wrapper"> |
| 23 | <i class="eicon-lock"></i> |
| 24 | </span> |
| 25 | <div class="elementor-control-input-wrapper"> |
| 26 | <label class="elementor-switch elementor-control-unit-2 e-control-promotion-switch"> |
| 27 | <input type="checkbox" class="elementor-switch-input" disabled> |
| 28 | <span class="elementor-switch-label" data-off="Off"></span> |
| 29 | <span class="elementor-switch-handle"></span> |
| 30 | </label> |
| 31 | </div> |
| 32 | <div class="e-promotion-react-wrapper" data-promotion="{{{ data.name }}}"></div> |
| 33 | </div> |
| 34 | </div> |
| 35 | </div> |
| 36 | <?php |
| 37 | } |
| 38 | } |
| 39 |