| @@ -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'] ); |