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/pholox-slider/widgets/pholox-slider.php +86 -92 4.1.12 → 4.5.6 View file →
@@ -160,8 +160,9 @@
160 160 $this->add_group_control(
161 161 Group_Control_Image_Size::get_type(),
162 162 [
163 163 'name' => 'primary_thumbnail',
164 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
164 165 'exclude' => ['custom'],
165 166 'default' => 'full',
166 167 'separator' => 'after',
167 168 ]
@@ -220,9 +221,9 @@
220 221 [
221 222 'label' => esc_html__('Thumbs Category', 'ultimate-post-kit'),
222 223 'type' => Controls_Manager::SWITCHER,
223 224 'default' => 'yes',
224 - 'separator' => 'before',
225 + // 'separator' => 'before',
225 226 ]
226 227 );
227 228
228 229 $this->add_control(
@@ -241,9 +242,9 @@
241 242 'type' => Controls_Manager::SELECT,
242 243 'default' => 'h3',
243 244 'options' => ultimate_post_kit_title_tags(),
244 245 'condition' => [
245 - 'show_title' => 'yes'
246 + 'thumb_show_title' => 'yes'
246 247 ]
247 248 ]
248 249 );
249 250
@@ -358,24 +359,15 @@
358 359
359 360 $this->end_controls_section();
360 361
361 362 $this->start_controls_section(
362 - 'style_content_section',
363 + 'section_style_image',
363 364 [
364 - 'label' => esc_html__('Slider', 'ultimate-post-kit'),
365 + 'label' => esc_html__('Image', 'ultimate-post-kit'),
365 366 'tab' => Controls_Manager::TAB_STYLE,
366 367 ]
367 368 );
368 369
369 - $this->add_control(
370 - 'main_slider_image_heading',
371 - [
372 - 'label' => esc_html__('Image', 'ultimate-post-kit'),
373 - 'type' => Controls_Manager::HEADING,
374 - 'separator' => 'before',
375 - ]
376 - );
377 -
378 370 $this->add_group_control(
379 371 Group_Control_Border::get_type(),
380 372 [
381 373 'name' => 'main_slider_image_border',
@@ -394,17 +386,15 @@
394 386 ],
395 387 ]
396 388 );
397 389
390 + $this->end_controls_section();
398 391
399 - $this->start_controls_tabs(
400 - 'style_slider_tabs'
401 - );
402 -
403 - $this->start_controls_tab(
404 - 'style_main_slider_items_tab',
392 + $this->start_controls_section(
393 + 'section_style_content',
405 394 [
406 - 'label' => esc_html__('Items', 'ultimate-post-kit'),
395 + 'label' => esc_html__('Content', 'ultimate-post-kit'),
396 + 'tab' => Controls_Manager::TAB_STYLE,
407 397 ]
408 398 );
409 399
410 400 $this->add_group_control(
@@ -454,14 +444,15 @@
454 444 'selector' => '{{WRAPPER}} .upk-pholox-slider .upk-main-slider .upk-content',
455 445 ]
456 446 );
457 447
458 - $this->end_controls_tab();
448 + $this->end_controls_section();
459 449
460 - $this->start_controls_tab(
461 - 'style_main_slider_play_button_tab',
450 + $this->start_controls_section(
451 + 'section_style_play_button',
462 452 [
463 453 'label' => esc_html__('Play Button', 'ultimate-post-kit'),
454 + 'tab' => Controls_Manager::TAB_STYLE,
464 455 ]
465 456 );
466 457
467 458 $this->add_responsive_control(
@@ -566,14 +557,18 @@
566 557 ]
567 558 ]
568 559 );
569 560
570 - $this->end_controls_tab();
561 + $this->end_controls_section();
571 562
572 - $this->start_controls_tab(
573 - 'style_main_slider_title_tab',
563 + $this->start_controls_section(
564 + 'section_style_title',
574 565 [
575 - 'label' => esc_html__('Title', 'ultimate-post-kit'),
566 + 'label' => esc_html__('Title', 'ultimate-post-kit'),
567 + 'tab' => Controls_Manager::TAB_STYLE,
568 + 'condition' => [
569 + 'show_title' => 'yes',
570 + ],
576 571 ]
577 572 );
578 573
579 574 $this->add_control(
@@ -649,14 +644,18 @@
649 644 ],
650 645 ]
651 646 );
652 647
653 - $this->end_controls_tab();
648 + $this->end_controls_section();
654 649
655 - $this->start_controls_tab(
656 - 'style_main_slider_category_tab',
650 + $this->start_controls_section(
651 + 'section_style_category',
657 652 [
658 - 'label' => esc_html__('Category', 'ultimate-post-kit'),
653 + 'label' => esc_html__('Category', 'ultimate-post-kit'),
654 + 'tab' => Controls_Manager::TAB_STYLE,
655 + 'condition' => [
656 + 'show_category' => 'yes',
657 + ],
659 658 ]
660 659 );
661 660
662 661 $this->add_responsive_control(
@@ -805,20 +804,35 @@
805 804 ]
806 805 );
807 806
808 807
809 - $this->end_controls_tab();
808 + $this->end_controls_section();
810 809
811 - // main slider meta tab
812 -
813 - $this->start_controls_tab(
814 - 'style_main_slider_meta_tab',
810 + $this->start_controls_section(
811 + 'section_style_meta',
815 812 [
816 - 'label' => esc_html__('Meta', 'ultimate-post-kit'),
813 + 'label' => esc_html__('Meta', 'ultimate-post-kit'),
814 + 'tab' => Controls_Manager::TAB_STYLE,
815 + 'conditions' => [
816 + 'relation' => 'or',
817 + 'terms' => [
818 + [
819 + 'name' => 'show_author',
820 + 'value' => 'yes',
821 + ],
822 + [
823 + 'name' => 'show_date',
824 + 'value' => 'yes',
825 + ],
826 + [
827 + 'name' => 'show_reading_time',
828 + 'value' => 'yes',
829 + ],
830 + ],
831 + ],
817 832 ]
818 833 );
819 834
820 -
821 835 $this->add_control(
822 836 'meta_color',
823 837 [
824 838 'label' => esc_html__('Color', 'ultimate-post-kit'),
@@ -865,37 +879,18 @@
865 879 'selector' => '{{WRAPPER}} .upk-pholox-slider .upk-main-slider .upk-meta',
866 880 ]
867 881 );
868 882
869 - $this->end_controls_tab();
870 -
871 - $this->end_controls_tabs();
872 -
873 883 $this->end_controls_section();
874 884
875 - // start thumbnail style
876 -
877 885 $this->start_controls_section(
878 - 'style_playlist',
886 + 'section_style_thumbs_item',
879 887 [
880 - 'label' => esc_html__('Thumbs', 'ultimate-post-kit'),
888 + 'label' => esc_html__('Thumbs Item', 'ultimate-post-kit'),
881 889 'tab' => Controls_Manager::TAB_STYLE,
882 890 ]
883 891 );
884 892
885 - $this->start_controls_tabs(
886 - 'style_thumbs_slider_tabs'
887 - );
888 -
889 - // thumbs slider item
890 -
891 - $this->start_controls_tab(
892 - 'tab_thumbs_slider_item',
893 - [
894 - 'label' => __('Item', 'ultimate-post-kit'),
895 - ]
896 - );
897 -
898 893 $this->add_group_control(
899 894 Group_Control_Background::get_type(),
900 895 [
901 896 'name' => 'thumbs_item_background',
@@ -985,14 +980,15 @@
985 980 ],
986 981 ]
987 982 );
988 983
989 - $this->end_controls_tab();
984 + $this->end_controls_section();
990 985
991 - $this->start_controls_tab(
992 - 'style_thumbs_slide_image_tab',
986 + $this->start_controls_section(
987 + 'section_style_thumbs_image',
993 988 [
994 - 'label' => esc_html__('Image', 'ultimate-post-kit'),
989 + 'label' => esc_html__('Thumbs Image', 'ultimate-post-kit'),
990 + 'tab' => Controls_Manager::TAB_STYLE,
995 991 ]
996 992 );
997 993
998 994 $this->add_responsive_control(
@@ -1036,16 +1032,15 @@
1036 1032 ],
1037 1033 ]
1038 1034 );
1039 1035
1040 - $this->end_controls_tab();
1036 + $this->end_controls_section();
1041 1037
1042 - // thumbs slider play button tab
1043 -
1044 - $this->start_controls_tab(
1045 - 'style_thumbs_slider_play-button_tab',
1038 + $this->start_controls_section(
1039 + 'section_style_thumbs_play_button',
1046 1040 [
1047 - 'label' => esc_html__('Play Button', 'ultimate-post-kit'),
1041 + 'label' => esc_html__('Thumbs Play Button', 'ultimate-post-kit'),
1042 + 'tab' => Controls_Manager::TAB_STYLE,
1048 1043 ]
1049 1044 );
1050 1045
1051 1046 $this->add_responsive_control(
@@ -1166,16 +1161,18 @@
1166 1161 ]
1167 1162 );
1168 1163
1169 1164
1170 - $this->end_controls_tab();
1165 + $this->end_controls_section();
1171 1166
1172 - // thumbs slider title tab
1173 -
1174 - $this->start_controls_tab(
1175 - 'style_thumbs_slider_title_tab',
1167 + $this->start_controls_section(
1168 + 'section_style_thumbs_title',
1176 1169 [
1177 - 'label' => esc_html__('Title', 'ultimate-post-kit'),
1170 + 'label' => esc_html__('Thumbs Title', 'ultimate-post-kit'),
1171 + 'tab' => Controls_Manager::TAB_STYLE,
1172 + 'condition' => [
1173 + 'thumb_show_title' => 'yes',
1174 + ],
1178 1175 ]
1179 1176 );
1180 1177
1181 1178 $this->add_control(
@@ -1218,16 +1215,18 @@
1218 1215 ],
1219 1216 ]
1220 1217 );
1221 1218
1222 - $this->end_controls_tab();
1219 + $this->end_controls_section();
1223 1220
1224 - // thumbs slider thumbs tab
1225 -
1226 - $this->start_controls_tab(
1227 - 'style_thumbs_slider_category_tab',
1221 + $this->start_controls_section(
1222 + 'section_style_thumbs_category',
1228 1223 [
1229 - 'label' => esc_html__('Category', 'ultimate-post-kit'),
1224 + 'label' => esc_html__('Thumbs Category', 'ultimate-post-kit'),
1225 + 'tab' => Controls_Manager::TAB_STYLE,
1226 + 'condition' => [
1227 + 'thumb_show_category' => 'yes',
1228 + ],
1230 1229 ]
1231 1230 );
1232 1231
1233 1232 // $this->add_control(
@@ -1411,9 +1410,9 @@
1411 1410 [
1412 1411 'label' => esc_html__('Border Color', 'ultimate-post-kit'),
1413 1412 'type' => Controls_Manager::COLOR,
1414 1413 'condition' => [
1415 - 'category_border_border!' => '',
1414 + 'playlist_category_border_border!' => '',
1416 1415 ],
1417 1416 'selectors' => [
1418 1417 '{{WRAPPER}} .upk-pholox-slider .upk-thumbs-slider .upk-category a:hover' => 'border-color: {{VALUE}};',
1419 1418 ],
@@ -1418,15 +1417,9 @@
1418 1417 '{{WRAPPER}} .upk-pholox-slider .upk-thumbs-slider .upk-category a:hover' => 'border-color: {{VALUE}};',
1419 1418 ],
1420 1419 ]
1421 1420 );
1422 - // category control thumbs end
1423 1421
1424 -
1425 - $this->end_controls_tab();
1426 -
1427 - $this->end_controls_tabs();
1428 -
1429 1422 $this->end_controls_section();
1430 1423 }
1431 1424
1432 1425 /**
@@ -1453,9 +1446,10 @@
1453 1446 if (!$this->get_settings('thumb_show_title')) {
1454 1447 return;
1455 1448 }
1456 1449
1457 - printf('<%1$s class="upk-title"><a href="%2$s" title="%3$s">%3$s</a></%1$s>', esc_attr(Utils::get_valid_html_tag($settings['title_tags'])), 'javascript:void(0);', esc_html( get_the_title() ));
1450 + $title = get_the_title();
1451 + printf('<%1$s class="upk-title"><a href="%2$s" title="%4$s">%3$s</a></%1$s>', esc_attr(Utils::get_valid_html_tag($settings['title_tags'])), 'javascript:void(0);', esc_html( $title ), esc_attr( $title ));
1458 1452 }
1459 1453
1460 1454
1461 1455 function thumbs_render_category()
@@ -1464,9 +1458,9 @@
1464 1458 return;
1465 1459 }
1466 1460 ?>
1467 1461 <div class="upk-category">
1468 - <?php echo upk_get_category($this->get_settings('posts_source')); ?>
1462 + <?php echo wp_kses_post( upk_get_category($this->get_settings('posts_source')) ); ?>
1469 1463 </div>
1470 1464 <?php
1471 1465 }
1472 1466
@@ -1591,9 +1585,9 @@
1591 1585 <div class="upk-meta" data-swiper-parallax="-350" data-swiper-parallax-duration="1000">
1592 1586 <?php $this->render_author(); ?>
1593 1587
1594 1588 <?php if ($settings['show_date'] == 'yes') : ?>
1595 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1589 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1596 1590 <?php $this->render_date(); ?>
1597 1591 </div>
1598 1592 <?php endif; ?>
1599 1593
@@ -1598,9 +1592,9 @@
1598 1592 <?php endif; ?>
1599 1593
1600 1594 <?php if (_is_upk_pro_activated()) :
1601 1595 if ('yes' === $settings['show_reading_time']) : ?>
1602 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1596 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1603 1597 <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
1604 1598 </div>
1605 1599 <?php endif; ?>
1606 1600 <?php endif; ?>