PluginProbe
Elementor Website Builder – more than just a page builder / 3.24.4
Elementor Website Builder – more than just a page builder v3.24.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/read-more.php +1 -14 4.1.0-dev23.24.4 View file →
@@ -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 }