PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.6
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.6
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
← All changes | modules/hazel-carousel/widgets/hazel-carousel.php +16 -12 4.0.9 → 4.5.6 View file →
@@ -179,8 +179,9 @@
179 179 $this->add_group_control(
180 180 Group_Control_Image_Size::get_type(),
181 181 [
182 182 'name' => 'primary_thumbnail',
183 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
183 184 'exclude' => ['custom'],
184 185 'default' => 'medium',
185 186 ]
186 187 );
@@ -209,8 +210,11 @@
209 210 ],
210 211 'default' => [
211 212 'size' => 6,
212 213 ],
214 + 'condition' => [
215 + 'posts_source!' => 'current_query',
216 + ]
213 217 ]
214 218 );
215 219
216 220 $this->register_query_builder_controls();
@@ -219,9 +223,9 @@
219 223
220 224 $this->start_controls_section(
221 225 'section_content_additional',
222 226 [
223 - 'label' => esc_html__('Additional', 'ultimate-post-kit'),
227 + 'label' => esc_html__('Additional Options', 'ultimate-post-kit'),
224 228 ]
225 229 );
226 230
227 231 //Global Title Controls
@@ -312,9 +316,9 @@
312 316 [
313 317 'label' => esc_html__('Glassmorphism', 'ultimate-post-kit'),
314 318 'type' => Controls_Manager::SWITCHER,
315 319 // translators: %1s: Opening anchor tag with link to MDN backdrop-filter documentation, %2s: Closing anchor tag
316 - 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1s look here %2s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'),
320 + 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1$s look here %2$s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'),
317 321 'default' => 'yes',
318 322 'condition' => [
319 323 'content_style' => '2',
320 324 ]
@@ -705,9 +709,9 @@
705 709 Group_Control_Typography::get_type(),
706 710 [
707 711 'name' => 'author_typography',
708 712 'label' => esc_html__('Typography', 'ultimate-post-kit'),
709 - 'selector' => '{{WRAPPER}} .upk-hazel-carousel .upk-meta',
713 + 'selector' => '{{WRAPPER}} .upk-hazel-carousel .upk-meta, {{WRAPPER}} .upk-hazel-carousel .upk-meta *',
710 714 ]
711 715 );
712 716
713 717 $this->end_controls_section();
@@ -877,11 +881,11 @@
877 881 */
878 882 public function query_posts($posts_per_page) {
879 883
880 884 $default = $this->getGroupControlQueryArgs();
885 + $args = [];
881 886 if ($posts_per_page) {
882 887 $args['posts_per_page'] = $posts_per_page;
883 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
884 888 }
885 889 $args = array_merge($default, $args);
886 890 $this->_query = new WP_Query($args);
887 891 }
@@ -897,9 +901,9 @@
897 901 $image_src = $image_src[0];
898 902 }
899 903
900 904 ?>
901 - <img class="upk-blog-image" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_html(get_the_title()); ?>">
905 + <img class="upk-blog-image" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
902 906 <?php
903 907 }
904 908
905 909 public function render_author() {
@@ -909,9 +913,9 @@
909 913 }
910 914
911 915 ?>
912 916 <div class="upk-blog-author">
913 - <span class="by"><?php echo esc_html__('by', 'ultimate-post-kit') ?></span>
917 + <span class="by"><?php echo esc_html__('By', 'ultimate-post-kit') ?></span>
914 918 <span class="upk-author">
915 919 <a href="<?php echo esc_url( get_author_posts_url(get_the_author_meta('ID')) ); ?>">
916 920 <?php echo esc_html( get_the_author() ) ?>
917 921 </a>
@@ -942,9 +946,9 @@
942 946
943 947 ?>
944 948 <div class="upk-blog-badge">
945 949 <span>
946 - <?php echo upk_get_category($this->get_settings('posts_source')); ?>
950 + <?php echo wp_kses_post( upk_get_category($this->get_settings('posts_source')) ); ?>
947 951 </span>
948 952 </div>
949 953 <?php
950 954 }
@@ -956,10 +960,10 @@
956 960 $this->render_header_attribute('hazel');
957 961
958 962 ?>
959 963 <div <?php $this->print_render_attribute_string('carousel'); ?>>
960 - <div class="upk-post-grid upk-pg-text-position-<?php echo esc_html($settings['content_position']) ?> upk-content-style-<?php echo esc_html($settings['content_style']) ?>">
961 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
964 + <div class="upk-post-grid upk-pg-text-position-<?php echo esc_attr($settings['content_position']) ?> upk-content-style-<?php echo esc_attr($settings['content_style']) ?>">
965 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
962 966 <div class="swiper-wrapper">
963 967 <?php
964 968 }
965 969
@@ -991,9 +995,9 @@
991 995 <div class="upk-meta">
992 996 <?php $this->render_author(); ?>
993 997
994 998 <?php if ($settings['show_date']) : ?>
995 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
999 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
996 1000 <div class="upk-date">
997 1001 <i class="upk-icon-calendar" aria-hidden="true"></i><?php $this->render_date(); ?>
998 1002 </div>
999 1003
@@ -1007,10 +1011,10 @@
1007 1011 <?php endif; ?>
1008 1012
1009 1013 <?php if (_is_upk_pro_activated()) :
1010 1014 if ('yes' === $settings['show_reading_time']) : ?>
1011 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1012 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
1015 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1016 + <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
1013 1017 </div>
1014 1018 <?php endif; ?>
1015 1019 <?php endif; ?>
1016 1020 </div>