PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.4
Elementor Website Builder – more than just a page builder v3.31.4
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 +8 -39 4.2.43.31.4 View file →
@@ -258,10 +258,10 @@
258 258 [
259 259 'label' => esc_html__( 'Alignment', 'elementor' ),
260 260 'type' => Controls_Manager::CHOOSE,
261 261 'options' => [
262 - 'start' => [
263 - 'title' => esc_html__( 'Start', 'elementor' ),
262 + 'left' => [
263 + 'title' => esc_html__( 'Left', 'elementor' ),
264 264 'icon' => 'eicon-h-align-left',
265 265 ],
266 266 'center' => [
267 267 'title' => esc_html__( 'Center', 'elementor' ),
@@ -266,19 +266,14 @@
266 266 'center' => [
267 267 'title' => esc_html__( 'Center', 'elementor' ),
268 268 'icon' => 'eicon-h-align-center',
269 269 ],
270 - 'end' => [
271 - 'title' => esc_html__( 'End', 'elementor' ),
270 + 'right' => [
271 + 'title' => esc_html__( 'Right', 'elementor' ),
272 272 'icon' => 'eicon-h-align-right',
273 273 ],
274 274 ],
275 - 'classes_dictionary' => [
276 - 'left' => is_rtl() ? 'end' : 'start',
277 - 'right' => is_rtl() ? 'start' : 'end',
278 - ],
279 275 'prefix_class' => 'elementor%s-align-',
280 - 'classes' => 'elementor-control-start-end',
281 276 ]
282 277 );
283 278
284 279 $this->add_control(
@@ -782,9 +777,9 @@
782 777 <i class="<?php echo esc_attr( $item['icon'] ); ?>" aria-hidden="true"></i>
783 778 <?php } ?>
784 779 </span>
785 780 <?php endif; ?>
786 - <span <?php $this->print_render_attribute_string( $repeater_setting_key ); ?>><?php echo wp_kses_post( $item['text'] ); ?></span>
781 + <span <?php $this->print_render_attribute_string( $repeater_setting_key ); ?>><?php $this->print_unescaped_setting( 'text', 'icon_list', $index ); ?></span>
787 782 <?php if ( ! empty( $item['link']['url'] ) ) : ?>
788 783 </a>
789 784 <?php endif; ?>
790 785 </li>
@@ -802,34 +797,8 @@
802 797 *
803 798 * @since 2.9.0
804 799 * @access protected
805 800 */
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 801 protected function content_template() {
833 802 ?>
834 803 <#
835 804 view.addRenderAttribute( 'icon_list', 'class', 'elementor-icon-list-items' );
@@ -852,10 +821,10 @@
852 821
853 822 view.addInlineEditingAttributes( iconTextKey ); #>
854 823
855 824 <li {{{ view.getRenderAttributeString( 'list_item' ) }}}>
856 - <# if ( item.link && item.link?.url ) { #>
857 - <a href="{{ elementor.helpers.sanitizeUrl( item.link?.url ) }}">
825 + <# if ( item.link && item.link.url ) { #>
826 + <a href="{{ elementor.helpers.sanitizeUrl( item.link.url ) }}">
858 827 <# } #>
859 828 <# if ( item.icon || item.selected_icon.value ) { #>
860 829 <span class="elementor-icon-list-icon">
861 830 <#
@@ -869,9 +838,9 @@
869 838 #>
870 839 </span>
871 840 <# } #>
872 841 <span {{{ view.getRenderAttributeString( iconTextKey ) }}}>{{{ item.text }}}</span>
873 - <# if ( item.link && item.link?.url ) { #>
842 + <# if ( item.link && item.link.url ) { #>
874 843 </a>
875 844 <# } #>
876 845 </li>
877 846 <#