| @@ -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 | |
| @@ -46,15 +44,8 @@ | ||
| 46 | 44 | return [ |
| 47 | 45 | 'label_block' => true, |
| 48 | 46 | 'language' => 'html', // html/css |
| 49 | 47 | 'rows' => 10, |
| 50 | - 'ai' => [ | |
| 51 | - 'active' => true, | |
| 52 | - 'type' => 'code', | |
| 53 | - ], | |
| 54 | - 'dynamic' => [ | |
| 55 | - 'categories' => [ TagsModule::TEXT_CATEGORY ], | |
| 56 | - ], | |
| 57 | 48 | ]; |
| 58 | 49 | } |
| 59 | 50 | |
| 60 | 51 | /** |
| @@ -67,13 +58,14 @@ | ||
| 67 | 58 | * @since 1.0.0 |
| 68 | 59 | * @access public |
| 69 | 60 | */ |
| 70 | 61 | public function content_template() { |
| 62 | + $control_uid = $this->get_control_uid(); | |
| 71 | 63 | ?> |
| 72 | 64 | <div class="elementor-control-field"> |
| 73 | - <label for="<?php $this->print_control_uid(); ?>" class="elementor-control-title">{{{ data.label }}}</label> | |
| 74 | - <div class="elementor-control-input-wrapper elementor-control-dynamic-switcher-wrapper"> | |
| 75 | - <textarea id="<?php $this->print_control_uid(); ?>" rows="{{ data.rows }}" class="e-input-style elementor-code-editor" data-setting="{{ data.name }}"></textarea> | |
| 65 | + <label for="<?php echo $control_uid; ?>" class="elementor-control-title">{{{ data.label }}}</label> | |
| 66 | + <div class="elementor-control-input-wrapper"> | |
| 67 | + <textarea id="<?php echo $control_uid; ?>" rows="{{ data.rows }}" class="elementor-input-style elementor-code-editor" data-setting="{{ data.name }}"></textarea> | |
| 76 | 68 | </div> |
| 77 | 69 | </div> |
| 78 | 70 | <# if ( data.description ) { #> |
| 79 | 71 | <div class="elementor-control-field-description">{{{ data.description }}}</div> |