PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.4
Elementor Website Builder – more than just a page builder v3.7.4
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/widgets/html.php +3 -24 4.2.03.7.4 View file →
@@ -66,23 +66,11 @@
66 66 *
67 67 * @return array Widget keywords.
68 68 */
69 69 public function get_keywords() {
70 - return [ 'html', 'code', 'embed', 'script' ];
70 + return [ 'html', 'code' ];
71 71 }
72 72
73 - protected function is_dynamic_content(): bool {
74 - return false;
75 - }
76 -
77 - public function show_in_panel() {
78 - return User::is_current_user_can_use_custom_html();
79 - }
80 -
81 - public function has_widget_inner_wrapper(): bool {
82 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
83 - }
84 -
85 73 /**
86 74 * Register HTML widget controls.
87 75 *
88 76 * Adds different input fields to allow the user to change and customize the widget settings.
@@ -100,16 +88,16 @@
100 88
101 89 $this->add_control(
102 90 'html',
103 91 [
104 - 'label' => esc_html__( 'HTML Code', 'elementor' ),
92 + 'label' => '',
105 93 'type' => Controls_Manager::CODE,
106 94 'default' => '',
107 95 'placeholder' => esc_html__( 'Enter your code', 'elementor' ),
96 + 'show_label' => false,
108 97 'dynamic' => [
109 98 'active' => true,
110 99 ],
111 - 'is_editable' => User::is_current_user_can_use_custom_html(),
112 100 ]
113 101 );
114 102
115 103 $this->end_controls_section();
@@ -138,15 +126,6 @@
138 126 protected function content_template() {
139 127 ?>
140 128 {{{ settings.html }}}
141 129 <?php
142 - }
143 -
144 - public function render_markdown(): string {
145 - $settings = $this->get_settings_for_display();
146 - $html = $settings['html'] ?? '';
147 - if ( empty( $html ) ) {
148 - return '';
149 - }
150 - return \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $html );
151 130 }
152 131 }