PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.3
Elementor Website Builder – more than just a page builder v3.1.3
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
← All changes | includes/controls/code.php +4 -12 4.2.0-dev23.1.3 View file →
@@ -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>