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/noxe-slider/widgets/noxe-slider.php +18 -12 4.0.9 → 4.5.6 View file →
@@ -109,8 +109,9 @@
109 109 $this->add_group_control(
110 110 Group_Control_Image_Size::get_type(),
111 111 [
112 112 'name' => 'primary_thumbnail',
113 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
113 114 'exclude' => ['custom'],
114 115 'default' => 'full',
115 116 ]
116 117 );
@@ -200,8 +201,11 @@
200 201 ],
201 202 'default' => [
202 203 'size' => 3,
203 204 ],
205 + 'condition' => [
206 + 'posts_source!' => 'current_query',
207 + ]
204 208 ]
205 209 );
206 210
207 211 $this->register_query_builder_controls();
@@ -239,10 +243,13 @@
239 243
240 244 $this->add_control(
241 245 'pauseonhover',
242 246 [
243 - 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'),
244 - 'type' => Controls_Manager::SWITCHER,
247 + 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'),
248 + 'type' => Controls_Manager::SWITCHER,
249 + 'condition' => [
250 + 'autoplay' => 'yes',
251 + ],
245 252 ]
246 253 );
247 254
248 255 $this->add_control(
@@ -395,9 +402,9 @@
395 402 $this->add_group_control(
396 403 Group_Control_Text_Stroke::get_type(),
397 404 [
398 405 'name' => 'title_text_stroke',
399 - 'label' => __('Text Stroke', 'ultimate-post-kit') . BDTUPK_NC,
406 + 'label' => __('Text Stroke', 'ultimate-post-kit'),
400 407 'selector' => '{{WRAPPER}} .upk-noxe-slider .upk-title',
401 408 ]
402 409 );
403 410
@@ -822,11 +829,11 @@
822 829 */
823 830 public function query_posts($posts_per_page) {
824 831
825 832 $default = $this->getGroupControlQueryArgs();
833 + $args = [];
826 834 if ($posts_per_page) {
827 835 $args['posts_per_page'] = $posts_per_page;
828 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
829 836 }
830 837 $args = array_merge($default, $args);
831 838 $this->_query = new WP_Query($args);
832 839 }
@@ -855,9 +862,9 @@
855 862 return;
856 863 }
857 864 ?>
858 865 <div class="upk-noxe-category" data-swiper-parallax-opacity="0.5">
859 - <?php echo upk_get_category($this->get_settings('posts_source')); ?>
866 + <?php echo wp_kses_post( upk_get_category($this->get_settings('posts_source')) ); ?>
860 867 </div>
861 868 <?php
862 869 }
863 870
@@ -880,13 +887,12 @@
880 887
881 888 if (!$this->get_settings('show_comments')) {
882 889 return;
883 890 }
884 - ?>
891 + ?>
885 892
886 893 <div class="upk-noxe-comments">
887 - <?php echo get_comments_number($id) ?>
888 - <?php echo esc_html__('Comments', 'ultimate-post-kit') ?>
894 + <?php echo esc_html( $this->upk_get_formatted_comments_count( $id ) ); ?>
889 895 </div>
890 896
891 897 <?php
892 898 }
@@ -935,9 +941,9 @@
935 941
936 942 ?>
937 943 <div <?php $this->print_render_attribute_string('noxe-slider'); ?>>
938 944 <div class="upk-noxe-slider-wrapper">
939 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
945 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
940 946 <div class="swiper-wrapper">
941 947 <?php
942 948 }
943 949
@@ -1012,9 +1018,9 @@
1012 1018 <div class="upk-noxe-meta" data-swiper-parallax-y="-80">
1013 1019 <?php $this->render_author(); ?>
1014 1020
1015 1021 <?php if ($settings['show_comments'] == 'yes') : ?>
1016 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1022 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1017 1023 <?php $this->render_comments($post_id); ?>
1018 1024 </div>
1019 1025 <?php endif; ?>
1020 1026
@@ -1019,10 +1025,10 @@
1019 1025 <?php endif; ?>
1020 1026
1021 1027 <?php if (_is_upk_pro_activated()) :
1022 1028 if ('yes' === $settings['show_reading_time']) : ?>
1023 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1024 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
1029 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1030 + <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
1025 1031 </div>
1026 1032 <?php endif; ?>
1027 1033 <?php endif; ?>
1028 1034 </div>