PluginProbe
Elementor Website Builder – more than just a page builder / 3.21.0-beta2
Elementor Website Builder – more than just a page builder v3.21.0-beta2
4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 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 All 456 releases
← All changes | includes/widgets/menu-anchor.php +1 -27 4.1.1 → 3.21.0-beta2 View file →
@@ -70,31 +70,9 @@
70 70 public function get_keywords() {
71 71 return [ 'menu', 'anchor', 'link' ];
72 72 }
73 73
74 - protected function is_dynamic_content(): bool {
75 - return false;
76 - }
77 -
78 74 /**
79 - * Get style dependencies.
80 - *
81 - * Retrieve the list of style dependencies the widget requires.
82 - *
83 - * @since 3.24.0
84 - * @access public
85 - *
86 - * @return array Widget style dependencies.
87 - */
88 - public function get_style_depends(): array {
89 - return [ 'widget-menu-anchor' ];
90 - }
91 -
92 - public function has_widget_inner_wrapper(): bool {
93 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
94 - }
95 -
96 - /**
97 75 * Register menu anchor widget controls.
98 76 *
99 77 * Adds different input fields to allow the user to change and customize the widget settings.
100 78 *
@@ -184,9 +162,9 @@
184 162 return;
185 163 }
186 164
187 165 view.addRenderAttribute(
188 - 'inner',
166 + 'inner',
189 167 {
190 168 'class': 'elementor-menu-anchor',
191 169 'id': settings.anchor,
192 170 }
@@ -193,12 +171,8 @@
193 171 );
194 172 #>
195 173 <div {{{ view.getRenderAttributeString( 'inner' ) }}}></div>
196 174 <?php
197 - }
198 -
199 - public function render_markdown(): string {
200 - return '';
201 175 }
202 176
203 177 protected function on_save( array $settings ) {
204 178 $settings['anchor'] = sanitize_html_class( $settings['anchor'] );