| @@ -1,9 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | -use Elementor\Modules\DynamicTags\Module as TagsModule; | |
| 5 | - | |
| 6 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 5 | exit; // Exit if accessed directly. |
| 8 | 6 | } |
| 9 | 7 | |
| @@ -45,13 +43,8 @@ | ||
| 45 | 43 | protected function get_default_settings() { |
| 46 | 44 | return [ |
| 47 | 45 | 'label_block' => true, |
| 48 | 46 | 'picker_options' => [], |
| 49 | - 'dynamic' => [ | |
| 50 | - 'categories' => [ | |
| 51 | - TagsModule::DATETIME_CATEGORY, | |
| 52 | - ], | |
| 53 | - ], | |
| 54 | 47 | ]; |
| 55 | 48 | } |
| 56 | 49 | |
| 57 | 50 | /** |
| @@ -64,13 +57,14 @@ | ||
| 64 | 57 | * @since 1.0.0 |
| 65 | 58 | * @access public |
| 66 | 59 | */ |
| 67 | 60 | public function content_template() { |
| 61 | + $control_uid = $this->get_control_uid(); | |
| 68 | 62 | ?> |
| 69 | 63 | <div class="elementor-control-field"> |
| 70 | - <label for="<?php $this->print_control_uid(); ?>" class="elementor-control-title">{{{ data.label }}}</label> | |
| 71 | - <div class="elementor-control-input-wrapper elementor-control-dynamic-switcher-wrapper"> | |
| 72 | - <input id="<?php $this->print_control_uid(); ?>" placeholder="{{ view.getControlPlaceholder() }}" class="elementor-date-time-picker flatpickr elementor-control-tag-area" type="text" data-setting="{{ data.name }}"> | |
| 64 | + <label for="<?php echo $control_uid; ?>" class="elementor-control-title">{{{ data.label }}}</label> | |
| 65 | + <div class="elementor-control-input-wrapper"> | |
| 66 | + <input id="<?php echo $control_uid; ?>" placeholder="{{ data.placeholder }}" class="elementor-date-time-picker flatpickr" type="text" data-setting="{{ data.name }}"> | |
| 73 | 67 | </div> |
| 74 | 68 | </div> |
| 75 | 69 | <# if ( data.description ) { #> |
| 76 | 70 | <div class="elementor-control-field-description">{{{ data.description }}}</div> |