| @@ -1,7 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | +use Elementor\Modules\DynamicTags\Module as TagsModule; | |
| 5 | + | |
| 4 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | 7 | exit; // Exit if accessed directly. |
| 6 | 8 | } |
| 7 | 9 | |
| @@ -44,8 +46,11 @@ | ||
| 44 | 46 | return [ |
| 45 | 47 | 'label_block' => true, |
| 46 | 48 | 'language' => 'html', // html/css |
| 47 | 49 | 'rows' => 10, |
| 50 | + 'dynamic' => [ | |
| 51 | + 'categories' => [ TagsModule::TEXT_CATEGORY ], | |
| 52 | + ], | |
| 48 | 53 | ]; |
| 49 | 54 | } |
| 50 | 55 | |
| 51 | 56 | /** |
| @@ -62,10 +67,10 @@ | ||
| 62 | 67 | $control_uid = $this->get_control_uid(); |
| 63 | 68 | ?> |
| 64 | 69 | <div class="elementor-control-field"> |
| 65 | 70 | <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> | |
| 71 | + <div class="elementor-control-input-wrapper elementor-control-dynamic-switcher-wrapper"> | |
| 72 | + <textarea id="<?php echo $control_uid; ?>" rows="{{ data.rows }}" class="elementor-input-style elementor-code-editor elementor-control-tag-area" data-setting="{{ data.name }}"></textarea> | |
| 68 | 73 | </div> |
| 69 | 74 | </div> |
| 70 | 75 | <# if ( data.description ) { #> |
| 71 | 76 | <div class="elementor-control-field-description">{{{ data.description }}}</div> |