| @@ -165,8 +165,9 @@ | ||
| 165 | 165 | $this->add_group_control( |
| 166 | 166 | Group_Control_Image_Size::get_type(), |
| 167 | 167 | [ |
| 168 | 168 | 'name' => 'primary_thumbnail', |
| 169 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 169 | 170 | 'exclude' => ['custom'], |
| 170 | 171 | 'default' => 'full', |
| 171 | 172 | ] |
| 172 | 173 | ); |
| @@ -303,10 +304,13 @@ | ||
| 303 | 304 | |
| 304 | 305 | $this->add_control( |
| 305 | 306 | 'pauseonhover', |
| 306 | 307 | [ |
| 307 | - 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'), | |
| 308 | - 'type' => Controls_Manager::SWITCHER, | |
| 308 | + 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'), | |
| 309 | + 'type' => Controls_Manager::SWITCHER, | |
| 310 | + 'condition' => [ | |
| 311 | + 'autoplay' => 'yes', | |
| 312 | + ], | |
| 309 | 313 | ] |
| 310 | 314 | ); |
| 311 | 315 | |
| 312 | 316 | $this->add_control( |
| @@ -385,8 +389,9 @@ | ||
| 385 | 389 | [ |
| 386 | 390 | 'name' => 'overlay_color', |
| 387 | 391 | 'label' => esc_html__('Background', 'ultimate-post-kit'), |
| 388 | 392 | 'types' => ['classic', 'gradient'], |
| 393 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 389 | 394 | 'exclude' => ['image'], |
| 390 | 395 | 'selector' => '{{WRAPPER}} .upk-camux-slider .upk-img-wrap::before', |
| 391 | 396 | 'fields_options' => [ |
| 392 | 397 | 'background' => [ |
| @@ -1468,12 +1473,12 @@ | ||
| 1468 | 1473 | </div> |
| 1469 | 1474 | <?php if ($settings['show_navigation']) : ?> |
| 1470 | 1475 | <div class="upk-navigation-wrap"> |
| 1471 | 1476 | <div class="upk-navigation-prev"> |
| 1472 | - <i class="upk-icon-arrow-left-<?php echo esc_html($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i> | |
| 1477 | + <i class="upk-icon-arrow-left-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i> | |
| 1473 | 1478 | </div> |
| 1474 | 1479 | <div class="upk-navigation-next"> |
| 1475 | - <i class="upk-icon-arrow-right-<?php echo esc_html($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i> | |
| 1480 | + <i class="upk-icon-arrow-right-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i> | |
| 1476 | 1481 | </div> |
| 1477 | 1482 | </div> |
| 1478 | 1483 | <?php endif; ?> |
| 1479 | 1484 | </div> |
| @@ -1518,15 +1523,15 @@ | ||
| 1518 | 1523 | <?php if ($settings['show_author']) : ?> |
| 1519 | 1524 | <?php $this->render_author(); ?> |
| 1520 | 1525 | <?php endif; ?> |
| 1521 | 1526 | <?php if ($settings['show_date']) : ?> |
| 1522 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1527 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1523 | 1528 | <?php $this->render_date(); ?> |
| 1524 | 1529 | </div> |
| 1525 | 1530 | <?php endif; ?> |
| 1526 | 1531 | <?php if (_is_upk_pro_activated()) : |
| 1527 | 1532 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1528 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1533 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1529 | 1534 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1530 | 1535 | </div> |
| 1531 | 1536 | <?php endif; ?> |
| 1532 | 1537 | <?php endif; ?> |