| @@ -8,8 +8,9 @@ | ||
| 8 | 8 | /** |
| 9 | 9 | * Elementor HTML widget. |
| 10 | 10 | * |
| 11 | 11 | * Elementor widget that insert a custom HTML code into the page. |
| 12 | + * | |
| 12 | 13 | */ |
| 13 | 14 | class Widget_Read_More extends Widget_Base { |
| 14 | 15 | |
| 15 | 16 | /** |
| @@ -71,12 +72,8 @@ | ||
| 71 | 72 | protected function is_dynamic_content(): bool { |
| 72 | 73 | return false; |
| 73 | 74 | } |
| 74 | 75 | |
| 75 | - public function has_widget_inner_wrapper(): bool { | |
| 76 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 77 | - } | |
| 78 | - | |
| 79 | 76 | /** |
| 80 | 77 | * Register HTML widget controls. |
| 81 | 78 | * |
| 82 | 79 | * Adds different input fields to allow the user to change and customize the widget settings. |
| @@ -155,16 +152,6 @@ | ||
| 155 | 152 | protected function content_template() { |
| 156 | 153 | ?> |
| 157 | 154 | <!--more {{ settings.link_text }}--> |
| 158 | 155 | <?php |
| 159 | - } | |
| 160 | - | |
| 161 | - public function render_markdown(): string { | |
| 162 | - $settings = $this->get_settings_for_display(); | |
| 163 | - $text = Utils::html_to_plain_text( $settings['link_text'] ?? 'Read More' ); | |
| 164 | - $url = ( $settings['link'] ?? [] )['url'] ?? ''; | |
| 165 | - if ( ! empty( $url ) ) { | |
| 166 | - return '[' . $text . '](' . esc_url( $url ) . ')'; | |
| 167 | - } | |
| 168 | - return $text; | |
| 169 | 156 | } |
| 170 | 157 | } |