| @@ -290,11 +290,14 @@ | ||
| 290 | 290 | |
| 291 | 291 | $this->add_control( |
| 292 | 292 | 'pause_on_hover', |
| 293 | 293 | [ |
| 294 | - 'label' => esc_html__( 'Pause on Hover', 'ultimate-post-kit' ), | |
| 295 | - 'type' => Controls_Manager::SWITCHER, | |
| 296 | - 'default' => 'yes', | |
| 294 | + 'label' => esc_html__( 'Pause on Hover', 'ultimate-post-kit' ), | |
| 295 | + 'type' => Controls_Manager::SWITCHER, | |
| 296 | + 'default' => 'yes', | |
| 297 | + 'condition' => [ | |
| 298 | + 'autoplay' => 'yes', | |
| 299 | + ], | |
| 297 | 300 | ] |
| 298 | 301 | ); |
| 299 | 302 | |
| 300 | 303 | $this->add_control( |
| @@ -615,9 +618,9 @@ | ||
| 615 | 618 | $news_day = get_the_date('d'); |
| 616 | 619 | |
| 617 | 620 | ?> |
| 618 | 621 | |
| 619 | - <span class="upk-news-ticker-date bdt-margin-small-right" title="<?php esc_html_e( 'Published on:', 'ultimate-post-kit' ); ?> <?php echo get_the_date(); ?>"> | |
| 622 | + <span class="upk-news-ticker-date bdt-margin-small-right" title="<?php esc_attr_e( 'Published on:', 'ultimate-post-kit' ); ?> <?php echo esc_attr( get_the_date() ); ?>"> | |
| 620 | 623 | <?php if ('yes' == $settings['date_reverse']) : ?> |
| 621 | 624 | <span class="upk-news-ticker-date-day"><?php echo wp_kses_post( $news_day ); ?></span> |
| 622 | 625 | <span class="upk-news-ticker-date-sep">/</span> |
| 623 | 626 | <span class="upk-news-ticker-date-month"><?php echo wp_kses_post( $news_month ); ?></span> |
| @@ -641,9 +644,9 @@ | ||
| 641 | 644 | $news_hour = get_the_time(); |
| 642 | 645 | |
| 643 | 646 | ?> |
| 644 | 647 | |
| 645 | - <span class="upk-news-ticker-time bdt-margin-small-right" title="<?php esc_html_e( 'Published on:', 'ultimate-post-kit' ); ?> <?php echo get_the_date(); ?> <?php echo esc_attr( get_the_time() ); ?>"> | |
| 648 | + <span class="upk-news-ticker-time bdt-margin-small-right" title="<?php esc_attr_e( 'Published on:', 'ultimate-post-kit' ); ?> <?php echo esc_attr( get_the_date() ); ?> <?php echo esc_attr( get_the_time() ); ?>"> | |
| 646 | 649 | <span class="bdt-text-uppercase"><?php echo wp_kses_post( $news_hour ); ?></span> |
| 647 | 650 | <span>:</span> |
| 648 | 651 | </span> |
| 649 | 652 | |