| @@ -243,13 +243,14 @@ | ||
| 243 | 243 | 'max' => 50, |
| 244 | 244 | ], |
| 245 | 245 | ], |
| 246 | 246 | '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)', | |
| 247 | + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child)' => 'padding-bottom: calc({{SIZE}}{{UNIT}}/2)', | |
| 248 | + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child)' => 'margin-top: calc({{SIZE}}{{UNIT}}/2)', | |
| 249 | + '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item' => 'margin-right: calc({{SIZE}}{{UNIT}}/2); margin-left: calc({{SIZE}}{{UNIT}}/2)', | |
| 250 | + '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items' => 'margin-right: calc(-{{SIZE}}{{UNIT}}/2); margin-left: calc(-{{SIZE}}{{UNIT}}/2)', | |
| 251 | + 'body.rtl {{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after' => 'left: calc(-{{SIZE}}{{UNIT}}/2)', | |
| 252 | + 'body:not(.rtl) {{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after' => 'right: calc(-{{SIZE}}{{UNIT}}/2)', | |
| 252 | 253 | ], |
| 253 | 254 | ] |
| 254 | 255 | ); |
| 255 | 256 | |
| @@ -258,10 +259,10 @@ | ||
| 258 | 259 | [ |
| 259 | 260 | 'label' => esc_html__( 'Alignment', 'elementor' ), |
| 260 | 261 | 'type' => Controls_Manager::CHOOSE, |
| 261 | 262 | 'options' => [ |
| 262 | - 'start' => [ | |
| 263 | - 'title' => esc_html__( 'Start', 'elementor' ), | |
| 263 | + 'left' => [ | |
| 264 | + 'title' => esc_html__( 'Left', 'elementor' ), | |
| 264 | 265 | 'icon' => 'eicon-h-align-left', |
| 265 | 266 | ], |
| 266 | 267 | 'center' => [ |
| 267 | 268 | 'title' => esc_html__( 'Center', 'elementor' ), |
| @@ -266,19 +267,14 @@ | ||
| 266 | 267 | 'center' => [ |
| 267 | 268 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 268 | 269 | 'icon' => 'eicon-h-align-center', |
| 269 | 270 | ], |
| 270 | - 'end' => [ | |
| 271 | - 'title' => esc_html__( 'End', 'elementor' ), | |
| 271 | + 'right' => [ | |
| 272 | + 'title' => esc_html__( 'Right', 'elementor' ), | |
| 272 | 273 | 'icon' => 'eicon-h-align-right', |
| 273 | 274 | ], |
| 274 | 275 | ], |
| 275 | - 'classes_dictionary' => [ | |
| 276 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 277 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 278 | - ], | |
| 279 | 276 | 'prefix_class' => 'elementor%s-align-', |
| 280 | - 'classes' => 'elementor-control-start-end', | |
| 281 | 277 | ] |
| 282 | 278 | ); |
| 283 | 279 | |
| 284 | 280 | $this->add_control( |
| @@ -310,10 +306,10 @@ | ||
| 310 | 306 | 'condition' => [ |
| 311 | 307 | 'divider' => 'yes', |
| 312 | 308 | ], |
| 313 | 309 | '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}}', | |
| 310 | + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child):after' => 'border-top-style: {{VALUE}}', | |
| 311 | + '{{WRAPPER}} .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:not(:last-child):after' => 'border-left-style: {{VALUE}}', | |
| 316 | 312 | ], |
| 317 | 313 | ] |
| 318 | 314 | ); |
| 319 | 315 | |
| @@ -335,10 +331,10 @@ | ||
| 335 | 331 | 'condition' => [ |
| 336 | 332 | 'divider' => 'yes', |
| 337 | 333 | ], |
| 338 | 334 | '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}}', | |
| 335 | + '{{WRAPPER}} .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child):after' => 'border-top-width: {{SIZE}}{{UNIT}}', | |
| 336 | + '{{WRAPPER}} .elementor-inline-items .elementor-icon-list-item:not(:last-child):after' => 'border-left-width: {{SIZE}}{{UNIT}}', | |
| 341 | 337 | ], |
| 342 | 338 | ] |
| 343 | 339 | ); |
| 344 | 340 | |
| @@ -529,9 +525,9 @@ | ||
| 529 | 525 | ], |
| 530 | 526 | ], |
| 531 | 527 | 'separator' => 'after', |
| 532 | 528 | 'selectors' => [ |
| 533 | - '{{WRAPPER}} .elementor-icon-list-icon' => 'padding-inline-end: {{SIZE}}{{UNIT}};', | |
| 529 | + '{{WRAPPER}} .elementor-icon-list-icon' => is_rtl() ? 'padding-left: {{SIZE}}{{UNIT}};' : 'padding-right: {{SIZE}}{{UNIT}};', | |
| 534 | 530 | ], |
| 535 | 531 | ] |
| 536 | 532 | ); |
| 537 | 533 | |
| @@ -782,9 +778,9 @@ | ||
| 782 | 778 | <i class="<?php echo esc_attr( $item['icon'] ); ?>" aria-hidden="true"></i> |
| 783 | 779 | <?php } ?> |
| 784 | 780 | </span> |
| 785 | 781 | <?php endif; ?> |
| 786 | - <span <?php $this->print_render_attribute_string( $repeater_setting_key ); ?>><?php echo wp_kses_post( $item['text'] ); ?></span> | |
| 782 | + <span <?php $this->print_render_attribute_string( $repeater_setting_key ); ?>><?php $this->print_unescaped_setting( 'text', 'icon_list', $index ); ?></span> | |
| 787 | 783 | <?php if ( ! empty( $item['link']['url'] ) ) : ?> |
| 788 | 784 | </a> |
| 789 | 785 | <?php endif; ?> |
| 790 | 786 | </li> |
| @@ -802,34 +798,8 @@ | ||
| 802 | 798 | * |
| 803 | 799 | * @since 2.9.0 |
| 804 | 800 | * @access protected |
| 805 | 801 | */ |
| 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 | 802 | protected function content_template() { |
| 833 | 803 | ?> |
| 834 | 804 | <# |
| 835 | 805 | view.addRenderAttribute( 'icon_list', 'class', 'elementor-icon-list-items' ); |
| @@ -852,10 +822,10 @@ | ||
| 852 | 822 | |
| 853 | 823 | view.addInlineEditingAttributes( iconTextKey ); #> |
| 854 | 824 | |
| 855 | 825 | <li {{{ view.getRenderAttributeString( 'list_item' ) }}}> |
| 856 | - <# if ( item.link && item.link?.url ) { #> | |
| 857 | - <a href="{{ elementor.helpers.sanitizeUrl( item.link?.url ) }}"> | |
| 826 | + <# if ( item.link && item.link.url ) { #> | |
| 827 | + <a href="{{ elementor.helpers.sanitizeUrl( item.link.url ) }}"> | |
| 858 | 828 | <# } #> |
| 859 | 829 | <# if ( item.icon || item.selected_icon.value ) { #> |
| 860 | 830 | <span class="elementor-icon-list-icon"> |
| 861 | 831 | <# |
| @@ -869,9 +839,9 @@ | ||
| 869 | 839 | #> |
| 870 | 840 | </span> |
| 871 | 841 | <# } #> |
| 872 | 842 | <span {{{ view.getRenderAttributeString( iconTextKey ) }}}>{{{ item.text }}}</span> |
| 873 | - <# if ( item.link && item.link?.url ) { #> | |
| 843 | + <# if ( item.link && item.link.url ) { #> | |
| 874 | 844 | </a> |
| 875 | 845 | <# } #> |
| 876 | 846 | </li> |
| 877 | 847 | <# |