| @@ -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 | /** |
| @@ -155,16 +156,6 @@ | ||
| 155 | 156 | protected function content_template() { |
| 156 | 157 | ?> |
| 157 | 158 | <!--more {{ settings.link_text }}--> |
| 158 | 159 | <?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 | 160 | } |
| 170 | 161 | } |