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/category-carousel/widgets/category-carousel.php +7 -21 4.0.9 → 4.5.6 View file →
@@ -184,8 +184,9 @@
184 184 $this->add_group_control(
185 185 Group_Control_Image_Size::get_type(),
186 186 [
187 187 'name' => 'primary_thumbnail',
188 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
188 189 'exclude' => ['custom'],
189 190 'default' => 'medium',
190 191 ]
191 192 );
@@ -197,25 +198,8 @@
197 198 'label' => esc_html__('Query', 'ultimate-post-kit'),
198 199 ]
199 200 );
200 201
201 - // $this->add_control(
202 - // 'item_limit',
203 - // [
204 - // 'label' => esc_html__('Item Limit', 'ultimate-post-kit'),
205 - // 'type' => Controls_Manager::SLIDER,
206 - // 'range' => [
207 - // 'px' => [
208 - // 'min' => 1,
209 - // 'max' => 50,
210 - // ],
211 - // ],
212 - // 'default' => [
213 - // 'size' => 6,
214 - // ],
215 - // ]
216 - // );
217 -
218 202 $this->add_control(
219 203 'taxonomy',
220 204 [
221 205 'label' => esc_html__('Taxonomy', 'ultimate-post-kit'),
@@ -289,9 +273,9 @@
289 273 $this->end_controls_section();
290 274 $this->start_controls_section(
291 275 'section_content_additional',
292 276 [
293 - 'label' => esc_html__('Additional', 'ultimate-post-kit'),
277 + 'label' => esc_html__('Additional Options', 'ultimate-post-kit'),
294 278 ]
295 279 );
296 280
297 281 $this->add_control(
@@ -391,9 +375,9 @@
391 375 [
392 376 'label' => esc_html__('Glassmorphism', 'ultimate-post-kit'),
393 377 'type' => Controls_Manager::SWITCHER,
394 378 // translators: %1s: Opening anchor tag with link to MDN backdrop-filter documentation, %2s: Closing anchor tag
395 - '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>'),
379 + '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>'),
396 380 'default' => 'yes',
397 381 'condition' => [
398 382 'skin_layout' => [
399 383 'style-5',
@@ -742,8 +726,9 @@
742 726 Group_Control_Typography::get_type(),
743 727 [
744 728 'name' => 'category_typography',
745 729 'label' => esc_html__('Typography', 'ultimate-post-kit'),
730 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
746 731 'exclude' => ['line_height'],
747 732 'selector' => '{{WRAPPER}} .upk-category-carousel .upk-item .upk-content .title',
748 733 ]
749 734 );
@@ -912,9 +897,9 @@
912 897 $image_src = $image_src[0];
913 898 }
914 899
915 900 ?>
916 - <img class="upk-category-carousel-img" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_html(get_the_title()); ?>">
901 + <img class="upk-category-carousel-img" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
917 902 <?php
918 903 }
919 904
920 905 public function render_header() {
@@ -927,9 +912,9 @@
927 912 $this->add_render_attribute('swiper', 'class', 'swiper-carousel swiper upk-category-carousel-wrap upk-category-carousel-' . $skin_layout );
928 913 ?>
929 914 <div <?php $this->print_render_attribute_string('carousel'); ?>>
930 915 <div class="upk-category-carousel-wrapper">
931 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
916 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
932 917 <div class="swiper-wrapper">
933 918 <?php
934 919 }
935 920
@@ -940,8 +925,9 @@
940 925 'taxonomy' => $settings["taxonomy"],
941 926 'orderby' => $settings["orderby"],
942 927 'order' => $settings["order"],
943 928 // 'include' => explode(',', esc_attr($settings["include"])),
929 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
944 930 'exclude' => explode(',', esc_attr($settings["exclude"])),
945 931 'parent' => $settings["parent"],
946 932 'hide_empty' => 0,
947 933 ]