PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.0-dev2
Elementor Website Builder – more than just a page builder v3.20.0-dev2
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/divider.php +2 -34 4.2.13.20.0-dev2 View file →
@@ -89,30 +89,8 @@
89 89 public function get_keywords() {
90 90 return [ 'divider', 'hr', 'line', 'border' ];
91 91 }
92 92
93 - protected function is_dynamic_content(): bool {
94 - return false;
95 - }
96 -
97 - public function has_widget_inner_wrapper(): bool {
98 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
99 - }
100 -
101 - /**
102 - * Get style dependencies.
103 - *
104 - * Retrieve the list of style dependencies the widget requires.
105 - *
106 - * @since 3.24.0
107 - * @access public
108 - *
109 - * @return array Widget style dependencies.
110 - */
111 - public function get_style_depends(): array {
112 - return [ 'widget-divider' ];
113 - }
114 -
115 93 private static function get_additional_styles() {
116 94 static $additional_styles = null;
117 95
118 96 if ( null !== $additional_styles ) {
@@ -327,10 +305,10 @@
327 305 ]
328 306 );
329 307 }
330 308
331 - private function filter_styles_by( $styles_array, $key, $value ) {
332 - return array_filter( $styles_array, function( $style ) use ( $key, $value ) {
309 + private function filter_styles_by( $array, $key, $value ) {
310 + return array_filter( $array, function( $style ) use ( $key, $value ) {
333 311 return $value === $style[ $key ];
334 312 } );
335 313 }
336 314
@@ -1136,16 +1114,6 @@
1136 1114 <?php endif; ?>
1137 1115 </span>
1138 1116 </div>
1139 1117 <?php
1140 - }
1141 -
1142 - public function render_markdown(): string {
1143 - $settings = $this->get_settings_for_display();
1144 -
1145 - if ( 'line_text' === ( $settings['look'] ?? '' ) && ! empty( $settings['text'] ) ) {
1146 - return '--- ' . Utils::html_to_plain_text( $settings['text'] ) . ' ---';
1147 - }
1148 -
1149 - return '---';
1150 1118 }
1151 1119 }