Changeset 3055558
- Timestamp:
- 03/20/2024 06:38:41 PM (22 months ago)
- Location:
- elements-plus
- Files:
-
- 48 edited
- 1 copied
-
tags/2.16.4 (copied) (copied from elements-plus/trunk)
-
tags/2.16.4/elements-plus.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-audioigniter.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-button-plus.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-caldera-forms.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-cf7.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-content-toggle.php (modified) (5 diffs)
-
tags/2.16.4/elements/ep-countdown.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-cta.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-dual-button.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-heading.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-hotspots.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-icon-plus.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-image-accordion.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-image-comparison.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-image-hover-effects.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-inline-svg.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-justified-gallery.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-label.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-pricing-list.php (modified) (1 diff)
-
tags/2.16.4/elements/ep-tables.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-video-slider.php (modified) (2 diffs)
-
tags/2.16.4/elements/ep-wpforms.php (modified) (1 diff)
-
tags/2.16.4/languages/elements-plus.pot (modified) (2 diffs)
-
tags/2.16.4/readme.txt (modified) (2 diffs)
-
trunk/elements-plus.php (modified) (2 diffs)
-
trunk/elements/ep-audioigniter.php (modified) (2 diffs)
-
trunk/elements/ep-button-plus.php (modified) (1 diff)
-
trunk/elements/ep-caldera-forms.php (modified) (2 diffs)
-
trunk/elements/ep-cf7.php (modified) (1 diff)
-
trunk/elements/ep-content-toggle.php (modified) (5 diffs)
-
trunk/elements/ep-countdown.php (modified) (2 diffs)
-
trunk/elements/ep-cta.php (modified) (1 diff)
-
trunk/elements/ep-dual-button.php (modified) (2 diffs)
-
trunk/elements/ep-heading.php (modified) (1 diff)
-
trunk/elements/ep-hotspots.php (modified) (1 diff)
-
trunk/elements/ep-icon-plus.php (modified) (1 diff)
-
trunk/elements/ep-image-accordion.php (modified) (2 diffs)
-
trunk/elements/ep-image-comparison.php (modified) (1 diff)
-
trunk/elements/ep-image-hover-effects.php (modified) (1 diff)
-
trunk/elements/ep-inline-svg.php (modified) (1 diff)
-
trunk/elements/ep-justified-gallery.php (modified) (2 diffs)
-
trunk/elements/ep-label.php (modified) (2 diffs)
-
trunk/elements/ep-pricing-list.php (modified) (1 diff)
-
trunk/elements/ep-tables.php (modified) (2 diffs)
-
trunk/elements/ep-video-slider.php (modified) (2 diffs)
-
trunk/elements/ep-wpforms.php (modified) (1 diff)
-
trunk/languages/elements-plus.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elements-plus/tags/2.16.4/elements-plus.php
r3051129 r3055558 5 5 * Plugin URI: https://cssigniter.com/plugins/elements-plus/ 6 6 * Author: The CSSIgniter Team 7 * Version: 2.16. 37 * Version: 2.16.4 8 8 * Author URI: https://cssigniter.com/ 9 9 * Text Domain: elements-plus … … 31 31 function elements_plus_init() { 32 32 33 define( 'ELEMENTS_PLUS_VERSION', '2.16. 3' );33 define( 'ELEMENTS_PLUS_VERSION', '2.16.4' ); 34 34 define( 'ELEMENTS_PLUS_URL', plugins_url( '/', __FILE__ ) ); 35 35 define( 'ELEMENTS_PLUS_PATH', plugin_dir_path( __FILE__ ) ); -
elements-plus/tags/2.16.4/elements/ep-audioigniter.php
r2853677 r3055558 159 159 protected function render() { 160 160 $settings = $this->get_settings(); 161 $id = $settings['playlist'];161 $id = (int) $settings['playlist']; 162 162 163 163 if ( ! $id ) { 164 164 return; 165 165 } 166 167 $shortcode = do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) );168 166 ?> 169 167 <div … … 171 169 class="ep-audioigniter" 172 170 > 173 <?php echo $shortcode; ?>171 <?php echo do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) ); ?> 174 172 </div> 175 173 -
elements-plus/tags/2.16.4/elements/ep-button-plus.php
r3051129 r3055558 453 453 $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' ); 454 454 ?> 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> 460 460 </span> 461 461 </a> -
elements-plus/tags/2.16.4/elements/ep-caldera-forms.php
r3051129 r3055558 498 498 $settings = $this->get_settings(); 499 499 $widget_title = $settings['widget_title']; 500 $form_id = $settings['select_form'];500 $form_id = (int) $settings['select_form']; 501 501 502 502 if ( empty( $form_id ) ) { … … 505 505 506 506 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 508 508 } 509 509 -
elements-plus/tags/2.16.4/elements/ep-cf7.php
r3051129 r3055558 539 539 protected function render() { 540 540 $settings = $this->get_settings(); 541 $form_id = $settings['select_form'];541 $form_id = (int) $settings['select_form']; 542 542 543 543 if ( empty( $form_id ) ) { -
elements-plus/tags/2.16.4/elements/ep-content-toggle.php
r3051129 r3055558 271 271 } elseif ( 'template' === $settings['content_type_primary'] ) { 272 272 $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 ); 274 274 } 275 275 … … 278 278 } elseif ( 'template' === $settings['content_type_secondary'] ) { 279 279 $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 ); 281 281 } 282 283 282 ?> 284 285 283 <div class="ep-ct-outer-wrapper"> 286 284 <div class="ep-ct-switch-wrapper"> 287 285 <?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> 289 287 <?php endif; ?> 290 288 <label class="ep-ct-switch"> … … 293 291 </label> 294 292 <?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> 296 294 <?php endif; ?> 297 295 </div> … … 300 298 <?php 301 299 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 303 302 } 304 303 ?> … … 307 306 <?php 308 307 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 310 310 } 311 311 ?> -
elements-plus/tags/2.16.4/elements/ep-countdown.php
r3051129 r3055558 314 314 } 315 315 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; 324 322 ?> 325 323 <div class="elements-plus-countdown" data-date="<?php echo esc_attr( $time_out ); ?>"> … … 359 357 <?php endif; ?> 360 358 <?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> 362 360 <?php } ?> 363 361 </div> -
elements-plus/tags/2.16.4/elements/ep-cta.php
r3051129 r3055558 491 491 $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' ); 492 492 ?> 493 <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>493 <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>> 494 494 <?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' ); ?>> 496 496 <?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> 499 499 <?php if ( empty( $settings['button_text'] ) && $settings['link'] ) : ?> 500 500 </a> 501 501 <?php endif; ?> 502 502 <?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> 506 506 </span> 507 507 </a> -
elements-plus/tags/2.16.4/elements/ep-dual-button.php
r3051129 r3055558 789 789 790 790 ?> 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' ); ?>> 794 794 <?php $this->render_text( 'button_1' ); ?> 795 795 </a> 796 796 </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' ); ?>> 799 799 <?php $this->render_text( 'button_2' ); ?> 800 800 </a> … … 834 834 $this->add_inline_editing_attributes( $button . '_text', 'none' ); 835 835 ?> 836 <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>836 <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>> 837 837 <?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 } 843 845 ?> 844 <i class="<?php echo $settings[ $button . '_icon' ]; ?>" aria-hidden="true"></i>845 <?php846 }847 ?>846 </span> 847 <?php endif; ?> 848 <span <?php $this->print_render_attribute_string( $button . '_text' ); ?>> 849 <?php $this->print_unescaped_setting( $button . '_text' ); ?> 848 850 </span> 849 <?php endif; ?>850 <span <?php echo $this->get_render_attribute_string( $button . '_text' ); ?>><?php echo $settings[$button . '_text']; ?></span>851 851 </span> 852 852 <?php -
elements-plus/tags/2.16.4/elements/ep-heading.php
r3051129 r3055558 360 360 $title_html = sprintf( '<%1$s %2$s>%3$s</%1$s>', $settings['header_size'], $this->get_render_attribute_string( 'title' ), $title ); 361 361 362 echo $title_html;362 echo wp_kses_post( $title_html ); 363 363 } 364 364 } -
elements-plus/tags/2.16.4/elements/ep-hotspots.php
r3051129 r3055558 337 337 ?> 338 338 <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 } 344 381 ?> 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 ); ?>" /> 380 384 </div> 381 385 <?php -
elements-plus/tags/2.16.4/elements/ep-icon-plus.php
r3051129 r3055558 361 361 362 362 ?> 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 ); ?>> 367 367 </div> 368 368 <?php -
elements-plus/tags/2.16.4/elements/ep-image-accordion.php
r3051129 r3055558 293 293 $this->add_link_attributes( "accordion_item_$i", $url, true ); 294 294 ?> 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 ); ?>');"> 296 296 <div> 297 297 <span> … … 299 299 <div class="ep-accordion-content"> 300 300 <?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" ); ?>> 302 302 <?php endif; ?> 303 303 <?php if ( $title ) : ?> -
elements-plus/tags/2.16.4/elements/ep-image-comparison.php
r2853677 r3055558 166 166 } 167 167 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' );170 168 ?> 171 169 <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' ); ?> 174 172 </div> 175 173 <script> -
elements-plus/tags/2.16.4/elements/ep-image-hover-effects.php
r3051129 r3055558 106 106 <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%);"> 107 107 <?php if ( $settings['link'] ) : ?> 108 <a <?php echo $this->get_render_attribute_string( 'image' ); ?>>108 <a <?php $this->print_render_attribute_string( 'image' ); ?>> 109 109 <?php endif; ?> 110 110 <div class="img-container"></div> -
elements-plus/tags/2.16.4/elements/ep-inline-svg.php
r3051129 r3055558 202 202 <?php if ( ! empty( $settings['svg']['url'] ) ) { ?> 203 203 <<?php echo esc_html( $tag ); ?> 204 <?php echo $this->get_render_attribute_string( 'svg' ); ?>>204 <?php $this->print_render_attribute_string( 'svg' ); ?>> 205 205 </<?php echo esc_html( $tag ); ?>> 206 206 <?php } ?> -
elements-plus/tags/2.16.4/elements/ep-justified-gallery.php
r3051129 r3055558 279 279 <?php foreach ( $ids as $id ) : ?> 280 280 <?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' ); 283 283 $att_link = get_attachment_link( $id ); 284 284 $link = $settings['gallery_link']; … … 292 292 <?php endif; ?> 293 293 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 ) ); ?>"> 295 295 296 296 <?php if ( $link !== 'none' ) : ?> -
elements-plus/tags/2.16.4/elements/ep-label.php
r3051129 r3055558 239 239 240 240 ?> 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' ); ?>> 244 244 <?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' ); ?>> 246 246 <?php 247 247 if ( $is_new || $migrated ) { … … 255 255 </span> 256 256 <?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> 258 258 </span> 259 259 </div> -
elements-plus/tags/2.16.4/elements/ep-pricing-list.php
r3051129 r3055558 300 300 ?> 301 301 <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 } 304 329 ?> 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 <?php328 }329 ?>330 330 </div> 331 331 <?php -
elements-plus/tags/2.16.4/elements/ep-tables.php
r3051129 r3055558 384 384 <?php 385 385 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 ) ); 388 392 } 389 393 ?> … … 398 402 } 399 403 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 ) ); 401 409 } 402 410 ?> -
elements-plus/tags/2.16.4/elements/ep-video-slider.php
r3051129 r3055558 217 217 $slides = 'below' === $position ? '5' : '4'; 218 218 ?> 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 ); ?>"> 220 220 <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'] ); 223 223 224 224 ?><div class="ep-video-slide"><?php echo wp_oembed_get( $url ); ?></div><?php … … 226 226 </div> 227 227 <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'] ); 230 230 $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" 232 232 ?> 233 233 <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> 236 236 </div> 237 237 </div> -
elements-plus/tags/2.16.4/elements/ep-wpforms.php
r3051129 r3055558 748 748 749 749 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 751 751 } 752 752 -
elements-plus/tags/2.16.4/languages/elements-plus.pot
r3051129 r3055558 3 3 msgstr "" 4 4 "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" 6 6 "PO-Revision-Date: 2016-08-29 19:22+0300\n" 7 7 "Last-Translator: Nik Vourvachis <[email protected]>\n" … … 611 611 msgstr "" 612 612 613 #: elements/ep-countdown.php:33 2613 #: elements/ep-countdown.php:330 614 614 msgid "Days" 615 615 msgstr "" 616 616 617 #: elements/ep-countdown.php:3 40617 #: elements/ep-countdown.php:338 618 618 msgid "Hours" 619 619 msgstr "" 620 620 621 #: elements/ep-countdown.php:34 8elements/ep-flipclock.php:71621 #: elements/ep-countdown.php:346 elements/ep-flipclock.php:71 622 622 msgid "Minutes" 623 623 msgstr "" 624 624 625 #: elements/ep-countdown.php:35 6625 #: elements/ep-countdown.php:354 626 626 msgid "Seconds" 627 627 msgstr "" -
elements-plus/tags/2.16.4/readme.txt
r3051129 r3055558 5 5 Tested up to: 6.4.3 6 6 Requires PHP: 5.4 7 Stable tag: 2.16. 37 Stable tag: 2.16.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 104 104 105 105 == Changelog == 106 107 = 2.16.4 = 108 * Properly escape all output. Fixes Cross Site Scripting (XSS) issues (props Abu Hurayra). 106 109 107 110 = 2.16.3 = -
elements-plus/trunk/elements-plus.php
r3051129 r3055558 5 5 * Plugin URI: https://cssigniter.com/plugins/elements-plus/ 6 6 * Author: The CSSIgniter Team 7 * Version: 2.16. 37 * Version: 2.16.4 8 8 * Author URI: https://cssigniter.com/ 9 9 * Text Domain: elements-plus … … 31 31 function elements_plus_init() { 32 32 33 define( 'ELEMENTS_PLUS_VERSION', '2.16. 3' );33 define( 'ELEMENTS_PLUS_VERSION', '2.16.4' ); 34 34 define( 'ELEMENTS_PLUS_URL', plugins_url( '/', __FILE__ ) ); 35 35 define( 'ELEMENTS_PLUS_PATH', plugin_dir_path( __FILE__ ) ); -
elements-plus/trunk/elements/ep-audioigniter.php
r2853677 r3055558 159 159 protected function render() { 160 160 $settings = $this->get_settings(); 161 $id = $settings['playlist'];161 $id = (int) $settings['playlist']; 162 162 163 163 if ( ! $id ) { 164 164 return; 165 165 } 166 167 $shortcode = do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) );168 166 ?> 169 167 <div … … 171 169 class="ep-audioigniter" 172 170 > 173 <?php echo $shortcode; ?>171 <?php echo do_shortcode( shortcode_unautop( '[ai_playlist id="' . $id . '"]' ) ); ?> 174 172 </div> 175 173 -
elements-plus/trunk/elements/ep-button-plus.php
r3051129 r3055558 453 453 $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' ); 454 454 ?> 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> 460 460 </span> 461 461 </a> -
elements-plus/trunk/elements/ep-caldera-forms.php
r3051129 r3055558 498 498 $settings = $this->get_settings(); 499 499 $widget_title = $settings['widget_title']; 500 $form_id = $settings['select_form'];500 $form_id = (int) $settings['select_form']; 501 501 502 502 if ( empty( $form_id ) ) { … … 505 505 506 506 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 508 508 } 509 509 -
elements-plus/trunk/elements/ep-cf7.php
r3051129 r3055558 539 539 protected function render() { 540 540 $settings = $this->get_settings(); 541 $form_id = $settings['select_form'];541 $form_id = (int) $settings['select_form']; 542 542 543 543 if ( empty( $form_id ) ) { -
elements-plus/trunk/elements/ep-content-toggle.php
r3051129 r3055558 271 271 } elseif ( 'template' === $settings['content_type_primary'] ) { 272 272 $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 ); 274 274 } 275 275 … … 278 278 } elseif ( 'template' === $settings['content_type_secondary'] ) { 279 279 $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 ); 281 281 } 282 283 282 ?> 284 285 283 <div class="ep-ct-outer-wrapper"> 286 284 <div class="ep-ct-switch-wrapper"> 287 285 <?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> 289 287 <?php endif; ?> 290 288 <label class="ep-ct-switch"> … … 293 291 </label> 294 292 <?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> 296 294 <?php endif; ?> 297 295 </div> … … 300 298 <?php 301 299 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 303 302 } 304 303 ?> … … 307 306 <?php 308 307 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 310 310 } 311 311 ?> -
elements-plus/trunk/elements/ep-countdown.php
r3051129 r3055558 314 314 } 315 315 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; 324 322 ?> 325 323 <div class="elements-plus-countdown" data-date="<?php echo esc_attr( $time_out ); ?>"> … … 359 357 <?php endif; ?> 360 358 <?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> 362 360 <?php } ?> 363 361 </div> -
elements-plus/trunk/elements/ep-cta.php
r3051129 r3055558 491 491 $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' ); 492 492 ?> 493 <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>493 <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>> 494 494 <?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' ); ?>> 496 496 <?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> 499 499 <?php if ( empty( $settings['button_text'] ) && $settings['link'] ) : ?> 500 500 </a> 501 501 <?php endif; ?> 502 502 <?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> 506 506 </span> 507 507 </a> -
elements-plus/trunk/elements/ep-dual-button.php
r3051129 r3055558 789 789 790 790 ?> 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' ); ?>> 794 794 <?php $this->render_text( 'button_1' ); ?> 795 795 </a> 796 796 </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' ); ?>> 799 799 <?php $this->render_text( 'button_2' ); ?> 800 800 </a> … … 834 834 $this->add_inline_editing_attributes( $button . '_text', 'none' ); 835 835 ?> 836 <span <?php echo $this->get_render_attribute_string( 'content-wrapper' ); ?>>836 <span <?php $this->print_render_attribute_string( 'content-wrapper' ); ?>> 837 837 <?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 } 843 845 ?> 844 <i class="<?php echo $settings[ $button . '_icon' ]; ?>" aria-hidden="true"></i>845 <?php846 }847 ?>846 </span> 847 <?php endif; ?> 848 <span <?php $this->print_render_attribute_string( $button . '_text' ); ?>> 849 <?php $this->print_unescaped_setting( $button . '_text' ); ?> 848 850 </span> 849 <?php endif; ?>850 <span <?php echo $this->get_render_attribute_string( $button . '_text' ); ?>><?php echo $settings[$button . '_text']; ?></span>851 851 </span> 852 852 <?php -
elements-plus/trunk/elements/ep-heading.php
r3051129 r3055558 360 360 $title_html = sprintf( '<%1$s %2$s>%3$s</%1$s>', $settings['header_size'], $this->get_render_attribute_string( 'title' ), $title ); 361 361 362 echo $title_html;362 echo wp_kses_post( $title_html ); 363 363 } 364 364 } -
elements-plus/trunk/elements/ep-hotspots.php
r3051129 r3055558 337 337 ?> 338 338 <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 } 344 381 ?> 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 ); ?>" /> 380 384 </div> 381 385 <?php -
elements-plus/trunk/elements/ep-icon-plus.php
r3051129 r3055558 361 361 362 362 ?> 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 ); ?>> 367 367 </div> 368 368 <?php -
elements-plus/trunk/elements/ep-image-accordion.php
r3051129 r3055558 293 293 $this->add_link_attributes( "accordion_item_$i", $url, true ); 294 294 ?> 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 ); ?>');"> 296 296 <div> 297 297 <span> … … 299 299 <div class="ep-accordion-content"> 300 300 <?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" ); ?>> 302 302 <?php endif; ?> 303 303 <?php if ( $title ) : ?> -
elements-plus/trunk/elements/ep-image-comparison.php
r2853677 r3055558 166 166 } 167 167 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' );170 168 ?> 171 169 <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' ); ?> 174 172 </div> 175 173 <script> -
elements-plus/trunk/elements/ep-image-hover-effects.php
r3051129 r3055558 106 106 <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%);"> 107 107 <?php if ( $settings['link'] ) : ?> 108 <a <?php echo $this->get_render_attribute_string( 'image' ); ?>>108 <a <?php $this->print_render_attribute_string( 'image' ); ?>> 109 109 <?php endif; ?> 110 110 <div class="img-container"></div> -
elements-plus/trunk/elements/ep-inline-svg.php
r3051129 r3055558 202 202 <?php if ( ! empty( $settings['svg']['url'] ) ) { ?> 203 203 <<?php echo esc_html( $tag ); ?> 204 <?php echo $this->get_render_attribute_string( 'svg' ); ?>>204 <?php $this->print_render_attribute_string( 'svg' ); ?>> 205 205 </<?php echo esc_html( $tag ); ?>> 206 206 <?php } ?> -
elements-plus/trunk/elements/ep-justified-gallery.php
r3051129 r3055558 279 279 <?php foreach ( $ids as $id ) : ?> 280 280 <?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' ); 283 283 $att_link = get_attachment_link( $id ); 284 284 $link = $settings['gallery_link']; … … 292 292 <?php endif; ?> 293 293 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 ) ); ?>"> 295 295 296 296 <?php if ( $link !== 'none' ) : ?> -
elements-plus/trunk/elements/ep-label.php
r3051129 r3055558 239 239 240 240 ?> 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' ); ?>> 244 244 <?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' ); ?>> 246 246 <?php 247 247 if ( $is_new || $migrated ) { … … 255 255 </span> 256 256 <?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> 258 258 </span> 259 259 </div> -
elements-plus/trunk/elements/ep-pricing-list.php
r3051129 r3055558 300 300 ?> 301 301 <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 } 304 329 ?> 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 <?php328 }329 ?>330 330 </div> 331 331 <?php -
elements-plus/trunk/elements/ep-tables.php
r3051129 r3055558 384 384 <?php 385 385 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 ) ); 388 392 } 389 393 ?> … … 398 402 } 399 403 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 ) ); 401 409 } 402 410 ?> -
elements-plus/trunk/elements/ep-video-slider.php
r3051129 r3055558 217 217 $slides = 'below' === $position ? '5' : '4'; 218 218 ?> 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 ); ?>"> 220 220 <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'] ); 223 223 224 224 ?><div class="ep-video-slide"><?php echo wp_oembed_get( $url ); ?></div><?php … … 226 226 </div> 227 227 <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'] ); 230 230 $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" 232 232 ?> 233 233 <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> 236 236 </div> 237 237 </div> -
elements-plus/trunk/elements/ep-wpforms.php
r3051129 r3055558 748 748 749 749 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 751 751 } 752 752 -
elements-plus/trunk/languages/elements-plus.pot
r3051129 r3055558 3 3 msgstr "" 4 4 "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" 6 6 "PO-Revision-Date: 2016-08-29 19:22+0300\n" 7 7 "Last-Translator: Nik Vourvachis <[email protected]>\n" … … 611 611 msgstr "" 612 612 613 #: elements/ep-countdown.php:33 2613 #: elements/ep-countdown.php:330 614 614 msgid "Days" 615 615 msgstr "" 616 616 617 #: elements/ep-countdown.php:3 40617 #: elements/ep-countdown.php:338 618 618 msgid "Hours" 619 619 msgstr "" 620 620 621 #: elements/ep-countdown.php:34 8elements/ep-flipclock.php:71621 #: elements/ep-countdown.php:346 elements/ep-flipclock.php:71 622 622 msgid "Minutes" 623 623 msgstr "" 624 624 625 #: elements/ep-countdown.php:35 6625 #: elements/ep-countdown.php:354 626 626 msgid "Seconds" 627 627 msgstr "" -
elements-plus/trunk/readme.txt
r3051129 r3055558 5 5 Tested up to: 6.4.3 6 6 Requires PHP: 5.4 7 Stable tag: 2.16. 37 Stable tag: 2.16.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 104 104 105 105 == Changelog == 106 107 = 2.16.4 = 108 * Properly escape all output. Fixes Cross Site Scripting (XSS) issues (props Abu Hurayra). 106 109 107 110 = 2.16.3 =
Note: See TracChangeset
for help on using the changeset viewer.