PluginProbe
Elementor Website Builder – more than just a page builder / 3.23.0-dev3
Elementor Website Builder – more than just a page builder v3.23.0-dev3
4.3.0-beta3 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 All 452 releases
← All changes | includes/widgets/icon-list.php +19 -67 4.1.0-beta23.23.0-dev3 View file →
@@ -76,27 +76,9 @@
76 76 protected function is_dynamic_content(): bool {
77 77 return false;
78 78 }
79 79
80 - public function has_widget_inner_wrapper(): bool {
81 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
82 - }
83 -
84 80 /**
85 - * Get style dependencies.
86 - *
87 - * Retrieve the list of style dependencies the widget requires.
88 - *
89 - * @since 3.24.0
90 - * @access public
91 - *
92 - * @return array Widget style dependencies.
93 - */
94 - public function get_style_depends(): array {
95 - return [ 'widget-icon-list' ];
96 - }
97 -
98 - /**
99 81 * Register icon list widget controls.
100 82 *
101 83 * Adds different input fields to allow the user to change and customize the widget settings.
102 84 *
@@ -243,13 +225,14 @@
243 225 'max' => 50,
244 226 ],
245 227 ],
246 228 'selectors' => [
247 - '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child)' => 'padding-block-end: calc({{SIZE}}{{UNIT}}/2)',
248 - '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child)' => 'margin-block-start: calc({{SIZE}}{{UNIT}}/2)',
249 - '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item' => 'margin-inline: calc({{SIZE}}{{UNIT}}/2)',
250 - '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items' => 'margin-inline: calc(-{{SIZE}}{{UNIT}}/2)',
251 - '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after' => 'inset-inline-end: calc(-{{SIZE}}{{UNIT}}/2)',
229 + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child)' => 'padding-bottom: calc({{SIZE}}{{UNIT}}/2)',
230 + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child)' => 'margin-top: calc({{SIZE}}{{UNIT}}/2)',
231 + '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item' => 'margin-right: calc({{SIZE}}{{UNIT}}/2); margin-left: calc({{SIZE}}{{UNIT}}/2)',
232 + '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items' => 'margin-right: calc(-{{SIZE}}{{UNIT}}/2); margin-left: calc(-{{SIZE}}{{UNIT}}/2)',
233 + 'body.rtl {{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after' => 'left: calc(-{{SIZE}}{{UNIT}}/2)',
234 + 'body:not(.rtl) {{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after' => 'right: calc(-{{SIZE}}{{UNIT}}/2)',
252 235 ],
253 236 ]
254 237 );
255 238
@@ -258,10 +241,10 @@
258 241 [
259 242 'label' => esc_html__( 'Alignment', 'elementor' ),
260 243 'type' => Controls_Manager::CHOOSE,
261 244 'options' => [
262 - 'start' => [
263 - 'title' => esc_html__( 'Start', 'elementor' ),
245 + 'left' => [
246 + 'title' => esc_html__( 'Left', 'elementor' ),
264 247 'icon' => 'eicon-h-align-left',
265 248 ],
266 249 'center' => [
267 250 'title' => esc_html__( 'Center', 'elementor' ),
@@ -266,19 +249,14 @@
266 249 'center' => [
267 250 'title' => esc_html__( 'Center', 'elementor' ),
268 251 'icon' => 'eicon-h-align-center',
269 252 ],
270 - 'end' => [
271 - 'title' => esc_html__( 'End', 'elementor' ),
253 + 'right' => [
254 + 'title' => esc_html__( 'Right', 'elementor' ),
272 255 'icon' => 'eicon-h-align-right',
273 256 ],
274 257 ],
275 - 'classes_dictionary' => [
276 - 'left' => is_rtl() ? 'end' : 'start',
277 - 'right' => is_rtl() ? 'start' : 'end',
278 - ],
279 258 'prefix_class' => 'elementor%s-align-',
280 - 'classes' => 'elementor-control-start-end',
281 259 ]
282 260 );
283 261
284 262 $this->add_control(
@@ -310,10 +288,10 @@
310 288 'condition' => [
311 289 'divider' => 'yes',
312 290 ],
313 291 'selectors' => [
314 - '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child):after' => 'border-block-start-style: {{VALUE}}',
315 - '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:not(:last-child):after' => 'border-inline-start-style: {{VALUE}}',
292 + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child):after' => 'border-top-style: {{VALUE}}',
293 + '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:not(:last-child):after' => 'border-left-style: {{VALUE}}',
316 294 ],
317 295 ]
318 296 );
319 297
@@ -335,10 +313,10 @@
335 313 'condition' => [
336 314 'divider' => 'yes',
337 315 ],
338 316 'selectors' => [
339 - '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child):after' => 'border-block-start-width: {{SIZE}}{{UNIT}}',
340 - '{{WRAPPER}} .elementor-inline-items .elementor-icon-list-item:not(:last-child):after' => 'border-inline-start-width: {{SIZE}}{{UNIT}}',
317 + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child):after' => 'border-top-width: {{SIZE}}{{UNIT}}',
318 + '{{WRAPPER}} .elementor-inline-items .elementor-icon-list-item:not(:last-child):after' => 'border-left-width: {{SIZE}}{{UNIT}}',
341 319 ],
342 320 ]
343 321 );
344 322
@@ -529,9 +507,9 @@
529 507 ],
530 508 ],
531 509 'separator' => 'after',
532 510 'selectors' => [
533 - '{{WRAPPER}} .elementor-icon-list-icon' => 'padding-inline-end: {{SIZE}}{{UNIT}};',
511 + '{{WRAPPER}} .elementor-icon-list-icon' => is_rtl() ? 'padding-left: {{SIZE}}{{UNIT}};' : 'padding-right: {{SIZE}}{{UNIT}};',
534 512 ],
535 513 ]
536 514 );
537 515
@@ -782,9 +760,9 @@
782 760 <i class="<?php echo esc_attr( $item['icon'] ); ?>" aria-hidden="true"></i>
783 761 <?php } ?>
784 762 </span>
785 763 <?php endif; ?>
786 - <span <?php $this->print_render_attribute_string( $repeater_setting_key ); ?>><?php echo wp_kses_post( $item['text'] ); ?></span>
764 + <span <?php $this->print_render_attribute_string( $repeater_setting_key ); ?>><?php $this->print_unescaped_setting( 'text', 'icon_list', $index ); ?></span>
787 765 <?php if ( ! empty( $item['link']['url'] ) ) : ?>
788 766 </a>
789 767 <?php endif; ?>
790 768 </li>
@@ -802,34 +780,8 @@
802 780 *
803 781 * @since 2.9.0
804 782 * @access protected
805 783 */
806 - public function render_markdown(): string {
807 - $settings = $this->get_settings_for_display();
808 -
809 - if ( empty( $settings['icon_list'] ) ) {
810 - return '';
811 - }
812 -
813 - $lines = [];
814 -
815 - foreach ( $settings['icon_list'] as $item ) {
816 - $text = Utils::html_to_plain_text( $item['text'] ?? '' );
817 -
818 - if ( empty( $text ) ) {
819 - continue;
820 - }
821 -
822 - if ( ! empty( $item['link']['url'] ) ) {
823 - $text = '[' . $text . '](' . esc_url( $item['link']['url'] ) . ')';
824 - }
825 -
826 - $lines[] = '- ' . $text;
827 - }
828 -
829 - return implode( "\n", $lines );
830 - }
831 -
832 784 protected function content_template() {
833 785 ?>
834 786 <#
835 787 view.addRenderAttribute( 'icon_list', 'class', 'elementor-icon-list-items' );
@@ -852,10 +804,10 @@
852 804
853 805 view.addInlineEditingAttributes( iconTextKey ); #>
854 806
855 807 <li {{{ view.getRenderAttributeString( 'list_item' ) }}}>
856 - <# if ( item.link && item.link?.url ) { #>
857 - <a href="{{ elementor.helpers.sanitizeUrl( item.link?.url ) }}">
808 + <# if ( item.link && item.link.url ) { #>
809 + <a href="{{ item.link.url }}">
858 810 <# } #>
859 811 <# if ( item.icon || item.selected_icon.value ) { #>
860 812 <span class="elementor-icon-list-icon">
861 813 <#
@@ -869,9 +821,9 @@
869 821 #>
870 822 </span>
871 823 <# } #>
872 824 <span {{{ view.getRenderAttributeString( iconTextKey ) }}}>{{{ item.text }}}</span>
873 - <# if ( item.link && item.link?.url ) { #>
825 + <# if ( item.link && item.link.url ) { #>
874 826 </a>
875 827 <# } #>
876 828 </li>
877 829 <#