PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.2
Elementor Website Builder – more than just a page builder v3.31.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / modules / promotions / controls / promotion-control.php

promotion-control.php in Elementor Website Builder – more than just a page builder 3.31.2, at modules/promotions/controls/promotion-control.php

39 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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