Plugin Directory

Changeset 3055558


Ignore:
Timestamp:
03/20/2024 06:38:41 PM (22 months ago)
Author:
cssigniterteam
Message:

Update to version 2.16.4 from GitHub

Location:
elements-plus
Files:
48 edited
1 copied

Legend:

Unmodified
Added
Removed
  • elements-plus/tags/2.16.4/elements-plus.php

    r3051129 r3055558  
    55 * Plugin URI: https://cssigniter.com/plugins/elements-plus/
    66 * Author: The CSSIgniter Team
    7  * Version: 2.16.3
     7 * Version: 2.16.4
    88 * Author URI: https://cssigniter.com/
    99 * Text Domain: elements-plus
     
    3131function elements_plus_init() {
    3232
    33     define( 'ELEMENTS_PLUS_VERSION', '2.16.3' );
     33    define( 'ELEMENTS_PLUS_VERSION', '2.16.4' );
    3434    define( 'ELEMENTS_PLUS_URL', plugins_url( '/', __FILE__ ) );
    3535    define( 'ELEMENTS_PLUS_PATH', plugin_dir_path( __FILE__ ) );
  • elements-plus/tags/2.16.4/elements/ep-audioigniter.php

    r2853677 r3055558  
    159159        protected function render() {
    160160            $settings = $this->get_settings();
    161             $id = $settings['playlist'];
     161            $id = (int) $settings['playlist'];
    162162
    163163            if ( ! $id ) {
    164164                return;
    165165            }
    166 
    167             $shortcode = do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) );
    168166            ?>
    169167            <div
     
    171169                class="ep-audioigniter"
    172170            >
    173                 <?php echo $shortcode; ?>
     171                <?php echo do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) ); ?>
    174172            </div>
    175173
  • elements-plus/tags/2.16.4/elements/ep-button-plus.php

    r3051129 r3055558  
    453453            $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' );
    454454            ?>
    455             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    456                 <a <?php echo $this->get_render_attribute_string( 'button' ); ?>>
    457                 <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
    458                     <span class="elementor-button-text button-plus text-1"><?php echo $settings['text']; ?></span>
    459                     <span class="elementor-button-text button-plus text-2"><?php echo $settings['text_2']; ?></span>
     455            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     456                <a <?php $this->print_render_attribute_string( 'button' ); ?>>
     457                <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
     458                    <span class="elementor-button-text button-plus text-1"><?php $this->print_unescaped_setting( 'text' ); ?></span>
     459                    <span class="elementor-button-text button-plus text-2"><?php $this->print_unescaped_setting( 'text_2' ); ?></span>
    460460                </span>
    461461                </a>
  • elements-plus/tags/2.16.4/elements/ep-caldera-forms.php

    r3051129 r3055558  
    498498        $settings     = $this->get_settings();
    499499        $widget_title = $settings['widget_title'];
    500         $form_id      = $settings['select_form'];
     500        $form_id      = (int) $settings['select_form'];
    501501
    502502        if ( empty( $form_id ) ) {
     
    505505
    506506        if ( $widget_title ) {
    507             echo '<h5 class="widget-title">' . esc_html( $widget_title ) . '</h5>';
     507            ?><h5 class="widget-title"><?php $this->print_unescaped_setting( 'widget_title' ); ?></h5><?php
    508508        }
    509509
  • elements-plus/tags/2.16.4/elements/ep-cf7.php

    r3051129 r3055558  
    539539    protected function render() {
    540540        $settings = $this->get_settings();
    541         $form_id  = $settings['select_form'];
     541        $form_id  = (int) $settings['select_form'];
    542542
    543543        if ( empty( $form_id ) ) {
  • elements-plus/tags/2.16.4/elements/ep-content-toggle.php

    r3051129 r3055558  
    271271        } elseif ( 'template' === $settings['content_type_primary'] ) {
    272272            $el_frontend     = new Frontend();
    273             $content_primary = $el_frontend->get_builder_content( $settings['template_primary'], true );
     273            $content_primary = $el_frontend->get_builder_content_for_display( (int) $settings['template_primary'], true );
    274274        }
    275275
     
    278278        } elseif ( 'template' === $settings['content_type_secondary'] ) {
    279279            $el_frontend       = new Frontend();
    280             $content_secondary = $el_frontend->get_builder_content( $settings['template_secondary'], true );
     280            $content_secondary = $el_frontend->get_builder_content_for_display( (int) $settings['template_secondary'], true );
    281281        }
    282 
    283282        ?>
    284 
    285283        <div class="ep-ct-outer-wrapper">
    286284            <div class="ep-ct-switch-wrapper">
    287285                <?php if ( $label_primary ) : ?>
    288                     <span class="ep-ct-switch-label"><?php echo esc_html( $label_primary ); ?></span>
     286                    <span class="ep-ct-switch-label"><?php $this->print_unescaped_setting( 'label_primary' ); ?></span>
    289287                <?php endif; ?>
    290288                <label class="ep-ct-switch">
     
    293291                </label>
    294292                <?php if ( $label_secondary ) : ?>
    295                     <span class="ep-ct-switch-label"><?php echo esc_html( $label_secondary ); ?></span>
     293                    <span class="ep-ct-switch-label"><?php $this->print_unescaped_setting( 'label_secondary' ); ?></span>
    296294                <?php endif; ?>
    297295            </div>
     
    300298                    <?php
    301299                    if ( $content_primary ) {
    302                         echo $content_primary;
     300                        // This has been passed through parse_text_editor() or get_builder_content_for_display() and is safe.
     301                        echo $content_primary; // phpcs:ignore WordPress.Security.EscapeOutput
    303302                    }
    304303                    ?>
     
    307306                    <?php
    308307                    if ( $content_secondary ) {
    309                         echo $content_secondary;
     308                        // This has been passed through parse_text_editor() or get_builder_content_for_display() and is safe.
     309                        echo $content_secondary; // phpcs:ignore WordPress.Security.EscapeOutput
    310310                    }
    311311                    ?>
  • elements-plus/tags/2.16.4/elements/ep-countdown.php

    r3051129 r3055558  
    314314            }
    315315
    316             $diff         = strtotime( $settings['time_out'] ) - current_time( 'timestamp' );
    317             $expired_text = $settings['end_text'];
    318             $label        = $settings['toggle_labels'] ? true : false;
    319             $days         = $settings['toggle_days'] ? true : false;
    320             $hours        = $settings['toggle_hours'] ? true : false;
    321             $minutes      = $settings['toggle_minutes'] ? true : false;
    322             $seconds      = $settings['toggle_seconds'] ? true : false;
    323 
     316            $diff    = strtotime( $settings['time_out'] ) - current_time( 'timestamp' );
     317            $label   = $settings['toggle_labels'] ? true : false;
     318            $days    = $settings['toggle_days'] ? true : false;
     319            $hours   = $settings['toggle_hours'] ? true : false;
     320            $minutes = $settings['toggle_minutes'] ? true : false;
     321            $seconds = $settings['toggle_seconds'] ? true : false;
    324322            ?>
    325323            <div class="elements-plus-countdown" data-date="<?php echo esc_attr( $time_out ); ?>">
     
    359357                        <?php endif; ?>
    360358                    <?php } else { ?>
    361                         <p class="expired"><?php echo esc_html( $expired_text ); ?></p>
     359                        <p class="expired"><?php $this->print_unescaped_setting( 'end_text' ); ?></p>
    362360                    <?php } ?>
    363361                </div>
  • elements-plus/tags/2.16.4/elements/ep-cta.php

    r3051129 r3055558  
    491491            $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' );
    492492            ?>
    493             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
     493            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
    494494                <?php if ( empty( $settings['button_text'] ) && $settings['link'] ) : ?>
    495                     <a <?php echo $this->get_render_attribute_string( 'cta' ); ?>>
     495                    <a <?php $this->print_render_attribute_string( 'cta' ); ?>>
    496496                <?php endif; ?>
    497                         <span class="cta-text text-1"><?php echo $settings['text']; ?></span>
    498                         <span class="cta-text text-2"><?php echo $settings['text_2']; ?></span>
     497                        <span class="cta-text text-1"><?php $this->print_unescaped_setting( 'text' ); ?></span>
     498                        <span class="cta-text text-2"><?php $this->print_unescaped_setting( 'text_2' ); ?></span>
    499499                <?php if ( empty( $settings['button_text'] ) && $settings['link'] ) : ?>
    500500                    </a>
    501501                <?php endif; ?>
    502502                <?php if ( $settings['link'] && $settings['button_text'] ) : ?>
    503                     <a <?php echo $this->get_render_attribute_string( 'button' ); ?>>
    504                     <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
    505                         <span class="elementor-button-text"><?php echo $settings['button_text']; ?></span>
     503                    <a <?php $this->print_render_attribute_string( 'button' ); ?>>
     504                    <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
     505                        <span class="elementor-button-text"><?php $this->print_unescaped_setting( 'button_text' ); ?></span>
    506506                    </span>
    507507                    </a>
  • elements-plus/tags/2.16.4/elements/ep-dual-button.php

    r3051129 r3055558  
    789789
    790790        ?>
    791         <div <?php echo $this->get_render_attribute_string( 'container' ); ?>>
    792             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    793                 <a <?php echo $this->get_render_attribute_string( 'button_1' ); ?>>
     791        <div <?php $this->print_render_attribute_string( 'container' ); ?>>
     792            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     793                <a <?php $this->print_render_attribute_string( 'button_1' ); ?>>
    794794                    <?php $this->render_text( 'button_1' ); ?>
    795795                </a>
    796796            </div>
    797             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    798                 <a <?php echo $this->get_render_attribute_string( 'button_2' ); ?>>
     797            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     798                <a <?php $this->print_render_attribute_string( 'button_2' ); ?>>
    799799                    <?php $this->render_text( 'button_2' ); ?>
    800800                </a>
     
    834834        $this->add_inline_editing_attributes( $button . '_text', 'none' );
    835835        ?>
    836         <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
     836        <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
    837837            <?php if ( ! $is_new || ! empty( $settings[$button . '_icon_fa5'] ) ) : ?>
    838             <span <?php echo $this->get_render_attribute_string( 'icon-align' ); ?>>
    839                 <?php
    840                 if ( $is_new || $migrated ) {
    841                     Icons_Manager::render_icon( $settings[ $button . '_icon_fa5' ], array( 'aria-hidden' => 'true' ) );
    842                 } else {
     838                <span <?php $this->print_render_attribute_string( 'icon-align' ); ?>>
     839                    <?php
     840                    if ( $is_new || $migrated ) {
     841                        Icons_Manager::render_icon( $settings[ $button . '_icon_fa5' ], array( 'aria-hidden' => 'true' ) );
     842                    } else {
     843                        ?><i class="<?php echo esc_attr( $settings[ $button . '_icon' ] ); ?>" aria-hidden="true"></i><?php
     844                    }
    843845                    ?>
    844                     <i class="<?php echo $settings[ $button . '_icon' ]; ?>" aria-hidden="true"></i>
    845                     <?php
    846                 }
    847                 ?>
     846                </span>
     847            <?php endif; ?>
     848            <span <?php $this->print_render_attribute_string( $button . '_text' ); ?>>
     849                <?php $this->print_unescaped_setting( $button . '_text' ); ?>
    848850            </span>
    849             <?php endif; ?>
    850             <span <?php echo $this->get_render_attribute_string( $button . '_text' ); ?>><?php echo $settings[$button . '_text']; ?></span>
    851851        </span>
    852852        <?php
  • elements-plus/tags/2.16.4/elements/ep-heading.php

    r3051129 r3055558  
    360360        $title_html = sprintf( '<%1$s %2$s>%3$s</%1$s>', $settings['header_size'], $this->get_render_attribute_string( 'title' ), $title );
    361361
    362         echo $title_html;
     362        echo wp_kses_post( $title_html );
    363363    }
    364364}
  • elements-plus/tags/2.16.4/elements/ep-hotspots.php

    r3051129 r3055558  
    337337        ?>
    338338        <div class="ep-map">
    339 
    340         <?php
    341         foreach ( $markers as $marker ) {
    342             $migrated = isset( $settings['__fa4_migrated']['marker_icon_fa5'] );
    343             $is_new   = empty( $marker['marker_icon'] );
     339            <?php
     340            foreach ( $markers as $marker ) {
     341                $migrated = isset( $settings['__fa4_migrated']['marker_icon_fa5'] );
     342                $is_new   = empty( $marker['marker_icon'] );
     343
     344                $tooltip_content = wp_kses_post( sprintf( '<div class="ep-tipso-content">%s</div>',
     345                    $marker['tooltip_text']
     346                ) );
     347                $tooltip_title = wp_kses_post( sprintf( '<h3 class="ep-tipso-title">%s</h3>',
     348                    $marker['tooltip_title']
     349                ) );
     350                ?>
     351                    <div class="ep-map-item ep-map-item-<?php echo esc_attr( $marker['_id'] ); ?>"
     352                    style="left:<?php echo intval( $marker['marker_position_x']['size'] ); ?>%;top:<?php echo intval( $marker['marker_position_y']['size'] ); ?>%;"
     353                    data-show-tooltip = "<?php echo esc_attr( $marker['show_tooltip'] ); ?>"
     354                    data-tipso-content="<?php echo esc_attr( $tooltip_content ); ?>"
     355                    data-tipso-background="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
     356                    data-tipso-color="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
     357                    data-tipso-titleColor="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
     358                    data-tipso-titleBackground="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
     359                    data-tipso-titleContent="<?php echo esc_attr( $tooltip_title ); ?>"
     360                    data-tipso-width="<?php echo esc_attr( $settings['popup_width']['size'] ); ?>"
     361                    data-tipso-position="<?php echo esc_attr( $marker['tooltip_position'] ); ?>">
     362
     363                        <span class="ep-marker ep-marker-<?php echo esc_attr( $marker['_id'] ); ?>">
     364                            <span class="ep-marker-inner">
     365                                <?php
     366                                if ( 'label' === $marker['marker_type'] ) {
     367                                    echo esc_html( $marker['marker_label'] );
     368                                } elseif ( 'icon' === $marker['marker_type'] ) {
     369                                    if ( $is_new || $migrated ) {
     370                                        Icons_Manager::render_icon( $marker['marker_icon_fa5'], [ 'aria-hidden' => 'true' ] );
     371                                    } else {
     372                                        ?><i class="<?php echo esc_attr( $marker['marker_icon'] ); ?>" aria-hidden="true"></i><?php
     373                                    }
     374                                }
     375                                ?>
     376                            </span>
     377                        </span>
     378                    </div>
     379                <?php
     380            }
    344381            ?>
    345                 <div class="ep-map-item ep-map-item-<?php echo esc_attr( $marker['_id'] ); ?>"
    346                 style="left:<?php echo intval( $marker['marker_position_x']['size'] ); ?>%;top:<?php echo intval( $marker['marker_position_y']['size'] ); ?>%;"
    347                 data-show-tooltip = "<?php echo esc_attr( $marker['show_tooltip'] ); ?>"
    348                 data-tipso-content='<div class="ep-tipso-content"><?php echo esc_attr( wp_kses_post( $marker['tooltip_text'] ) ); ?></div>'
    349                 data-tipso-background="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
    350                 data-tipso-color="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
    351                 data-tipso-titleColor="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
    352                 data-tipso-titleBackground="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
    353                 data-tipso-titleContent='<h3 class="ep-tipso-title"><?php echo esc_html( $marker['tooltip_title'] ); ?></h3>'
    354                 data-tipso-width="<?php echo esc_attr( $settings['popup_width']['size'] ); ?>"
    355                 data-tipso-position="<?php echo wp_kses_post( $marker['tooltip_position'] ); ?>">
    356 
    357                     <span
    358                     class="ep-marker ep-marker-<?php echo esc_attr( $marker['_id'] ); ?>"
    359                     >
    360                         <span class="ep-marker-inner">
    361                             <?php
    362                             if ( 'label' === $marker['marker_type'] ) {
    363                                 echo esc_html( $marker['marker_label'] );
    364                             } elseif ( 'icon' === $marker['marker_type'] ) {
    365                                 if ( $is_new || $migrated ) {
    366                                     Icons_Manager::render_icon( $marker['marker_icon_fa5'], [ 'aria-hidden' => 'true' ] );
    367                                 } else {
    368                                     echo '<i class="' . esc_attr( $marker['marker_icon'] ) . '" aria-hidden="true"></i>';
    369                                 }
    370                             }
    371                             ?>
    372                         </span>
    373                     </span>
    374                 </div>
    375             <?php
    376         }
    377         ?>
    378 
    379             <img src="<?php echo esc_url_raw( $image_url ); ?>" />
     382
     383            <img src="<?php echo esc_url( $image_url ); ?>" />
    380384        </div>
    381385        <?php
  • elements-plus/tags/2.16.4/elements/ep-icon-plus.php

    r3051129 r3055558  
    361361
    362362        ?>
    363         <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    364             <<?php echo $icon_tag . ' ' . $this->get_render_attribute_string( 'icon-wrapper' ); ?>>
    365                 <i <?php echo $this->get_render_attribute_string( 'icon' ); ?>></i>
    366             </<?php echo $icon_tag; ?>>
     363        <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     364            <<?php echo esc_html( $icon_tag ); ?> <?php $this->print_render_attribute_string( 'icon-wrapper' ); ?>>
     365                <i <?php $this->print_render_attribute_string( 'icon' ); ?>></i>
     366            </<?php echo esc_html( $icon_tag ); ?>>
    367367        </div>
    368368        <?php
  • elements-plus/tags/2.16.4/elements/ep-image-accordion.php

    r3051129 r3055558  
    293293                            $this->add_link_attributes( "accordion_item_$i", $url, true );
    294294                        ?>
    295                         <li class="<?php echo esc_attr( $active_class ); ?>" style="background-image:url('<?php echo esc_url_raw( $img ); ?>');">
     295                        <li class="<?php echo esc_attr( $active_class ); ?>" style="background-image:url('<?php echo esc_url( $img ); ?>');">
    296296                            <div>
    297297                                <span>
     
    299299                                        <div class="ep-accordion-content">
    300300                                            <?php if ( $url['url'] ) : ?>
    301                                                 <a <?php echo $this->get_render_attribute_string( "accordion_item_$i" ); ?>>
     301                                                <a <?php $this->print_render_attribute_string( "accordion_item_$i" ); ?>>
    302302                                            <?php endif; ?>
    303303                                                <?php if ( $title ) : ?>
  • elements-plus/tags/2.16.4/elements/ep-image-comparison.php

    r2853677 r3055558  
    166166            }
    167167
    168             $image_1_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'large', 'image_1' );
    169             $image_2_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'large', 'image_2' );
    170168            ?>
    171169                <div id="ep-ic-<?php echo esc_attr( $this->get_id() ); ?>" data-offset="<?php echo floatval( $offset ); ?>" data-orientation="<?php echo esc_attr( $orientation ); ?>" data-before-label="<?php echo esc_attr( $before_label ); ?>" data-after-label="<?php echo esc_attr( $after_label ); ?>" data-overlay="<?php echo esc_attr( $overlay ); ?>" data-hover="<?php echo esc_attr( $hover ); ?>" data-handle="<?php echo esc_attr( $handle ); ?>" data-click="<?php echo esc_attr( $click ); ?>">
    172                     <?php echo $image_1_html; ?>
    173                     <?php echo $image_2_html; ?>
     170                    <?php Group_Control_Image_Size::print_attachment_image_html( $settings, 'large', 'image_1' ); ?>
     171                    <?php Group_Control_Image_Size::print_attachment_image_html( $settings, 'large', 'image_2' ); ?>
    174172                </div>
    175173                <script>
  • elements-plus/tags/2.16.4/elements/ep-image-hover-effects.php

    r3051129 r3055558  
    106106            <div id="ep-ihe-<?php echo esc_attr( $this->get_id() ); ?>" class="ep-ihe" data-image1="<?php echo esc_url( $image_1[0] ); ?>" data-image2="<?php echo esc_url( $image_2[0] ); ?>" data-displacement="<?php echo esc_url( $displacement_image_url ); ?>" style="padding-top:calc(<?php echo intval( $image_1[2] ); ?> / <?php echo intval( $image_1[1] ); ?> * 100%);">
    107107                <?php if ( $settings['link'] ) : ?>
    108                     <a <?php echo $this->get_render_attribute_string( 'image' ); ?>>
     108                    <a <?php $this->print_render_attribute_string( 'image' ); ?>>
    109109                <?php endif; ?>
    110110                    <div class="img-container"></div>
  • elements-plus/tags/2.16.4/elements/ep-inline-svg.php

    r3051129 r3055558  
    202202            <?php if ( ! empty( $settings['svg']['url'] ) ) { ?>
    203203                <<?php echo esc_html( $tag ); ?>
    204                     <?php echo $this->get_render_attribute_string( 'svg' ); ?>>
     204                    <?php $this->print_render_attribute_string( 'svg' ); ?>>
    205205                </<?php echo esc_html( $tag ); ?>>
    206206            <?php } ?>
  • elements-plus/tags/2.16.4/elements/ep-justified-gallery.php

    r3051129 r3055558  
    279279                <?php foreach ( $ids as $id ) : ?>
    280280                    <?php
    281                         $img      = wp_get_attachment_image_src( $id, $settings['thumbnail_size'] );
    282                         $img_full = wp_get_attachment_url( $id );
     281                        $img      = wp_get_attachment_image_url( $id, $settings['thumbnail_size'] );
     282                        $img_full = wp_get_attachment_image_url( $id, 'full' );
    283283                        $att_link = get_attachment_link( $id );
    284284                        $link     = $settings['gallery_link'];
     
    292292                    <?php endif; ?>
    293293
    294                     <img src="<?php echo esc_url( $img['0'] ); ?>" alt="<?php echo esc_attr( wp_get_attachment_caption( $id ) ); ?>">
     294                    <img src="<?php echo esc_url( $img ); ?>" alt="<?php echo esc_attr( wp_get_attachment_caption( $id ) ); ?>">
    295295
    296296                    <?php if ( $link !== 'none' ) : ?>
  • elements-plus/tags/2.16.4/elements/ep-label.php

    r3051129 r3055558  
    239239
    240240            ?>
    241             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    242                 <div <?php echo $this->get_render_attribute_string( 'label' ); ?>>
    243                     <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
     241            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     242                <div <?php $this->print_render_attribute_string( 'label' ); ?>>
     243                    <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
    244244                        <?php if ( ( ! $is_new || ! empty( $settings['icon_fa5'] ) ) ) : ?>
    245                             <span <?php echo $this->get_render_attribute_string( 'icon-align' ); ?>>
     245                            <span <?php $this->print_render_attribute_string( 'icon-align' ); ?>>
    246246                            <?php
    247247                            if ( $is_new || $migrated ) {
     
    255255                            </span>
    256256                        <?php endif; ?>
    257                         <span class="elementor-label-text"><?php echo $settings['text']; ?></span>
     257                        <span class="elementor-label-text"><?php $this->print_unescaped_setting( 'text' ); ?></span>
    258258                    </span>
    259259                </div>
  • elements-plus/tags/2.16.4/elements/ep-pricing-list.php

    r3051129 r3055558  
    300300        ?>
    301301        <div class="ep-pricing-list">
    302         <?php
    303         foreach ( $pricing_list as $list_item ) {
     302            <?php
     303            foreach ( $pricing_list as $list_item ) {
     304                ?>
     305                <div class="ep-pricing-list-item ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
     306                    <?php if ( 'none' !== $settings['image_appearance'] ) : ?>
     307                        <div class="ep-pricing-list-item-thumb ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
     308                            <?php echo wp_get_attachment_image( $list_item['item_image']['id'], $list_item['image_size'] ); ?>
     309                        </div>
     310                    <?php endif; ?>
     311                    <div class="ep-pricing-list-item-content">
     312                        <p class="ep-pricing-list-item-title">
     313                            <?php echo esc_html( $list_item['item_title'] ); ?>
     314                            <?php if ( $list_item['item_price'] ) : ?>
     315                                <span class="ep-pricing-list-item-price">
     316                                    <?php echo esc_html( $list_item['item_price'] ); ?>
     317                                </span>
     318                            <?php endif; ?>
     319                        </p>
     320                        <?php if ( $list_item['item_content'] ) : ?>
     321                            <p class="ep-pricing-list-item-description">
     322                                <?php echo esc_html( $list_item['item_content'] ); ?>
     323                            </p>
     324                        <?php endif; ?>
     325                    </div>
     326                </div>
     327                <?php
     328            }
    304329            ?>
    305             <div class="ep-pricing-list-item ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
    306                 <?php if ( 'none' !== $settings['image_appearance'] ) : ?>
    307                     <div class="ep-pricing-list-item-thumb ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
    308                         <?php echo wp_get_attachment_image( $list_item['item_image']['id'], $list_item['image_size'] ); ?>
    309                     </div>
    310                 <?php endif; ?>
    311                 <div class="ep-pricing-list-item-content">
    312                     <p class="ep-pricing-list-item-title">
    313                         <?php echo $list_item['item_title']; ?>
    314                         <?php if ( $list_item['item_price'] ) : ?>
    315                             <span class="ep-pricing-list-item-price">
    316                                 <?php echo $list_item['item_price']; ?>
    317                             </span>
    318                         <?php endif; ?>
    319                     </p>
    320                     <?php if ( $list_item['item_content'] ) : ?>
    321                         <p class="ep-pricing-list-item-description">
    322                             <?php echo $list_item['item_content']; ?>
    323                         </p>
    324                     <?php endif; ?>
    325                 </div>
    326             </div>
    327             <?php
    328         }
    329         ?>
    330330        </div>
    331331        <?php
  • elements-plus/tags/2.16.4/elements/ep-tables.php

    r3051129 r3055558  
    384384                    <?php
    385385                    foreach ( $table_header as $arr_index => $data ) {
    386 
    387                         echo '<th class="elementor-repeater-item-' . esc_attr( $data['_id'] ) . '" colspan="' . intval( $data['colspan'] ) . '" rowspan="' . intval( $data['rowspan'] ) . '">' . esc_html( $data['text'] ) . '</th>';
     386                        echo wp_kses_post( sprintf( '<th class="elementor-repeater-item-%s" colspan="%d" rowspan="%d">%s</th>',
     387                            esc_attr( $data['_id'] ),
     388                            (int) $data['colspan'],
     389                            (int) $data['rowspan'],
     390                            $data['text']
     391                        ) );
    388392                    }
    389393                    ?>
     
    398402                        }
    399403
    400                         echo '<td colspan="' . intval( $data['colspan'] ) . '" rowspan="' . intval( $data['rowspan'] ) . '">' . wp_kses_post( $data['text'] ) . '</td>';
     404                        echo wp_kses_post( sprintf( '<td colspan="%d" rowspan="%d">%s</td>',
     405                            (int) $data['colspan'],
     406                            (int) $data['rowspan'],
     407                            $data['text']
     408                        ) );
    401409                    }
    402410                    ?>
  • elements-plus/tags/2.16.4/elements/ep-video-slider.php

    r3051129 r3055558  
    217217            $slides = 'below' === $position ? '5' : '4';
    218218            ?>
    219             <div id="ep-vs-<?php echo esc_attr( $this->get_id() ); ?>" class="ep-slider-container" data-position="<?php echo ( 'below' === $position ) ? 'false' : 'true'; ?>" data-slides="<?php echo esc_attr( $slides ); ?>">
     219            <div id="ep-vs-<?php echo esc_attr( $this->get_id() ); ?>" class="ep-slider-container" data-position="<?php echo esc_attr( ( 'below' === $position ) ? 'false' : 'true' ); ?>" data-slides="<?php echo esc_attr( $slides ); ?>">
    220220                <div class="ep-slider-item ep-video-slider <?php echo esc_attr( $position ); ?>">
    221                     <?php foreach( $settings['video-list'] as $video ) {
    222                         $url = empty ( $video['video_url']['url'] ) ? '#' : esc_url( $video['video_url']['url'] );
     221                    <?php foreach ( $settings['video-list'] as $video ) {
     222                        $url = empty( $video['video_url']['url'] ) ? '#' : esc_url_raw( $video['video_url']['url'] );
    223223
    224224                        ?><div class="ep-video-slide"><?php echo wp_oembed_get( $url ); ?></div><?php
     
    226226                </div>
    227227                <div class="ep-slider-item ep-slider-nav <?php echo esc_attr( $position ); ?>">
    228                     <?php foreach( $settings['video-list'] as $video ) {
    229                         $url = empty ( $video['video_url']['url'] ) ? '#' : esc_url( $video['video_url']['url'] );
     228                    <?php foreach ( $settings['video-list'] as $video ) {
     229                        $url        = empty( $video['video_url']['url'] ) ? '#' : esc_url_raw( $video['video_url']['url'] );
    230230                        $video_info = elements_plus_get_video_url_info( $url );
    231                         $thumb = "https://img.youtube.com/vi/" . $video_info['video_id'] . "/hqdefault.jpg"
     231                        $thumb      = "https://img.youtube.com/vi/" . $video_info['video_id'] . "/hqdefault.jpg"
    232232                        ?>
    233233                        <div>
    234                             <div class="ep-nav-slide" style="background-image: url('<?php echo esc_attr( $thumb ); ?>');">
    235                                 <h2 class="ep-nav-title"><?php echo $video['text']; ?></h2>
     234                            <div class="ep-nav-slide" style="background-image: url('<?php echo esc_url( $thumb ); ?>');">
     235                                <h2 class="ep-nav-title"><?php echo esc_html( $video['text'] ); ?></h2>
    236236                            </div>
    237237                        </div>
  • elements-plus/tags/2.16.4/elements/ep-wpforms.php

    r3051129 r3055558  
    748748
    749749        if ( $widget_title ) {
    750             echo '<h5 class="widget-title">' . esc_html( $widget_title ) . '</h5>';
     750            ?><h5 class="widget-title"><?php $this->print_unescaped_setting( 'widget_title' ); ?></h5><?php
    751751        }
    752752
  • elements-plus/tags/2.16.4/languages/elements-plus.pot

    r3051129 r3055558  
    33msgstr ""
    44"Project-Id-Version: Elements Plus!\n"
    5 "POT-Creation-Date: 2024-03-14 16:23+0200\n"
     5"POT-Creation-Date: 2024-03-20 20:31+0200\n"
    66"PO-Revision-Date: 2016-08-29 19:22+0300\n"
    77"Last-Translator: Nik Vourvachis <[email protected]>\n"
     
    611611msgstr ""
    612612
    613 #: elements/ep-countdown.php:332
     613#: elements/ep-countdown.php:330
    614614msgid "Days"
    615615msgstr ""
    616616
    617 #: elements/ep-countdown.php:340
     617#: elements/ep-countdown.php:338
    618618msgid "Hours"
    619619msgstr ""
    620620
    621 #: elements/ep-countdown.php:348 elements/ep-flipclock.php:71
     621#: elements/ep-countdown.php:346 elements/ep-flipclock.php:71
    622622msgid "Minutes"
    623623msgstr ""
    624624
    625 #: elements/ep-countdown.php:356
     625#: elements/ep-countdown.php:354
    626626msgid "Seconds"
    627627msgstr ""
  • elements-plus/tags/2.16.4/readme.txt

    r3051129 r3055558  
    55Tested up to: 6.4.3
    66Requires PHP: 5.4
    7 Stable tag: 2.16.3
     7Stable tag: 2.16.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    104104
    105105== Changelog ==
     106
     107= 2.16.4 =
     108* Properly escape all output. Fixes Cross Site Scripting (XSS) issues (props Abu Hurayra).
    106109
    107110= 2.16.3 =
  • elements-plus/trunk/elements-plus.php

    r3051129 r3055558  
    55 * Plugin URI: https://cssigniter.com/plugins/elements-plus/
    66 * Author: The CSSIgniter Team
    7  * Version: 2.16.3
     7 * Version: 2.16.4
    88 * Author URI: https://cssigniter.com/
    99 * Text Domain: elements-plus
     
    3131function elements_plus_init() {
    3232
    33     define( 'ELEMENTS_PLUS_VERSION', '2.16.3' );
     33    define( 'ELEMENTS_PLUS_VERSION', '2.16.4' );
    3434    define( 'ELEMENTS_PLUS_URL', plugins_url( '/', __FILE__ ) );
    3535    define( 'ELEMENTS_PLUS_PATH', plugin_dir_path( __FILE__ ) );
  • elements-plus/trunk/elements/ep-audioigniter.php

    r2853677 r3055558  
    159159        protected function render() {
    160160            $settings = $this->get_settings();
    161             $id = $settings['playlist'];
     161            $id = (int) $settings['playlist'];
    162162
    163163            if ( ! $id ) {
    164164                return;
    165165            }
    166 
    167             $shortcode = do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) );
    168166            ?>
    169167            <div
     
    171169                class="ep-audioigniter"
    172170            >
    173                 <?php echo $shortcode; ?>
     171                <?php echo do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) ); ?>
    174172            </div>
    175173
  • elements-plus/trunk/elements/ep-button-plus.php

    r3051129 r3055558  
    453453            $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' );
    454454            ?>
    455             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    456                 <a <?php echo $this->get_render_attribute_string( 'button' ); ?>>
    457                 <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
    458                     <span class="elementor-button-text button-plus text-1"><?php echo $settings['text']; ?></span>
    459                     <span class="elementor-button-text button-plus text-2"><?php echo $settings['text_2']; ?></span>
     455            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     456                <a <?php $this->print_render_attribute_string( 'button' ); ?>>
     457                <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
     458                    <span class="elementor-button-text button-plus text-1"><?php $this->print_unescaped_setting( 'text' ); ?></span>
     459                    <span class="elementor-button-text button-plus text-2"><?php $this->print_unescaped_setting( 'text_2' ); ?></span>
    460460                </span>
    461461                </a>
  • elements-plus/trunk/elements/ep-caldera-forms.php

    r3051129 r3055558  
    498498        $settings     = $this->get_settings();
    499499        $widget_title = $settings['widget_title'];
    500         $form_id      = $settings['select_form'];
     500        $form_id      = (int) $settings['select_form'];
    501501
    502502        if ( empty( $form_id ) ) {
     
    505505
    506506        if ( $widget_title ) {
    507             echo '<h5 class="widget-title">' . esc_html( $widget_title ) . '</h5>';
     507            ?><h5 class="widget-title"><?php $this->print_unescaped_setting( 'widget_title' ); ?></h5><?php
    508508        }
    509509
  • elements-plus/trunk/elements/ep-cf7.php

    r3051129 r3055558  
    539539    protected function render() {
    540540        $settings = $this->get_settings();
    541         $form_id  = $settings['select_form'];
     541        $form_id  = (int) $settings['select_form'];
    542542
    543543        if ( empty( $form_id ) ) {
  • elements-plus/trunk/elements/ep-content-toggle.php

    r3051129 r3055558  
    271271        } elseif ( 'template' === $settings['content_type_primary'] ) {
    272272            $el_frontend     = new Frontend();
    273             $content_primary = $el_frontend->get_builder_content( $settings['template_primary'], true );
     273            $content_primary = $el_frontend->get_builder_content_for_display( (int) $settings['template_primary'], true );
    274274        }
    275275
     
    278278        } elseif ( 'template' === $settings['content_type_secondary'] ) {
    279279            $el_frontend       = new Frontend();
    280             $content_secondary = $el_frontend->get_builder_content( $settings['template_secondary'], true );
     280            $content_secondary = $el_frontend->get_builder_content_for_display( (int) $settings['template_secondary'], true );
    281281        }
    282 
    283282        ?>
    284 
    285283        <div class="ep-ct-outer-wrapper">
    286284            <div class="ep-ct-switch-wrapper">
    287285                <?php if ( $label_primary ) : ?>
    288                     <span class="ep-ct-switch-label"><?php echo esc_html( $label_primary ); ?></span>
     286                    <span class="ep-ct-switch-label"><?php $this->print_unescaped_setting( 'label_primary' ); ?></span>
    289287                <?php endif; ?>
    290288                <label class="ep-ct-switch">
     
    293291                </label>
    294292                <?php if ( $label_secondary ) : ?>
    295                     <span class="ep-ct-switch-label"><?php echo esc_html( $label_secondary ); ?></span>
     293                    <span class="ep-ct-switch-label"><?php $this->print_unescaped_setting( 'label_secondary' ); ?></span>
    296294                <?php endif; ?>
    297295            </div>
     
    300298                    <?php
    301299                    if ( $content_primary ) {
    302                         echo $content_primary;
     300                        // This has been passed through parse_text_editor() or get_builder_content_for_display() and is safe.
     301                        echo $content_primary; // phpcs:ignore WordPress.Security.EscapeOutput
    303302                    }
    304303                    ?>
     
    307306                    <?php
    308307                    if ( $content_secondary ) {
    309                         echo $content_secondary;
     308                        // This has been passed through parse_text_editor() or get_builder_content_for_display() and is safe.
     309                        echo $content_secondary; // phpcs:ignore WordPress.Security.EscapeOutput
    310310                    }
    311311                    ?>
  • elements-plus/trunk/elements/ep-countdown.php

    r3051129 r3055558  
    314314            }
    315315
    316             $diff         = strtotime( $settings['time_out'] ) - current_time( 'timestamp' );
    317             $expired_text = $settings['end_text'];
    318             $label        = $settings['toggle_labels'] ? true : false;
    319             $days         = $settings['toggle_days'] ? true : false;
    320             $hours        = $settings['toggle_hours'] ? true : false;
    321             $minutes      = $settings['toggle_minutes'] ? true : false;
    322             $seconds      = $settings['toggle_seconds'] ? true : false;
    323 
     316            $diff    = strtotime( $settings['time_out'] ) - current_time( 'timestamp' );
     317            $label   = $settings['toggle_labels'] ? true : false;
     318            $days    = $settings['toggle_days'] ? true : false;
     319            $hours   = $settings['toggle_hours'] ? true : false;
     320            $minutes = $settings['toggle_minutes'] ? true : false;
     321            $seconds = $settings['toggle_seconds'] ? true : false;
    324322            ?>
    325323            <div class="elements-plus-countdown" data-date="<?php echo esc_attr( $time_out ); ?>">
     
    359357                        <?php endif; ?>
    360358                    <?php } else { ?>
    361                         <p class="expired"><?php echo esc_html( $expired_text ); ?></p>
     359                        <p class="expired"><?php $this->print_unescaped_setting( 'end_text' ); ?></p>
    362360                    <?php } ?>
    363361                </div>
  • elements-plus/trunk/elements/ep-cta.php

    r3051129 r3055558  
    491491            $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' );
    492492            ?>
    493             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
     493            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
    494494                <?php if ( empty( $settings['button_text'] ) && $settings['link'] ) : ?>
    495                     <a <?php echo $this->get_render_attribute_string( 'cta' ); ?>>
     495                    <a <?php $this->print_render_attribute_string( 'cta' ); ?>>
    496496                <?php endif; ?>
    497                         <span class="cta-text text-1"><?php echo $settings['text']; ?></span>
    498                         <span class="cta-text text-2"><?php echo $settings['text_2']; ?></span>
     497                        <span class="cta-text text-1"><?php $this->print_unescaped_setting( 'text' ); ?></span>
     498                        <span class="cta-text text-2"><?php $this->print_unescaped_setting( 'text_2' ); ?></span>
    499499                <?php if ( empty( $settings['button_text'] ) && $settings['link'] ) : ?>
    500500                    </a>
    501501                <?php endif; ?>
    502502                <?php if ( $settings['link'] && $settings['button_text'] ) : ?>
    503                     <a <?php echo $this->get_render_attribute_string( 'button' ); ?>>
    504                     <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
    505                         <span class="elementor-button-text"><?php echo $settings['button_text']; ?></span>
     503                    <a <?php $this->print_render_attribute_string( 'button' ); ?>>
     504                    <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
     505                        <span class="elementor-button-text"><?php $this->print_unescaped_setting( 'button_text' ); ?></span>
    506506                    </span>
    507507                    </a>
  • elements-plus/trunk/elements/ep-dual-button.php

    r3051129 r3055558  
    789789
    790790        ?>
    791         <div <?php echo $this->get_render_attribute_string( 'container' ); ?>>
    792             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    793                 <a <?php echo $this->get_render_attribute_string( 'button_1' ); ?>>
     791        <div <?php $this->print_render_attribute_string( 'container' ); ?>>
     792            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     793                <a <?php $this->print_render_attribute_string( 'button_1' ); ?>>
    794794                    <?php $this->render_text( 'button_1' ); ?>
    795795                </a>
    796796            </div>
    797             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    798                 <a <?php echo $this->get_render_attribute_string( 'button_2' ); ?>>
     797            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     798                <a <?php $this->print_render_attribute_string( 'button_2' ); ?>>
    799799                    <?php $this->render_text( 'button_2' ); ?>
    800800                </a>
     
    834834        $this->add_inline_editing_attributes( $button . '_text', 'none' );
    835835        ?>
    836         <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
     836        <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
    837837            <?php if ( ! $is_new || ! empty( $settings[$button . '_icon_fa5'] ) ) : ?>
    838             <span <?php echo $this->get_render_attribute_string( 'icon-align' ); ?>>
    839                 <?php
    840                 if ( $is_new || $migrated ) {
    841                     Icons_Manager::render_icon( $settings[ $button . '_icon_fa5' ], array( 'aria-hidden' => 'true' ) );
    842                 } else {
     838                <span <?php $this->print_render_attribute_string( 'icon-align' ); ?>>
     839                    <?php
     840                    if ( $is_new || $migrated ) {
     841                        Icons_Manager::render_icon( $settings[ $button . '_icon_fa5' ], array( 'aria-hidden' => 'true' ) );
     842                    } else {
     843                        ?><i class="<?php echo esc_attr( $settings[ $button . '_icon' ] ); ?>" aria-hidden="true"></i><?php
     844                    }
    843845                    ?>
    844                     <i class="<?php echo $settings[ $button . '_icon' ]; ?>" aria-hidden="true"></i>
    845                     <?php
    846                 }
    847                 ?>
     846                </span>
     847            <?php endif; ?>
     848            <span <?php $this->print_render_attribute_string( $button . '_text' ); ?>>
     849                <?php $this->print_unescaped_setting( $button . '_text' ); ?>
    848850            </span>
    849             <?php endif; ?>
    850             <span <?php echo $this->get_render_attribute_string( $button . '_text' ); ?>><?php echo $settings[$button . '_text']; ?></span>
    851851        </span>
    852852        <?php
  • elements-plus/trunk/elements/ep-heading.php

    r3051129 r3055558  
    360360        $title_html = sprintf( '<%1$s %2$s>%3$s</%1$s>', $settings['header_size'], $this->get_render_attribute_string( 'title' ), $title );
    361361
    362         echo $title_html;
     362        echo wp_kses_post( $title_html );
    363363    }
    364364}
  • elements-plus/trunk/elements/ep-hotspots.php

    r3051129 r3055558  
    337337        ?>
    338338        <div class="ep-map">
    339 
    340         <?php
    341         foreach ( $markers as $marker ) {
    342             $migrated = isset( $settings['__fa4_migrated']['marker_icon_fa5'] );
    343             $is_new   = empty( $marker['marker_icon'] );
     339            <?php
     340            foreach ( $markers as $marker ) {
     341                $migrated = isset( $settings['__fa4_migrated']['marker_icon_fa5'] );
     342                $is_new   = empty( $marker['marker_icon'] );
     343
     344                $tooltip_content = wp_kses_post( sprintf( '<div class="ep-tipso-content">%s</div>',
     345                    $marker['tooltip_text']
     346                ) );
     347                $tooltip_title = wp_kses_post( sprintf( '<h3 class="ep-tipso-title">%s</h3>',
     348                    $marker['tooltip_title']
     349                ) );
     350                ?>
     351                    <div class="ep-map-item ep-map-item-<?php echo esc_attr( $marker['_id'] ); ?>"
     352                    style="left:<?php echo intval( $marker['marker_position_x']['size'] ); ?>%;top:<?php echo intval( $marker['marker_position_y']['size'] ); ?>%;"
     353                    data-show-tooltip = "<?php echo esc_attr( $marker['show_tooltip'] ); ?>"
     354                    data-tipso-content="<?php echo esc_attr( $tooltip_content ); ?>"
     355                    data-tipso-background="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
     356                    data-tipso-color="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
     357                    data-tipso-titleColor="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
     358                    data-tipso-titleBackground="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
     359                    data-tipso-titleContent="<?php echo esc_attr( $tooltip_title ); ?>"
     360                    data-tipso-width="<?php echo esc_attr( $settings['popup_width']['size'] ); ?>"
     361                    data-tipso-position="<?php echo esc_attr( $marker['tooltip_position'] ); ?>">
     362
     363                        <span class="ep-marker ep-marker-<?php echo esc_attr( $marker['_id'] ); ?>">
     364                            <span class="ep-marker-inner">
     365                                <?php
     366                                if ( 'label' === $marker['marker_type'] ) {
     367                                    echo esc_html( $marker['marker_label'] );
     368                                } elseif ( 'icon' === $marker['marker_type'] ) {
     369                                    if ( $is_new || $migrated ) {
     370                                        Icons_Manager::render_icon( $marker['marker_icon_fa5'], [ 'aria-hidden' => 'true' ] );
     371                                    } else {
     372                                        ?><i class="<?php echo esc_attr( $marker['marker_icon'] ); ?>" aria-hidden="true"></i><?php
     373                                    }
     374                                }
     375                                ?>
     376                            </span>
     377                        </span>
     378                    </div>
     379                <?php
     380            }
    344381            ?>
    345                 <div class="ep-map-item ep-map-item-<?php echo esc_attr( $marker['_id'] ); ?>"
    346                 style="left:<?php echo intval( $marker['marker_position_x']['size'] ); ?>%;top:<?php echo intval( $marker['marker_position_y']['size'] ); ?>%;"
    347                 data-show-tooltip = "<?php echo esc_attr( $marker['show_tooltip'] ); ?>"
    348                 data-tipso-content='<div class="ep-tipso-content"><?php echo esc_attr( wp_kses_post( $marker['tooltip_text'] ) ); ?></div>'
    349                 data-tipso-background="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
    350                 data-tipso-color="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
    351                 data-tipso-titleColor="<?php echo esc_attr( $settings['popup_text_color'] ); ?>"
    352                 data-tipso-titleBackground="<?php echo esc_attr( $settings['popup_bg_color'] ); ?>"
    353                 data-tipso-titleContent='<h3 class="ep-tipso-title"><?php echo esc_html( $marker['tooltip_title'] ); ?></h3>'
    354                 data-tipso-width="<?php echo esc_attr( $settings['popup_width']['size'] ); ?>"
    355                 data-tipso-position="<?php echo wp_kses_post( $marker['tooltip_position'] ); ?>">
    356 
    357                     <span
    358                     class="ep-marker ep-marker-<?php echo esc_attr( $marker['_id'] ); ?>"
    359                     >
    360                         <span class="ep-marker-inner">
    361                             <?php
    362                             if ( 'label' === $marker['marker_type'] ) {
    363                                 echo esc_html( $marker['marker_label'] );
    364                             } elseif ( 'icon' === $marker['marker_type'] ) {
    365                                 if ( $is_new || $migrated ) {
    366                                     Icons_Manager::render_icon( $marker['marker_icon_fa5'], [ 'aria-hidden' => 'true' ] );
    367                                 } else {
    368                                     echo '<i class="' . esc_attr( $marker['marker_icon'] ) . '" aria-hidden="true"></i>';
    369                                 }
    370                             }
    371                             ?>
    372                         </span>
    373                     </span>
    374                 </div>
    375             <?php
    376         }
    377         ?>
    378 
    379             <img src="<?php echo esc_url_raw( $image_url ); ?>" />
     382
     383            <img src="<?php echo esc_url( $image_url ); ?>" />
    380384        </div>
    381385        <?php
  • elements-plus/trunk/elements/ep-icon-plus.php

    r3051129 r3055558  
    361361
    362362        ?>
    363         <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    364             <<?php echo $icon_tag . ' ' . $this->get_render_attribute_string( 'icon-wrapper' ); ?>>
    365                 <i <?php echo $this->get_render_attribute_string( 'icon' ); ?>></i>
    366             </<?php echo $icon_tag; ?>>
     363        <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     364            <<?php echo esc_html( $icon_tag ); ?> <?php $this->print_render_attribute_string( 'icon-wrapper' ); ?>>
     365                <i <?php $this->print_render_attribute_string( 'icon' ); ?>></i>
     366            </<?php echo esc_html( $icon_tag ); ?>>
    367367        </div>
    368368        <?php
  • elements-plus/trunk/elements/ep-image-accordion.php

    r3051129 r3055558  
    293293                            $this->add_link_attributes( "accordion_item_$i", $url, true );
    294294                        ?>
    295                         <li class="<?php echo esc_attr( $active_class ); ?>" style="background-image:url('<?php echo esc_url_raw( $img ); ?>');">
     295                        <li class="<?php echo esc_attr( $active_class ); ?>" style="background-image:url('<?php echo esc_url( $img ); ?>');">
    296296                            <div>
    297297                                <span>
     
    299299                                        <div class="ep-accordion-content">
    300300                                            <?php if ( $url['url'] ) : ?>
    301                                                 <a <?php echo $this->get_render_attribute_string( "accordion_item_$i" ); ?>>
     301                                                <a <?php $this->print_render_attribute_string( "accordion_item_$i" ); ?>>
    302302                                            <?php endif; ?>
    303303                                                <?php if ( $title ) : ?>
  • elements-plus/trunk/elements/ep-image-comparison.php

    r2853677 r3055558  
    166166            }
    167167
    168             $image_1_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'large', 'image_1' );
    169             $image_2_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'large', 'image_2' );
    170168            ?>
    171169                <div id="ep-ic-<?php echo esc_attr( $this->get_id() ); ?>" data-offset="<?php echo floatval( $offset ); ?>" data-orientation="<?php echo esc_attr( $orientation ); ?>" data-before-label="<?php echo esc_attr( $before_label ); ?>" data-after-label="<?php echo esc_attr( $after_label ); ?>" data-overlay="<?php echo esc_attr( $overlay ); ?>" data-hover="<?php echo esc_attr( $hover ); ?>" data-handle="<?php echo esc_attr( $handle ); ?>" data-click="<?php echo esc_attr( $click ); ?>">
    172                     <?php echo $image_1_html; ?>
    173                     <?php echo $image_2_html; ?>
     170                    <?php Group_Control_Image_Size::print_attachment_image_html( $settings, 'large', 'image_1' ); ?>
     171                    <?php Group_Control_Image_Size::print_attachment_image_html( $settings, 'large', 'image_2' ); ?>
    174172                </div>
    175173                <script>
  • elements-plus/trunk/elements/ep-image-hover-effects.php

    r3051129 r3055558  
    106106            <div id="ep-ihe-<?php echo esc_attr( $this->get_id() ); ?>" class="ep-ihe" data-image1="<?php echo esc_url( $image_1[0] ); ?>" data-image2="<?php echo esc_url( $image_2[0] ); ?>" data-displacement="<?php echo esc_url( $displacement_image_url ); ?>" style="padding-top:calc(<?php echo intval( $image_1[2] ); ?> / <?php echo intval( $image_1[1] ); ?> * 100%);">
    107107                <?php if ( $settings['link'] ) : ?>
    108                     <a <?php echo $this->get_render_attribute_string( 'image' ); ?>>
     108                    <a <?php $this->print_render_attribute_string( 'image' ); ?>>
    109109                <?php endif; ?>
    110110                    <div class="img-container"></div>
  • elements-plus/trunk/elements/ep-inline-svg.php

    r3051129 r3055558  
    202202            <?php if ( ! empty( $settings['svg']['url'] ) ) { ?>
    203203                <<?php echo esc_html( $tag ); ?>
    204                     <?php echo $this->get_render_attribute_string( 'svg' ); ?>>
     204                    <?php $this->print_render_attribute_string( 'svg' ); ?>>
    205205                </<?php echo esc_html( $tag ); ?>>
    206206            <?php } ?>
  • elements-plus/trunk/elements/ep-justified-gallery.php

    r3051129 r3055558  
    279279                <?php foreach ( $ids as $id ) : ?>
    280280                    <?php
    281                         $img      = wp_get_attachment_image_src( $id, $settings['thumbnail_size'] );
    282                         $img_full = wp_get_attachment_url( $id );
     281                        $img      = wp_get_attachment_image_url( $id, $settings['thumbnail_size'] );
     282                        $img_full = wp_get_attachment_image_url( $id, 'full' );
    283283                        $att_link = get_attachment_link( $id );
    284284                        $link     = $settings['gallery_link'];
     
    292292                    <?php endif; ?>
    293293
    294                     <img src="<?php echo esc_url( $img['0'] ); ?>" alt="<?php echo esc_attr( wp_get_attachment_caption( $id ) ); ?>">
     294                    <img src="<?php echo esc_url( $img ); ?>" alt="<?php echo esc_attr( wp_get_attachment_caption( $id ) ); ?>">
    295295
    296296                    <?php if ( $link !== 'none' ) : ?>
  • elements-plus/trunk/elements/ep-label.php

    r3051129 r3055558  
    239239
    240240            ?>
    241             <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
    242                 <div <?php echo $this->get_render_attribute_string( 'label' ); ?>>
    243                     <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>
     241            <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
     242                <div <?php $this->print_render_attribute_string( 'label' ); ?>>
     243                    <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>>
    244244                        <?php if ( ( ! $is_new || ! empty( $settings['icon_fa5'] ) ) ) : ?>
    245                             <span <?php echo $this->get_render_attribute_string( 'icon-align' ); ?>>
     245                            <span <?php $this->print_render_attribute_string( 'icon-align' ); ?>>
    246246                            <?php
    247247                            if ( $is_new || $migrated ) {
     
    255255                            </span>
    256256                        <?php endif; ?>
    257                         <span class="elementor-label-text"><?php echo $settings['text']; ?></span>
     257                        <span class="elementor-label-text"><?php $this->print_unescaped_setting( 'text' ); ?></span>
    258258                    </span>
    259259                </div>
  • elements-plus/trunk/elements/ep-pricing-list.php

    r3051129 r3055558  
    300300        ?>
    301301        <div class="ep-pricing-list">
    302         <?php
    303         foreach ( $pricing_list as $list_item ) {
     302            <?php
     303            foreach ( $pricing_list as $list_item ) {
     304                ?>
     305                <div class="ep-pricing-list-item ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
     306                    <?php if ( 'none' !== $settings['image_appearance'] ) : ?>
     307                        <div class="ep-pricing-list-item-thumb ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
     308                            <?php echo wp_get_attachment_image( $list_item['item_image']['id'], $list_item['image_size'] ); ?>
     309                        </div>
     310                    <?php endif; ?>
     311                    <div class="ep-pricing-list-item-content">
     312                        <p class="ep-pricing-list-item-title">
     313                            <?php echo esc_html( $list_item['item_title'] ); ?>
     314                            <?php if ( $list_item['item_price'] ) : ?>
     315                                <span class="ep-pricing-list-item-price">
     316                                    <?php echo esc_html( $list_item['item_price'] ); ?>
     317                                </span>
     318                            <?php endif; ?>
     319                        </p>
     320                        <?php if ( $list_item['item_content'] ) : ?>
     321                            <p class="ep-pricing-list-item-description">
     322                                <?php echo esc_html( $list_item['item_content'] ); ?>
     323                            </p>
     324                        <?php endif; ?>
     325                    </div>
     326                </div>
     327                <?php
     328            }
    304329            ?>
    305             <div class="ep-pricing-list-item ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
    306                 <?php if ( 'none' !== $settings['image_appearance'] ) : ?>
    307                     <div class="ep-pricing-list-item-thumb ep-image-<?php echo esc_attr( $settings['image_appearance'] ); ?>">
    308                         <?php echo wp_get_attachment_image( $list_item['item_image']['id'], $list_item['image_size'] ); ?>
    309                     </div>
    310                 <?php endif; ?>
    311                 <div class="ep-pricing-list-item-content">
    312                     <p class="ep-pricing-list-item-title">
    313                         <?php echo $list_item['item_title']; ?>
    314                         <?php if ( $list_item['item_price'] ) : ?>
    315                             <span class="ep-pricing-list-item-price">
    316                                 <?php echo $list_item['item_price']; ?>
    317                             </span>
    318                         <?php endif; ?>
    319                     </p>
    320                     <?php if ( $list_item['item_content'] ) : ?>
    321                         <p class="ep-pricing-list-item-description">
    322                             <?php echo $list_item['item_content']; ?>
    323                         </p>
    324                     <?php endif; ?>
    325                 </div>
    326             </div>
    327             <?php
    328         }
    329         ?>
    330330        </div>
    331331        <?php
  • elements-plus/trunk/elements/ep-tables.php

    r3051129 r3055558  
    384384                    <?php
    385385                    foreach ( $table_header as $arr_index => $data ) {
    386 
    387                         echo '<th class="elementor-repeater-item-' . esc_attr( $data['_id'] ) . '" colspan="' . intval( $data['colspan'] ) . '" rowspan="' . intval( $data['rowspan'] ) . '">' . esc_html( $data['text'] ) . '</th>';
     386                        echo wp_kses_post( sprintf( '<th class="elementor-repeater-item-%s" colspan="%d" rowspan="%d">%s</th>',
     387                            esc_attr( $data['_id'] ),
     388                            (int) $data['colspan'],
     389                            (int) $data['rowspan'],
     390                            $data['text']
     391                        ) );
    388392                    }
    389393                    ?>
     
    398402                        }
    399403
    400                         echo '<td colspan="' . intval( $data['colspan'] ) . '" rowspan="' . intval( $data['rowspan'] ) . '">' . wp_kses_post( $data['text'] ) . '</td>';
     404                        echo wp_kses_post( sprintf( '<td colspan="%d" rowspan="%d">%s</td>',
     405                            (int) $data['colspan'],
     406                            (int) $data['rowspan'],
     407                            $data['text']
     408                        ) );
    401409                    }
    402410                    ?>
  • elements-plus/trunk/elements/ep-video-slider.php

    r3051129 r3055558  
    217217            $slides = 'below' === $position ? '5' : '4';
    218218            ?>
    219             <div id="ep-vs-<?php echo esc_attr( $this->get_id() ); ?>" class="ep-slider-container" data-position="<?php echo ( 'below' === $position ) ? 'false' : 'true'; ?>" data-slides="<?php echo esc_attr( $slides ); ?>">
     219            <div id="ep-vs-<?php echo esc_attr( $this->get_id() ); ?>" class="ep-slider-container" data-position="<?php echo esc_attr( ( 'below' === $position ) ? 'false' : 'true' ); ?>" data-slides="<?php echo esc_attr( $slides ); ?>">
    220220                <div class="ep-slider-item ep-video-slider <?php echo esc_attr( $position ); ?>">
    221                     <?php foreach( $settings['video-list'] as $video ) {
    222                         $url = empty ( $video['video_url']['url'] ) ? '#' : esc_url( $video['video_url']['url'] );
     221                    <?php foreach ( $settings['video-list'] as $video ) {
     222                        $url = empty( $video['video_url']['url'] ) ? '#' : esc_url_raw( $video['video_url']['url'] );
    223223
    224224                        ?><div class="ep-video-slide"><?php echo wp_oembed_get( $url ); ?></div><?php
     
    226226                </div>
    227227                <div class="ep-slider-item ep-slider-nav <?php echo esc_attr( $position ); ?>">
    228                     <?php foreach( $settings['video-list'] as $video ) {
    229                         $url = empty ( $video['video_url']['url'] ) ? '#' : esc_url( $video['video_url']['url'] );
     228                    <?php foreach ( $settings['video-list'] as $video ) {
     229                        $url        = empty( $video['video_url']['url'] ) ? '#' : esc_url_raw( $video['video_url']['url'] );
    230230                        $video_info = elements_plus_get_video_url_info( $url );
    231                         $thumb = "https://img.youtube.com/vi/" . $video_info['video_id'] . "/hqdefault.jpg"
     231                        $thumb      = "https://img.youtube.com/vi/" . $video_info['video_id'] . "/hqdefault.jpg"
    232232                        ?>
    233233                        <div>
    234                             <div class="ep-nav-slide" style="background-image: url('<?php echo esc_attr( $thumb ); ?>');">
    235                                 <h2 class="ep-nav-title"><?php echo $video['text']; ?></h2>
     234                            <div class="ep-nav-slide" style="background-image: url('<?php echo esc_url( $thumb ); ?>');">
     235                                <h2 class="ep-nav-title"><?php echo esc_html( $video['text'] ); ?></h2>
    236236                            </div>
    237237                        </div>
  • elements-plus/trunk/elements/ep-wpforms.php

    r3051129 r3055558  
    748748
    749749        if ( $widget_title ) {
    750             echo '<h5 class="widget-title">' . esc_html( $widget_title ) . '</h5>';
     750            ?><h5 class="widget-title"><?php $this->print_unescaped_setting( 'widget_title' ); ?></h5><?php
    751751        }
    752752
  • elements-plus/trunk/languages/elements-plus.pot

    r3051129 r3055558  
    33msgstr ""
    44"Project-Id-Version: Elements Plus!\n"
    5 "POT-Creation-Date: 2024-03-14 16:23+0200\n"
     5"POT-Creation-Date: 2024-03-20 20:31+0200\n"
    66"PO-Revision-Date: 2016-08-29 19:22+0300\n"
    77"Last-Translator: Nik Vourvachis <[email protected]>\n"
     
    611611msgstr ""
    612612
    613 #: elements/ep-countdown.php:332
     613#: elements/ep-countdown.php:330
    614614msgid "Days"
    615615msgstr ""
    616616
    617 #: elements/ep-countdown.php:340
     617#: elements/ep-countdown.php:338
    618618msgid "Hours"
    619619msgstr ""
    620620
    621 #: elements/ep-countdown.php:348 elements/ep-flipclock.php:71
     621#: elements/ep-countdown.php:346 elements/ep-flipclock.php:71
    622622msgid "Minutes"
    623623msgstr ""
    624624
    625 #: elements/ep-countdown.php:356
     625#: elements/ep-countdown.php:354
    626626msgid "Seconds"
    627627msgstr ""
  • elements-plus/trunk/readme.txt

    r3051129 r3055558  
    55Tested up to: 6.4.3
    66Requires PHP: 5.4
    7 Stable tag: 2.16.3
     7Stable tag: 2.16.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    104104
    105105== Changelog ==
     106
     107= 2.16.4 =
     108* Properly escape all output. Fixes Cross Site Scripting (XSS) issues (props Abu Hurayra).
    106109
    107110= 2.16.3 =
Note: See TracChangeset for help on using the changeset viewer.