PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 1.5.0
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v1.5.0
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
ultimate-store-kit / traits / global-widget-controls.php

global-widget-controls.php in Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder 1.5.0, at traits/global-widget-controls.php

3,513 lines 131.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace UltimateStoreKit\Traits;
4
5 use Elementor\Controls_Manager;
6 use Elementor\Group_Control_Border;
7 use Elementor\Group_Control_Typography;
8 use Elementor\Group_Control_Background;
9 use Elementor\Group_Control_Image_Size;
10 use Elementor\Group_Control_Box_Shadow;
11
12
13 // use UltimateStoreKit\Modules\QueryControl\Controls\Group_Control_Posts;
14
15 defined('ABSPATH') || die();
16
17
18 trait Global_Widget_Controls {
19 protected function register_global_controls_grid_layout() {
20 $this->add_responsive_control(
21 'alignment',
22 [
23 'label' => esc_html__('Alignment', 'ultimate-store-kit'),
24 'type' => Controls_Manager::CHOOSE,
25 'options' => [
26 'left' => [
27 'title' => esc_html__('Left', 'ultimate-store-kit'),
28 'icon' => 'eicon-h-align-left',
29 ],
30 'center' => [
31 'title' => esc_html__('Center', 'ultimate-store-kit'),
32 'icon' => 'eicon-h-align-center',
33 ],
34 'right' => [
35 'title' => esc_html__('Right', 'ultimate-store-kit'),
36 'icon' => 'eicon-h-align-right',
37 ],
38 ],
39 'selectors' => [
40 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content' => 'text-align: {{VALUE}}',
41 ],
42 'render_type' => 'template'
43 ]
44 );
45 $this->add_group_control(
46 Group_Control_Image_Size::get_type(),
47 [
48 'name' => 'image',
49 'label' => esc_html__('Image Size', 'ultimate-store-kit'),
50 'exclude' => ['custom'],
51 'default' => 'medium_large',
52 ]
53 );
54 }
55 protected function register_global_controls_query() {
56 $this->start_controls_section(
57 'section_content_query',
58 [
59 'label' => esc_html__('Query', 'ultimate-store-kit'),
60 ]
61 );
62
63 $this->add_control(
64 'source',
65 [
66 'label' => _x('Source', 'Posts Query Control', 'ultimate-store-kit'),
67 'type' => Controls_Manager::SELECT,
68 'options' => [
69 '' => esc_html__('Show All', 'ultimate-store-kit'),
70 'by_name' => esc_html__('Manual Selection', 'ultimate-store-kit'),
71 ],
72 'label_block' => true,
73 ]
74 );
75
76 $this->add_control(
77 'product_categories',
78 [
79 'label' => esc_html__('Categories', 'ultimate-store-kit'),
80 'type' => Controls_Manager::SELECT2,
81 'options' => ultimate_store_kit_get_category('product_cat'),
82 'default' => [],
83 'label_block' => true,
84 'multiple' => true,
85 'condition' => [
86 'source' => 'by_name',
87 ],
88 ]
89 );
90
91 $this->add_control(
92 'exclude_products',
93 [
94 'label' => esc_html__('Exclude Product(s)', 'ultimate-store-kit'),
95 'type' => Controls_Manager::TEXT,
96 'placeholder' => 'product_id',
97 'label_block' => true,
98 'description' => esc_html__('Write product id here, if you want to exclude multiple products so use comma as separator. Such as 1 , 2', ''),
99 ]
100 );
101
102 $this->add_control(
103 'posts_per_page',
104 [
105 'label' => esc_html__('Product Limit', 'ultimate-store-kit'),
106 'type' => Controls_Manager::NUMBER,
107 'default' => 9,
108 ]
109 );
110
111 $this->add_control(
112 'show_product_type',
113 [
114 'label' => esc_html__('Show Product', 'ultimate-store-kit'),
115 'type' => Controls_Manager::SELECT,
116 'default' => 'all',
117 'options' => [
118 'all' => esc_html__('All Products', 'ultimate-store-kit'),
119 'onsale' => esc_html__('On Sale', 'ultimate-store-kit'),
120 'featured' => esc_html__('Featured', 'ultimate-store-kit'),
121 ],
122 ]
123 );
124 $this->add_control(
125 'orderby',
126 [
127 'label' => esc_html__('Order by', 'ultimate-store-kit'),
128 'type' => Controls_Manager::SELECT,
129 'default' => 'date',
130 'options' => [
131 'date' => esc_html__('Date', 'ultimate-store-kit'),
132 'price' => esc_html__('Price', 'ultimate-store-kit'),
133 'sales' => esc_html__('Sales', 'ultimate-store-kit'),
134 'rand' => esc_html__('Random', 'ultimate-store-kit'),
135 ],
136 ]
137 );
138
139 $this->add_control(
140 'order',
141 [
142 'label' => esc_html__('Order', 'ultimate-store-kit'),
143 'type' => Controls_Manager::SELECT,
144 'default' => 'DESC',
145 'options' => [
146 'DESC' => esc_html__('Descending', 'ultimate-store-kit'),
147 'ASC' => esc_html__('Ascending', 'ultimate-store-kit'),
148 ],
149 ]
150 );
151
152 $this->add_control(
153 'show_pagination',
154 [
155 'label' => esc_html__('Pagination', 'ultimate-store-kit'),
156 'type' => Controls_Manager::SWITCHER,
157 // 'default' => 'yes'
158 ]
159 );
160
161 $this->add_control(
162 'show_per_page',
163 [
164 'label' => esc_html__('Show Per Page', 'ultimate-store-kit'),
165 'type' => Controls_Manager::SELECT,
166 'default' => '10',
167 'options' => [
168 '10' => '10',
169 '25' => '25',
170 '50' => '50',
171 '100' => '100',
172 ],
173 'condition' => [
174 'show_pagination' => 'yes',
175 ],
176 ]
177 );
178
179 $this->add_control(
180 'hide_free',
181 [
182 'label' => esc_html__('Hide Free', 'ultimate-store-kit'),
183 'type' => Controls_Manager::SWITCHER,
184 ]
185 );
186
187 $this->add_control(
188 'hide_out_stock',
189 [
190 'label' => esc_html__('Hide Out of Stock', 'ultimate-store-kit'),
191 'type' => Controls_Manager::SWITCHER,
192 ]
193 );
194
195 $this->end_controls_section();
196 }
197 protected function register_global_controls_additional() {
198 $this->start_controls_section(
199 'section_woocommerce_additional',
200 [
201 'label' => esc_html__('Additional', 'ultimate-store-kit'),
202 ]
203 );
204 $this->start_controls_tabs(
205 'tabs_show_hide_content'
206 );
207 $this->start_controls_tab(
208 'show_content_tab',
209 [
210 'label' => esc_html__('Content', 'ultimate-store-kit'),
211 ]
212 );
213 $this->add_control(
214 'show_title',
215 [
216 'label' => esc_html__('Title', 'ultimate-store-kit'),
217 'type' => Controls_Manager::SWITCHER,
218 'default' => 'yes'
219 ]
220 );
221 $this->add_control(
222 'title_tags',
223 [
224 'label' => esc_html__('Title HTML Tag', 'ultimate-store-kit'),
225 'type' => Controls_Manager::SELECT,
226 'default' => 'h3',
227 'options' => ultimate_store_kit_title_tags(),
228 'condition' => [
229 'show_title' => 'yes'
230 ]
231 ]
232 );
233 $this->add_control(
234 'show_category',
235 [
236 'label' => esc_html__('Category', 'ultimate-store-kit'),
237 'type' => Controls_Manager::SWITCHER,
238 'default' => 'yes',
239 'separator' => 'before'
240 ]
241 );
242 $this->add_control(
243 'category_tags',
244 [
245 'label' => esc_html__('Category HTML Tag', 'ultimate-store-kit'),
246 'type' => Controls_Manager::SELECT,
247 'default' => 'h5',
248 'options' => ultimate_store_kit_title_tags(),
249 'condition' => [
250 'show_category' => 'yes',
251 ],
252 ]
253 );
254 if ($this->get_name() !== 'usk-product-image-accordion') :
255 $this->add_control(
256 'show_excerpt',
257 [
258 'label' => esc_html__('Text', 'ultimate-store-kit'),
259 'type' => Controls_Manager::SWITCHER,
260 'default' => 'yes',
261 'separator' => 'before',
262 'condition' => [
263 'layout_style' => 'list'
264 ]
265 ]
266 );
267 $this->add_control(
268 'excerpt_limit',
269 [
270 'label' => esc_html__('Text Limit', 'ultimate-store-kit'),
271 'type' => Controls_Manager::NUMBER,
272 'default' => 25,
273 'condition' => [
274 'show_excerpt' => 'yes',
275 'layout_style' => 'list'
276 ],
277 ]
278 );
279 endif;
280 $this->add_control(
281 'show_rating',
282 [
283 'label' => esc_html__('Rating', 'ultimate-store-kit'),
284 'type' => Controls_Manager::SWITCHER,
285 'default' => 'yes',
286 'separator' => 'before'
287 ]
288 );
289 // $this->add_control(
290 // 'hide_customer_review',
291 // [
292 // 'label' => esc_html__('Hide Review Text', 'ultimate-store-kit'),
293 // 'type' => Controls_Manager::SWITCHER,
294 // 'default' => 'yes',
295 // 'condition' => [
296 // 'show_rating' => 'yes',
297 // ],
298 // 'selectors' => [
299 // // '{{WRAPPER}} .' . $this->get_name() . ' .usk-rating .woocommerce-review-link' => 'display:none',
300 // ],
301 // ]
302 // );
303 $this->add_control(
304 'show_price',
305 [
306 'label' => esc_html__('Price', 'ultimate-store-kit'),
307 'type' => Controls_Manager::SWITCHER,
308 'default' => 'yes',
309 ]
310 );
311
312 $this->end_controls_tab();
313 $this->start_controls_tab(
314 'show_sale_badge_tab',
315 [
316 'label' => esc_html__('Badge', 'ultimate-store-kit'),
317 ]
318 );
319 $this->add_control(
320 'show_sale_badge',
321 [
322 'label' => esc_html__('Sale', 'ultimate-store-kit'),
323 'type' => Controls_Manager::SWITCHER,
324 'default' => 'yes',
325 ]
326 );
327 $this->add_control(
328 'show_discount_badge',
329 [
330 'label' => esc_html__('Percentage', 'ultimate-store-kit'),
331 'type' => Controls_Manager::SWITCHER,
332 'default' => 'yes',
333 ]
334 );
335 $this->add_control(
336 'show_stock_status',
337 [
338 'label' => esc_html__('Stock Status', 'ultimate-store-kit'),
339 'type' => Controls_Manager::SWITCHER,
340 // 'default' => 'yes',
341 ]
342 );
343 $this->add_control(
344 'show_trending_badge',
345 [
346 'label' => esc_html__('Trending', 'ultimate-store-kit'),
347 'type' => Controls_Manager::SWITCHER,
348 'default' => 'yes',
349 ]
350 );
351 $this->add_control(
352 'show_new_badge',
353 [
354 'label' => esc_html__('New', 'ultimate-store-kit'),
355 'type' => Controls_Manager::SWITCHER,
356 'default' => 'yes',
357 ]
358 );
359 $this->add_control(
360 'newness_days',
361 [
362 'label' => esc_html__('Newness Days', 'ultimate-store-kit'),
363 'type' => Controls_Manager::NUMBER,
364 'default' => 30,
365 'condition' => [
366 'show_new_badge' => 'yes',
367 ],
368 ]
369 );
370 $this->end_controls_tab();
371 $this->start_controls_tab(
372 'show_action_btn_tab',
373 [
374 'label' => esc_html__('Action btn', 'ultimate-store-kit'),
375 ]
376 );
377 $this->add_control(
378 'show_cart',
379 [
380 'label' => esc_html__('Add to Cart', 'ultimate-store-kit'),
381 'type' => Controls_Manager::SWITCHER,
382 'default' => 'yes',
383 ]
384 );
385
386 $this->add_control(
387 'show_wishlist',
388 [
389 'label' => esc_html__('Wishlist', 'ultimate-store-kit'),
390 'type' => Controls_Manager::SWITCHER,
391 'label_on' => esc_html__('Show', 'ultimate-store-kit'),
392 'label_off' => esc_html__('Hide', 'ultimate-store-kit'),
393 'return_value' => 'yes',
394 'default' => 'yes',
395 ]
396 );
397
398 $this->add_control(
399 'show_compare',
400 [
401 'label' => esc_html__('Compare', 'ultimate-store-kit'),
402 'type' => Controls_Manager::SWITCHER,
403 'label_on' => esc_html__('Show', 'ultimate-store-kit'),
404 'label_off' => esc_html__('Hide', 'ultimate-store-kit'),
405 'return_value' => 'yes',
406 'default' => 'yes',
407 ]
408 );
409
410 $this->add_control(
411 'show_quick_view',
412 [
413 'label' => esc_html__('Quick View', 'ultimate-store-kit'),
414 'type' => Controls_Manager::SWITCHER,
415 'default' => 'yes',
416 ]
417 );
418 $this->end_controls_tab();
419 $this->end_controls_tabs();
420 $this->end_controls_section();
421 }
422
423 protected function register_global_controls_grid_columns() {
424 $this->start_controls_section(
425 'section_style_columns_filter',
426 [
427 'label' => esc_html__('Columns Filter', 'ultimate-store-kit'),
428 'tab' => Controls_Manager::TAB_STYLE,
429 'condition' => ['show_tab' => 'yes']
430 ]
431 );
432
433 $this->start_controls_tabs('style_columns_filter_tabs');
434
435 $this->start_controls_tab(
436 'tab_columns_filter_normal',
437 [
438 'label' => esc_html__('Normal', 'ultimate-store-kit'),
439 ]
440 );
441
442 $this->add_control(
443 'columns_filter_color',
444 [
445 'label' => esc_html__('Color', 'ultimate-store-kit'),
446 'type' => Controls_Manager::COLOR,
447 'selectors' => [
448 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list a' => 'color: {{VALUE}}',
449 ],
450 ]
451 );
452
453 $this->add_group_control(
454 Group_Control_Background::get_type(),
455 [
456 'name' => 'columns_filter_background',
457 'exclude' => ['image'],
458 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list a',
459 ]
460 );
461
462 $this->add_responsive_control(
463 'columns_filter_border_width',
464 [
465 'label' => esc_html__('Border Width', 'ultimate-store-kit'),
466 'type' => Controls_Manager::SLIDER,
467 'default' => [
468 'size' => 1,
469 ],
470 'range' => [
471 'px' => [
472 'min' => 0,
473 'max' => 10,
474 ],
475 ],
476 'selectors' => [
477 '{{WRAPPER}}' => '--usk-filter-border-width: {{SIZE}}{{UNIT}};',
478 ],
479 'separator' => 'before',
480 ]
481 );
482
483 $this->add_control(
484 'columns_filter_border_color',
485 [
486 'label' => esc_html__('Border Color', 'ultimate-store-kit'),
487 'type' => Controls_Manager::COLOR,
488 'selectors' => [
489 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list a' => 'border-color: {{VALUE}}',
490 ],
491 ]
492 );
493
494 $this->add_responsive_control(
495 'columns_filter_padding',
496 [
497 'label' => esc_html__('Padding', 'ultimate-store-kit'),
498 'type' => Controls_Manager::DIMENSIONS,
499 'size_units' => ['px', '%', 'em'],
500 'selectors' => [
501 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
502 ],
503 ]
504 );
505
506 $this->add_responsive_control(
507 'columns_filter_margin',
508 [
509 'label' => esc_html__('Margin', 'ultimate-store-kit'),
510 'type' => Controls_Manager::DIMENSIONS,
511 'size_units' => ['px', '%', 'em'],
512 'selectors' => [
513 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
514 ],
515 ]
516 );
517
518 $this->end_controls_tab();
519
520 $this->start_controls_tab(
521 'tab_columns_filter_hover',
522 [
523 'label' => esc_html__('Hover', 'ultimate-store-kit'),
524 ]
525 );
526
527 $this->add_control(
528 'columns_filter_hover_color',
529 [
530 'label' => esc_html__('Color', 'ultimate-store-kit'),
531 'type' => Controls_Manager::COLOR,
532 'selectors' => [
533 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list a:hover' => 'color: {{VALUE}}',
534 ],
535 ]
536 );
537
538 $this->add_group_control(
539 Group_Control_Background::get_type(),
540 [
541 'name' => 'columns_filter_hover_background',
542 'exclude' => ['image'],
543 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list a:hover',
544 ]
545 );
546
547 $this->end_controls_tab();
548
549 $this->start_controls_tab(
550 'tab_columns_filter_active',
551 [
552 'label' => esc_html__('Active', 'ultimate-store-kit'),
553 ]
554 );
555
556 $this->add_control(
557 'columns_filter_active_color',
558 [
559 'label' => esc_html__('Color', 'ultimate-store-kit'),
560 'type' => Controls_Manager::COLOR,
561 'selectors' => [
562 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list.usk-tabs-active a' => 'color: {{VALUE}}',
563 ],
564 ]
565 );
566
567 $this->add_group_control(
568 Group_Control_Background::get_type(),
569 [
570 'name' => 'columns_filter_active_background',
571 'exclude' => ['image'],
572 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid-header .usk-grid-header-tabs .usk-grid-tabs-list.usk-tabs-active a',
573 ]
574 );
575
576 $this->end_controls_tab();
577 $this->end_controls_tabs();
578 $this->end_controls_section();
579 }
580 protected function register_global_controls_result_count() {
581 $this->start_controls_section(
582 'section_style_result_count',
583 [
584 'label' => esc_html__('Count Result', 'ultimate-store-kit'),
585 'tab' => Controls_Manager::TAB_STYLE,
586 'condition' => [
587 'show_tab' => 'yes',
588 'show_result_count' => 'yes',
589 ]
590 ]
591 );
592 $this->add_control(
593 'result_count_color',
594 [
595 'label' => esc_html__('Color', 'ultimate-store-kit'),
596 'type' => Controls_Manager::COLOR,
597 'selectors' => [
598 '{{WRAPPER}} .woocommerce-result-count' => 'color: {{VALUE}}',
599 ],
600 ]
601 );
602
603 $this->add_responsive_control(
604 'result_count_margin',
605 [
606 'label' => esc_html__('Margin', 'ultimate-store-kit'),
607 'type' => Controls_Manager::DIMENSIONS,
608 'size_units' => ['px', '%', 'em'],
609 'selectors' => [
610 '{{WRAPPER}} .woocommerce-result-count' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
611 ],
612 ]
613 );
614
615 $this->add_group_control(
616 Group_Control_Typography::get_type(),
617 [
618 'name' => 'result_count_typography',
619 'label' => esc_html__('Typography', 'ultimate-store-kit'),
620 'selector' => '{{WRAPPER}} .woocommerce-result-count',
621 ]
622 );
623
624 $this->end_controls_section();
625 }
626
627 protected function register_global_controls_grid_items() {
628 $this->start_controls_section(
629 'section_style_item',
630 [
631 'label' => esc_html__('Items', 'ultimate-store-kit'),
632 'tab' => Controls_Manager::TAB_STYLE,
633 ]
634 );
635
636 $this->start_controls_tabs('item_tabs');
637
638 $this->start_controls_tab(
639 'item_tab_normal',
640 [
641 'label' => esc_html__('Normal', 'ultimate-store-kit'),
642 ]
643 );
644
645 $this->add_group_control(
646 Group_Control_Border::get_type(),
647 [
648 'name' => 'item_border',
649 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item',
650 ]
651 );
652
653 $this->add_responsive_control(
654 'item_border_radius',
655 [
656 'label' => esc_html__('Border Radius', 'ultimate-store-kit'),
657 'type' => Controls_Manager::DIMENSIONS,
658 'size_units' => ['px', '%', 'em'],
659 'selectors' => [
660 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
661 ],
662 ]
663 );
664
665 $this->add_responsive_control(
666 'item_padding',
667 [
668 'label' => esc_html__('Padding', 'ultimate-store-kit'),
669 'type' => Controls_Manager::DIMENSIONS,
670 'size_units' => ['px', '%', 'em'],
671 'selectors' => [
672 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
673 ],
674 ]
675 );
676
677 $this->add_group_control(
678 Group_Control_Box_Shadow::get_type(),
679 [
680 'name' => 'item_shadow',
681 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item',
682 ]
683 );
684
685 $this->end_controls_tab();
686
687 $this->start_controls_tab(
688 'item_tab_hover',
689 [
690 'label' => esc_html__('Hover', 'ultimate-store-kit'),
691 ]
692 );
693
694 $this->add_control(
695 'item_hover_border_color',
696 [
697 'label' => esc_html__('Border Color', 'ultimate-store-kit'),
698 'type' => Controls_Manager::COLOR,
699 'selectors' => [
700 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item:hover' => 'border-color: {{VALUE}}',
701 ],
702 ]
703 );
704
705 $this->add_group_control(
706 Group_Control_Box_Shadow::get_type(),
707 [
708 'name' => 'item_hover_shadow',
709 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item:hover',
710 ]
711 );
712
713 $this->end_controls_tab();
714
715 $this->end_controls_tabs();
716
717 $this->end_controls_section();
718 }
719
720 protected function register_global_controls_grid_image() {
721 $this->start_controls_section(
722 'section_style_image',
723 [
724 'label' => esc_html__('Image', 'ultimate-store-kit'),
725 'tab' => Controls_Manager::TAB_STYLE,
726 ]
727 );
728 $this->start_controls_tabs(
729 'style_tabs_image'
730 );
731 $this->start_controls_tab(
732 'image_normal',
733 [
734 'label' => esc_html__('Normal', 'ultimate-store-kit'),
735 ]
736 );
737 $this->add_group_control(
738 Group_Control_Background::get_type(),
739 [
740 'name' => 'image_background',
741 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-image',
742 ]
743 );
744 $this->add_group_control(
745 Group_Control_Border::get_type(),
746 [
747 'name' => 'image_border',
748 'label' => esc_html__('Image Border', 'ultimate-store-kit'),
749 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-image',
750 'separator' => 'before',
751 ]
752 );
753
754 $this->add_responsive_control(
755 'image_border_radius',
756 [
757 'label' => esc_html__('Border Radius', 'ultimate-store-kit'),
758 'type' => Controls_Manager::DIMENSIONS,
759 'size_units' => ['px', '%'],
760 'selectors' => [
761 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-image' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
762 ],
763 ]
764 );
765
766 $this->add_responsive_control(
767 'image_padding',
768 [
769 'label' => esc_html__('Padding', 'ultimate-store-kit'),
770 'type' => Controls_Manager::DIMENSIONS,
771 'size_units' => ['px', '%'],
772 'selectors' => [
773 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-image' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
774 ],
775 ]
776 );
777
778 $this->add_group_control(
779 Group_Control_Box_Shadow::get_type(),
780 [
781 'name' => 'image_shadow',
782 'exclude' => [
783 'shadow_position',
784 ],
785 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-image',
786 ]
787 );
788 $this->end_controls_tab();
789 $this->start_controls_tab(
790 'image_hover',
791 [
792 'label' => esc_html__('Hover', 'ultimate-store-kit'),
793 ]
794 );
795 $this->add_group_control(
796 Group_Control_Background::get_type(),
797 [
798 'name' => 'image_hover_background',
799 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item:hover .usk-item-box .usk-image',
800 ]
801 );
802 $this->add_group_control(
803 Group_Control_Border::get_type(),
804 [
805 'name' => 'image_hover_border',
806 'label' => esc_html__('Image Border', 'ultimate-store-kit'),
807 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item:hover .usk-item-box .usk-image',
808 'separator' => 'before',
809 ]
810 );
811
812 $this->add_responsive_control(
813 'image_hover_border_radius',
814 [
815 'label' => esc_html__('Border Radius', 'ultimate-store-kit'),
816 'type' => Controls_Manager::DIMENSIONS,
817 'size_units' => ['px', '%'],
818 'selectors' => [
819 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item:hover .usk-item-box .usk-image' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
820 ],
821 ]
822 );
823
824 $this->add_group_control(
825 Group_Control_Box_Shadow::get_type(),
826 [
827 'name' => 'image_hover_shadow',
828 'exclude' => [
829 'shadow_position',
830 ],
831 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item:hover .usk-item-box .usk-image',
832 ]
833 );
834 $this->end_controls_tab();
835 $this->end_controls_tabs();
836
837 $this->end_controls_section();
838 }
839
840 protected function register_global_controls_content() {
841 $this->start_controls_section(
842 'section_style_content',
843 [
844 'label' => esc_html__('Content', 'ultimate-store-kit'),
845 'tab' => Controls_Manager::TAB_STYLE,
846 ]
847 );
848
849 $this->start_controls_tabs('tabs_content_style');
850
851 $this->start_controls_tab(
852 'tab_content_normal',
853 [
854 'label' => esc_html__('Normal', 'ultimate-store-kit'),
855 ]
856 );
857 $this->add_group_control(
858 Group_Control_Background::get_type(),
859 [
860 'name' => 'content_background',
861 'label' => esc_html__('Background', 'ultimate-store-kit'),
862 'types' => ['classic', 'gradient'],
863 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-content',
864 ]
865 );
866
867 $this->add_group_control(
868 Group_Control_Border::get_type(),
869 [
870 'name' => 'content_border',
871 'label' => esc_html__('Border Color', 'ultimate-store-kit'),
872 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-content',
873 'separator' => 'before',
874 ]
875 );
876
877 $this->add_responsive_control(
878 'content_radius',
879 [
880 'label' => esc_html__('Border Radius', 'ultimate-store-kit'),
881 'type' => Controls_Manager::DIMENSIONS,
882 'size_units' => ['px', '%'],
883 'selectors' => [
884 '{{WRAPPER}} .' . $this->get_name() . ' .usk-content' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow: hidden;',
885 ],
886 ]
887 );
888
889 $this->add_responsive_control(
890 'content_padding',
891 [
892 'label' => esc_html__('Padding', 'ultimate-store-kit'),
893 'type' => Controls_Manager::DIMENSIONS,
894 'size_units' => ['px', 'em', '%'],
895 'selectors' => [
896 '{{WRAPPER}} .' . $this->get_name() . ' .usk-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
897 ],
898 ]
899 );
900 $this->end_controls_tab();
901
902 $this->start_controls_tab(
903 'tab_content_hover',
904 [
905 'label' => esc_html__('Hover', 'ultimate-store-kit'),
906 ]
907 );
908 $this->add_group_control(
909 Group_Control_Background::get_type(),
910 [
911 'name' => 'content_hover_background',
912 'label' => esc_html__('Background', 'ultimate-store-kit'),
913 'types' => ['classic', 'gradient'],
914 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-content:hover',
915 ]
916 );
917 $this->add_control(
918 'content_hover_border_color',
919 [
920 'label' => esc_html__('Border Color', 'ultimate-store-kit'),
921 'type' => Controls_Manager::COLOR,
922 'condition' => [
923 'item_border_border!' => '',
924 ],
925 'selectors' => [
926 '{{WRAPPER}} .' . $this->get_name() . ' .usk-content:hover' => 'border-color: {{VALUE}};',
927 ],
928 ]
929 );
930 $this->end_controls_tab();
931
932 $this->end_controls_tabs();
933
934 $this->end_controls_section();
935 }
936
937 protected function register_global_controls_title() {
938 $this->start_controls_section(
939 'section_style_title',
940 [
941 'label' => esc_html__('Title', 'ultimate-store-kit'),
942 'tab' => Controls_Manager::TAB_STYLE,
943 ]
944 );
945
946 $this->add_control(
947 'title_color',
948 [
949 'label' => esc_html__('Color', 'ultimate-store-kit'),
950 'type' => Controls_Manager::COLOR,
951 'selectors' => [
952 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-content .title' => 'color: {{VALUE}}',
953 ],
954 ]
955 );
956
957 $this->add_control(
958 'hover_title_color',
959 [
960 'label' => esc_html__('Hover Color', 'ultimate-store-kit'),
961 'type' => Controls_Manager::COLOR,
962 'selectors' => [
963 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-content .title:hover' => 'color: {{VALUE}};',
964 ],
965 ]
966 );
967
968 $this->add_responsive_control(
969 'title_margin',
970 [
971 'label' => esc_html__('Margin', 'ultimate-store-kit'),
972 'type' => Controls_Manager::DIMENSIONS,
973 'size_units' => ['px', '%'],
974 'selectors' => [
975 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-content .usk-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
976 ],
977 ]
978 );
979
980 $this->add_group_control(
981 Group_Control_Typography::get_type(),
982 [
983 'name' => 'title_typography',
984 'label' => esc_html__('Typography', 'ultimate-store-kit'),
985 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-content .title',
986 ]
987 );
988
989 $this->end_controls_section();
990 }
991
992 protected function register_global_controls_category() {
993 $this->start_controls_section(
994 'section_style_category',
995 [
996 'label' => esc_html__('Category', 'ultimate-store-kit'),
997 'tab' => Controls_Manager::TAB_STYLE,
998 'condition' => [
999 'show_category' => 'yes',
1000 ],
1001 ]
1002 );
1003 $this->start_controls_tabs(
1004 'category_tabs'
1005 );
1006 $this->start_controls_tab(
1007 'category_tab_normal',
1008 [
1009 'label' => esc_html__('Normal', 'ultimate-store-kit'),
1010 ]
1011 );
1012 $this->add_control(
1013 'category_color',
1014 [
1015 'label' => esc_html__('Color', 'ultimate-store-kit'),
1016 'type' => Controls_Manager::COLOR,
1017 'selectors' => [
1018 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a' => 'color: {{VALUE}};',
1019 ],
1020 ]
1021 );
1022 $this->add_group_control(
1023 Group_Control_Background::get_type(),
1024 [
1025 'name' => 'category_bg_color',
1026 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a',
1027 ]
1028 );
1029 $this->add_group_control(
1030 Group_Control_Border::get_type(),
1031 [
1032 'name' => 'category_border',
1033 'label' => __('Border', 'elementor'),
1034 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a',
1035 'separator' => 'before'
1036 ]
1037 );
1038 $this->add_responsive_control(
1039 'category_radius',
1040 [
1041 'label' => esc_html__('Border Radius', 'ultimate-store-kit'),
1042 'type' => Controls_Manager::DIMENSIONS,
1043 'size_units' => ['px', '%', 'em'],
1044 'selectors' => [
1045 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1046 ],
1047 ]
1048 );
1049 $this->add_responsive_control(
1050 'category_padding',
1051 [
1052 'label' => esc_html__('Padding', 'ultimate-store-kit'),
1053 'type' => Controls_Manager::DIMENSIONS,
1054 'size_units' => ['px', '%'],
1055 'selectors' => [
1056 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1057 ],
1058 ]
1059 );
1060 $this->add_responsive_control(
1061 'category_margin',
1062 [
1063 'label' => esc_html__('Margin', 'ultimate-store-kit'),
1064 'type' => Controls_Manager::DIMENSIONS,
1065 'size_units' => ['px', '%'],
1066 'selectors' => [
1067 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid .usk-item .usk-content .usk-category' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1068 ],
1069 ]
1070 );
1071 $this->add_group_control(
1072 Group_Control_Typography::get_type(),
1073 [
1074 'name' => 'category_typography',
1075 'label' => esc_html__('Typography', 'ultimate-store-kit'),
1076 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a',
1077 ]
1078 );
1079 $this->add_group_control(
1080 Group_Control_Box_Shadow::get_type(),
1081 [
1082 'name' => 'category_shadow',
1083 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a',
1084 ]
1085 );
1086 $this->end_controls_tab();
1087 $this->start_controls_tab(
1088 'category_tab_hover',
1089 [
1090 'label' => esc_html__('Hover', 'ultimate-store-kit'),
1091 ]
1092 );
1093 $this->add_control(
1094 'hover_category_color',
1095 [
1096 'label' => esc_html__('Color', 'ultimate-store-kit'),
1097 'type' => Controls_Manager::COLOR,
1098 'selectors' => [
1099 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a:hover' => 'color: {{VALUE}};',
1100 ],
1101 ]
1102 );
1103 $this->add_group_control(
1104 Group_Control_Background::get_type(),
1105 [
1106 'name' => 'hover_category_bg_color',
1107 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a:hover',
1108 ]
1109 );
1110 $this->add_control(
1111 'hover_category_border_color',
1112 [
1113 'label' => esc_html__('Border Color', 'ultimate-store-kit'),
1114 'type' => Controls_Manager::COLOR,
1115 'selectors' => [
1116 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-content .usk-category a:hover' => 'border-color: {{VALUE}};',
1117 ],
1118 'condition' => [
1119 'category_border_border!' => ''
1120 ],
1121 'separator' => 'before'
1122 ]
1123 );
1124 $this->end_controls_tab();
1125 $this->end_controls_tabs();
1126 $this->end_controls_section();
1127 }
1128
1129 protected function register_global_controls_excerpt() {
1130 $this->start_controls_section(
1131 'section_style_excerpt',
1132 [
1133 'label' => esc_html__('Text', 'ultimate-store-kit'),
1134 'tab' => Controls_Manager::TAB_STYLE,
1135 'condition' => [
1136 'show_excerpt' => 'yes',
1137 'layout_style' => 'list'
1138 ]
1139 ]
1140 );
1141
1142 $this->add_control(
1143 'excerpt_color',
1144 [
1145 'label' => esc_html__('Color', 'ultimate-store-kit'),
1146 'type' => Controls_Manager::COLOR,
1147 'selectors' => [
1148 '{{WRAPPER}} .usk-list-layout .usk-item .usk-item-box .usk-content .usk-desc' => 'color: {{VALUE}}',
1149 ],
1150 ]
1151 );
1152
1153 $this->add_responsive_control(
1154 'excerpt_padding',
1155 [
1156 'label' => esc_html__('padding', 'ultimate-store-kit'),
1157 'type' => Controls_Manager::DIMENSIONS,
1158 'size_units' => ['px', '%'],
1159 'selectors' => [
1160 '{{WRAPPER}} .usk-list-layout .usk-item .usk-item-box .usk-content .usk-desc' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1161 ],
1162 ]
1163 );
1164
1165 $this->add_responsive_control(
1166 'excerpt_margin',
1167 [
1168 'label' => esc_html__('Margin', 'ultimate-store-kit'),
1169 'type' => Controls_Manager::DIMENSIONS,
1170 'size_units' => ['px', '%'],
1171 'selectors' => [
1172 '{{WRAPPER}} .usk-list-layout .usk-item .usk-item-box .usk-content .usk-desc' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1173 ],
1174 ]
1175 );
1176 $this->add_group_control(
1177 Group_Control_Typography::get_type(),
1178 [
1179 'name' => 'excerpt_typography',
1180 'label' => esc_html__('Typography', 'ultimate-store-kit'),
1181 'selector' => '{{WRAPPER}} .usk-list-layout .usk-item .usk-item-box .usk-content .usk-desc',
1182 ]
1183 );
1184
1185 $this->end_controls_section();
1186 }
1187 protected function register_global_controls_price() {
1188 $this->start_controls_section(
1189 'section_style_price',
1190 [
1191 'label' => esc_html__('Price', 'ultimate-store-kit'),
1192 'tab' => Controls_Manager::TAB_STYLE,
1193 'condition' => [
1194 'show_price' => 'yes',
1195 ],
1196 ]
1197 );
1198 $this->add_control(
1199 'regular_price_color',
1200 [
1201 'label' => esc_html__('Regular Color', 'ultimate-store-kit'),
1202 'type' => Controls_Manager::COLOR,
1203 'selectors' => [
1204 '{{WRAPPER}} .' . $this->get_name() . ' .usk-price del .woocommerce-Price-amount.amount' => 'color: {{VALUE}};',
1205 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-content .usk-price del' => 'color: {{VALUE}};',
1206 ],
1207
1208 ]
1209 );
1210 $this->add_control(
1211 'sale_price_color',
1212 [
1213 'label' => esc_html__('Sale Color', 'ultimate-store-kit'),
1214 'type' => Controls_Manager::COLOR,
1215 'selectors' => [
1216 '{{WRAPPER}} .' . $this->get_name() . ' .usk-price' => 'color: {{VALUE}}',
1217 '{{WRAPPER}} .' . $this->get_name() . ' .usk-price ins span' => 'color: {{VALUE}}',
1218 '{{WRAPPER}} .' . $this->get_name() . ' .usk-price .woocommerce-Price-amount.amount' => 'color: {{VALUE}}',
1219 '{{WRAPPER}} .' . $this->get_name() . ' .usk-price > .woocommerce-Price-amount.amount bdi' => 'color: {{VALUE}}',
1220 ],
1221 ]
1222 );
1223
1224 $this->add_responsive_control(
1225 'price_margin',
1226 [
1227 'label' => esc_html__('Margin', 'ultimate-store-kit'),
1228 'type' => Controls_Manager::DIMENSIONS,
1229 'size_units' => ['px', '%'],
1230 'selectors' => [
1231 '{{WRAPPER}} .' . $this->get_name() . ' .usk-grid .usk-item .usk-content .usk-price' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1232 ],
1233 ]
1234 );
1235
1236 $this->add_group_control(
1237 Group_Control_Typography::get_type(),
1238 [
1239 'name' => 'sale_price_typography',
1240 'label' => esc_html__('Typography', 'ultimate-store-kit'),
1241 'selector' => '
1242 {{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-content .usk-price',
1243 ]
1244 );
1245
1246 $this->end_controls_section();
1247 }
1248 protected function register_global_controls_rating() {
1249 $this->start_controls_section(
1250 'section_style_rating',
1251 [
1252 'label' => esc_html__('Rating', 'ultimate-store-kit'),
1253 'tab' => Controls_Manager::TAB_STYLE,
1254 'condition' => [
1255 'show_rating' => 'yes',
1256 ],
1257 ]
1258 );
1259 $this->add_control(
1260 'rating_color',
1261 [
1262 'label' => esc_html__('Color', 'ultimate-store-kit'),
1263 'type' => Controls_Manager::COLOR,
1264 'default' => '#e7e7e7',
1265 'selectors' => [
1266 '{{WRAPPER}} .' . $this->get_name() . ' .usk-rating .star-rating::before' => 'color: {{VALUE}};',
1267 ],
1268 ]
1269 );
1270
1271 $this->add_control(
1272 'active_rating_color',
1273 [
1274 'label' => esc_html__('Active Color', 'ultimate-store-kit'),
1275 'type' => Controls_Manager::COLOR,
1276 'default' => '#FFCC00',
1277 'selectors' => [
1278 '{{WRAPPER}} .' . $this->get_name() . ' .usk-rating .star-rating span::before' => 'color: {{VALUE}};',
1279 ],
1280 ]
1281 );
1282
1283 $this->end_controls_section();
1284 }
1285 protected function register_global_controls_action_btn() {
1286 $this->start_controls_section(
1287 'style_action_btn',
1288 [
1289 'label' => esc_html__('Action Button', 'ultimate-store-kit'),
1290 'tab' => Controls_Manager::TAB_STYLE,
1291 ]
1292 );
1293 $this->start_controls_tabs(
1294 'action_btn_tabs'
1295 );
1296 $this->start_controls_tab(
1297 'wishlist_tab',
1298 [
1299 'label' => esc_html__('Wishlist', 'ultimate-store-kit'),
1300 'condition' => [
1301 'show_wishlist' => 'yes'
1302 ]
1303 ]
1304 );
1305 $this->add_control(
1306 'wishlist_normal_color',
1307 [
1308 'label' => esc_html__('Color', 'ultimate-store-kit'),
1309 'type' => Controls_Manager::COLOR,
1310 'selectors' => [
1311 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-wishlist .icon:before' => 'color: {{VALUE}}',
1312 ],
1313 ]
1314 );
1315 $this->add_control(
1316 'wishlist_icon_bg',
1317 [
1318 'label' => esc_html__('Background', 'ultimate-store-kit'),
1319 'type' => Controls_Manager::COLOR,
1320 'selectors' => [
1321 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-wishlist' => 'background: {{VALUE}}',
1322 ],
1323 ]
1324 );
1325 $this->add_control(
1326 'heading_wishlist_hover',
1327 [
1328 'label' => esc_html__('Hover', 'ultimate-store-kit'),
1329 'type' => Controls_Manager::HEADING,
1330 'separator' => 'before',
1331 ]
1332 );
1333 $this->add_control(
1334 'wishlist_hover_color',
1335 [
1336 'label' => esc_html__('Color', 'ultimate-store-kit'),
1337 'type' => Controls_Manager::COLOR,
1338 'selectors' => [
1339 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-wishlist:hover .icon:before' => 'color: {{VALUE}}',
1340 ],
1341 ]
1342 );
1343 $this->add_control(
1344 'wishlist_icon_hover_bg',
1345 [
1346 'label' => esc_html__('Background', 'ultimate-store-kit'),
1347 'type' => Controls_Manager::COLOR,
1348 'selectors' => [
1349 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-wishlist:hover' => 'background: {{VALUE}}',
1350 ],
1351 ]
1352 );
1353 $this->add_control(
1354 'heading_wishlist_active',
1355 [
1356 'label' => esc_html__('Active', 'ultimate-store-kit'),
1357 'type' => Controls_Manager::HEADING,
1358 'separator' => 'before',
1359 ]
1360 );
1361 $this->add_control(
1362 'wishlist_active_color',
1363 [
1364 'label' => esc_html__('Color', 'ultimate-store-kit'),
1365 'type' => Controls_Manager::COLOR,
1366 'selectors' => [
1367 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-wishlist.usk-active .icon::before' => 'color: {{VALUE}}',
1368 ],
1369 ]
1370 );
1371 $this->add_control(
1372 'wishlist_active_bg',
1373 [
1374 'label' => esc_html__('Background', 'ultimate-store-kit'),
1375 'type' => Controls_Manager::COLOR,
1376 'selectors' => [
1377 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-wishlist.usk-active' => 'background: {{VALUE}}',
1378 ],
1379 ]
1380 );
1381 $this->end_controls_tab();
1382 $this->start_controls_tab(
1383 'quickview_tab',
1384 [
1385 'label' => esc_html__('Quickview', 'ultimate-store-kit'),
1386 'condition' => [
1387 'show_quick_view' => 'yes'
1388 ]
1389 ]
1390 );
1391 $this->add_control(
1392 'quickview_color',
1393 [
1394 'label' => esc_html__('Color', 'ultimate-store-kit'),
1395 'type' => Controls_Manager::COLOR,
1396 'selectors' => [
1397 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-quickview .icon:before' => 'color: {{VALUE}}',
1398 ],
1399 ]
1400 );
1401 $this->add_control(
1402 'quickview_icon_bg',
1403 [
1404 'label' => esc_html__('Background', 'ultimate-store-kit'),
1405 'type' => Controls_Manager::COLOR,
1406 'selectors' => [
1407 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-quickview' => 'background: {{VALUE}}',
1408 ],
1409 ]
1410 );
1411 $this->add_control(
1412 'heading_quickview_hover',
1413 [
1414 'label' => esc_html__('Hover', 'ultimate-store-kit'),
1415 'type' => Controls_Manager::HEADING,
1416 'separator' => 'before',
1417 ]
1418 );
1419 $this->add_control(
1420 'quickview_color_hover',
1421 [
1422 'label' => esc_html__('Color', 'ultimate-store-kit'),
1423 'type' => Controls_Manager::COLOR,
1424 'selectors' => [
1425 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-quickview:hover .icon:before' => 'color: {{VALUE}}',
1426 ],
1427 ]
1428 );
1429 $this->add_control(
1430 'quickview_icon_bg_hover',
1431 [
1432 'label' => esc_html__('Background', 'ultimate-store-kit'),
1433 'type' => Controls_Manager::COLOR,
1434 'selectors' => [
1435 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-shoping-icon-quickview:hover' => 'background: {{VALUE}}',
1436 ],
1437 ]
1438 );
1439 $this->end_controls_tab();
1440 if (($this->get_name() !== 'usk-shiny-grid') && ($this->get_name() !== 'usk-shiny-carousel')) {
1441 $this->start_controls_tab(
1442 'add_to_cart_tab',
1443 [
1444 'label' => esc_html__('Cart', 'ultimate-store-kit'),
1445 'condition' => [
1446 'show_cart' => 'yes'
1447 ]
1448 ]
1449 );
1450 $this->add_control(
1451 'cart_color',
1452 [
1453 'label' => esc_html__('Color', 'ultimate-store-kit'),
1454 'type' => Controls_Manager::COLOR,
1455 'selectors' => [
1456 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-cart' => 'color: {{VALUE}}',
1457 ],
1458 ]
1459 );
1460 $this->add_control(
1461 'cart_icon_bg',
1462 [
1463 'label' => esc_html__('Background', 'ultimate-store-kit'),
1464 'type' => Controls_Manager::COLOR,
1465 'selectors' => [
1466 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-cart' => 'background: {{VALUE}}',
1467 ],
1468 ]
1469 );
1470 $this->add_control(
1471 'heading_cart_hover',
1472 [
1473 'label' => esc_html__('Hover', 'ultimate-store-kit'),
1474 'type' => Controls_Manager::HEADING,
1475 'separator' => 'before',
1476 ]
1477 );
1478 $this->add_control(
1479 'cart_color_hover',
1480 [
1481 'label' => esc_html__('Color', 'ultimate-store-kit'),
1482 'type' => Controls_Manager::COLOR,
1483 'selectors' => [
1484 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-cart:hover' => 'color: {{VALUE}}',
1485 ],
1486 ]
1487 );
1488 $this->add_control(
1489 'cart_icon_bg_hover',
1490 [
1491 'label' => esc_html__('Background', 'ultimate-store-kit'),
1492 'type' => Controls_Manager::COLOR,
1493 'selectors' => [
1494 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping .usk-cart:hover' => 'background: {{VALUE}}',
1495 ],
1496 ]
1497 );
1498 }
1499 $this->end_controls_tab();
1500 $this->end_controls_tabs();
1501 $this->add_group_control(
1502 Group_Control_Border::get_type(),
1503 [
1504 'name' => 'action_btn_border',
1505 'label' => esc_html__('Border', 'ultimate-store-kit'),
1506 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping a',
1507 'separator' => 'before'
1508 ]
1509 );
1510 $this->add_responsive_control(
1511 'action_btn_radius',
1512 [
1513 'label' => esc_html__('Radius', 'ultimate-store-kit'),
1514 'type' => Controls_Manager::DIMENSIONS,
1515 'size_units' => ['px', '%', 'em'],
1516 'selectors' => [
1517 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1518 ],
1519 ]
1520 );
1521 $this->add_responsive_control(
1522 'action_btn_padding',
1523 [
1524 'label' => esc_html__('Padding', 'ultimate-store-kit'),
1525 'type' => Controls_Manager::DIMENSIONS,
1526 'size_units' => ['px', '%', 'em'],
1527 'selectors' => [
1528 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1529 ],
1530 ]
1531 );
1532 $this->add_responsive_control(
1533 'action_btn_margin',
1534 [
1535 'label' => esc_html__('Margin', 'ultimate-store-kit'),
1536 'type' => Controls_Manager::DIMENSIONS,
1537 'size_units' => ['px', '%', 'em'],
1538 'selectors' => [
1539 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping a' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1540 ],
1541 ]
1542 );
1543 $this->add_responsive_control(
1544 'action_btn_size',
1545 [
1546 'label' => __('Button Size', 'ultimate-store-kit'),
1547 'type' => Controls_Manager::SLIDER,
1548 'size_units' => ['px'],
1549 'range' => [
1550 'px' => [
1551 'min' => 0,
1552 'max' => 50,
1553 'step' => 1,
1554 ]
1555 ],
1556 'selectors' => [
1557 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-item-box .usk-shoping a .icon' => 'width: {{SIZE}}{{UNIT}}; height:{{SIZE}}{{UNIT}}; line-height: {{SIZE}}{{UNIT}}; text-align:center;',
1558 ],
1559 ]
1560 );
1561 $this->add_control(
1562 'font_family',
1563 [
1564 'label' => esc_html__('Tooltip Font', 'font family'),
1565 'type' => Controls_Manager::FONT,
1566 'default' => "'Open Sans', sans-serif",
1567 'selectors' => [
1568 '{{WRAPPER}} .usk-item .usk-item-box .usk-shoping a' => 'font-family: {{VALUE}}',
1569 ],
1570 ]
1571 );
1572 $this->end_controls_section();
1573 }
1574 protected function register_global_controls_grid_pagination() {
1575 $this->start_controls_section(
1576 'section_style_pagination',
1577 [
1578 'label' => esc_html__('Pagination', 'ultimate-store-kit'),
1579 'tab' => Controls_Manager::TAB_STYLE,
1580 'condition' => [
1581 'show_pagination' => 'yes',
1582 ],
1583 ]
1584 );
1585 $this->start_controls_tabs(
1586 'pagination_normal'
1587 );
1588 $this->start_controls_tab(
1589 'pagination_tab_normal',
1590 [
1591 'label' => esc_html__('Normal', 'ultimate-store-kit'),
1592 ]
1593 );
1594 $this->add_control(
1595 'pagination_color',
1596 [
1597 'label' => esc_html__('Color', 'ultimate-store-kit'),
1598 'type' => Controls_Manager::COLOR,
1599 'selectors' => [
1600 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li:not(.usk-active) a' => 'color: {{VALUE}};',
1601 ],
1602 ]
1603 );
1604 $this->add_control(
1605 'pagination_background',
1606 [
1607 'label' => esc_html__('Background', 'ultimate-store-kit'),
1608 'type' => Controls_Manager::COLOR,
1609 'selectors' => [
1610 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li:not(.usk-active) a' => 'background-color: {{VALUE}};',
1611 ],
1612 ]
1613 );
1614 $this->add_group_control(
1615 Group_Control_Border::get_type(),
1616 [
1617 'name' => 'pagination_border',
1618 'label' => esc_html__('Border', 'ultimate-store-kit'),
1619 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li:not(.usk-active) a',
1620 'separator' => 'before'
1621 ]
1622 );
1623 $this->add_control(
1624 'pagination_alignment',
1625 [
1626 'label' => esc_html__('Alignment', 'ultimate-store-kit'),
1627 'type' => Controls_Manager::CHOOSE,
1628 'options' => [
1629 'flex-start' => [
1630 'title' => esc_html__('Left', 'ultimate-store-kit'),
1631 'icon' => 'eicon-h-align-left',
1632 ],
1633 'center' => [
1634 'title' => esc_html__('Center', 'ultimate-store-kit'),
1635 'icon' => 'eicon-h-align-center',
1636 ],
1637 'flex-end' => [
1638 'title' => esc_html__('Right', 'ultimate-store-kit'),
1639 'icon' => 'eicon-h-align-right',
1640 ],
1641 ],
1642 'default' => 'flex-start',
1643 'toggle' => false,
1644 'selectors' => [
1645 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination' => 'justify-content: {{VALUE}};',
1646 ],
1647 'separator' => 'before',
1648 ]
1649 );
1650 $this->add_responsive_control(
1651 'pagination_padding',
1652 [
1653 'label' => __('Padding', 'ultimate-store-kit'),
1654 'type' => Controls_Manager::DIMENSIONS,
1655 'size_units' => ['px', '%', 'em'],
1656 'selectors' => [
1657 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1658 ],
1659 ]
1660 );
1661 $this->add_responsive_control(
1662 'pagination_radius',
1663 [
1664 'label' => __('Border Radius', 'ultimate-store-kit'),
1665 'type' => Controls_Manager::DIMENSIONS,
1666 'size_units' => ['px', '%', 'em'],
1667 'selectors' => [
1668 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1669 ],
1670 ]
1671 );
1672 $this->add_responsive_control(
1673 'pagination_spacing_top',
1674 [
1675 'label' => esc_html__('Top Spacing', 'ultimate-store-kit'),
1676 'type' => Controls_Manager::SLIDER,
1677 'selectors' => [
1678 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination' => 'margin-top: {{SIZE}}px;',
1679 ],
1680 ]
1681 );
1682 $this->add_responsive_control(
1683 'pagination_spacing',
1684 [
1685 'label' => esc_html__('Space Between', 'ultimate-store-kit'),
1686 'type' => Controls_Manager::SLIDER,
1687 'default' => [
1688 'unit' => 'px',
1689 'size' => 5,
1690 ],
1691 'selectors' => [
1692 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li' => 'margin-right: {{SIZE}}{{UNIT}};',
1693 ],
1694 ]
1695 );
1696
1697 $this->add_group_control(
1698 Group_Control_Typography::get_type(),
1699 [
1700 'name' => 'pagination_typography',
1701 'label' => esc_html__('Typography', 'ultimate-store-kit'),
1702 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li a, {{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li a li span',
1703 // 'exclude' => ['letter_spacing', 'text_decoration', 'text_transform', 'font_size', 'line_height'],
1704 ]
1705 );
1706
1707 $this->end_controls_tab();
1708 $this->start_controls_tab(
1709 'pagination_tab_hover',
1710 [
1711 'label' => esc_html__('Hover', 'ultimate-store-kit'),
1712 ]
1713 );
1714 $this->add_control(
1715 'hover_pagination_color',
1716 [
1717 'label' => esc_html__('Color', 'ultimate-store-kit'),
1718 'type' => Controls_Manager::COLOR,
1719 'selectors' => [
1720 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li a:hover' => 'color: {{VALUE}};',
1721 ],
1722 ]
1723 );
1724 $this->add_control(
1725 'hover_pagination_background',
1726 [
1727 'label' => esc_html__('Background', 'ultimate-store-kit'),
1728 'type' => Controls_Manager::COLOR,
1729 'selectors' => [
1730 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li a:hover' => 'background:{{VALUE}};',
1731 ],
1732 ]
1733 );
1734 $this->add_control(
1735 'hover_pagination_border_color',
1736 [
1737 'label' => esc_html__('Border Color', 'ultimate-store-kit'),
1738 'type' => Controls_Manager::COLOR,
1739 'selectors' => [
1740 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li a:hover' => 'border-color:{{VALUE}};',
1741 ],
1742 // 'condition' => [
1743 // 'pagination_border!' => ' '
1744 // ]
1745 ]
1746 );
1747
1748 $this->end_controls_tab();
1749 $this->start_controls_tab(
1750 'pagination_tab_active',
1751 [
1752 'label' => esc_html__('Active', 'ultimate-store-kit'),
1753 ]
1754 );
1755 $this->add_control(
1756 'active_pagination_color',
1757 [
1758 'label' => esc_html__('Color', 'ultimate-store-kit'),
1759 'type' => Controls_Manager::COLOR,
1760 'selectors' => [
1761 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li.usk-active a' => 'color: {{VALUE}};',
1762 ],
1763 ]
1764 );
1765 $this->add_control(
1766 'active_pagination_background',
1767 [
1768 'label' => esc_html__('Background', 'ultimate-store-kit'),
1769 'type' => Controls_Manager::COLOR,
1770 'selectors' => [
1771 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li.usk-active a' => 'background:{{VALUE}};',
1772 ],
1773 ]
1774 );
1775 $this->add_control(
1776 'active_pagination_border_color',
1777 [
1778 'label' => esc_html__('Color', 'ultimate-store-kit'),
1779 'type' => Controls_Manager::COLOR,
1780 'selectors' => [
1781 '{{WRAPPER}} .' . $this->get_name() . ' .usk-pagination li.usk-active a' => 'border-color: {{VALUE}};',
1782 ],
1783 // 'condition' => [
1784 // 'pagination_border!' => ''
1785 // ]
1786 ]
1787 );
1788 $this->end_controls_tab();
1789 $this->end_controls_tabs();
1790 $this->end_controls_section();
1791 }
1792
1793 //Badge Controls
1794 protected function register_global_controls_badge() {
1795 $this->start_controls_section(
1796 'badge',
1797 [
1798 'label' => esc_html__('Badge', 'ultimate-store-kit'),
1799 'tab' => Controls_Manager::TAB_STYLE,
1800 ]
1801 );
1802 $this->start_controls_tabs(
1803 'label_badge_tabs'
1804 );
1805 $this->start_controls_tab(
1806 'sale_badge_tab',
1807 [
1808 'label' => esc_html__('Sale', 'ultimate-store-kit'),
1809 'condition' => [
1810 'show_sale_badge' => 'yes',
1811 ]
1812 ]
1813 );
1814 $this->add_control(
1815 'sale_badge_color',
1816 [
1817 'label' => esc_html__('Color', 'ultimate-store-kit'),
1818 'type' => Controls_Manager::COLOR,
1819 'selectors' => [
1820 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-sale-badge .usk-badge' => 'color: {{VALUE}}',
1821 ],
1822 'condition' => [
1823 'show_sale_badge' => 'yes',
1824 ]
1825 ]
1826 );
1827
1828 $this->add_group_control(
1829 Group_Control_Background::get_type(),
1830 [
1831 'name' => 'sale_badge_bg',
1832 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-sale-badge .usk-badge',
1833 ]
1834 );
1835 $this->end_controls_tab();
1836 $this->start_controls_tab(
1837 'discount_badge_tab',
1838 [
1839 'label' => esc_html__('Discount', 'ultimate-store-kit'),
1840 'condition' => [
1841 'show_discount_badge' => 'yes',
1842 ],
1843 ]
1844 );
1845 $this->add_control(
1846 'discount_badge_color',
1847 [
1848 'label' => esc_html__('Color', 'ultimate-store-kit'),
1849 'type' => Controls_Manager::COLOR,
1850 'selectors' => [
1851 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-percantage-badge .usk-badge' => 'color: {{VALUE}}',
1852 ],
1853 'condition' => [
1854 'show_discount_badge' => 'yes',
1855 ],
1856 ]
1857 );
1858
1859 $this->add_group_control(
1860 Group_Control_Background::get_type(),
1861 [
1862 'name' => 'discount_badge_bg',
1863 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-percantage-badge .usk-badge',
1864 ]
1865 );
1866 $this->end_controls_tab();
1867 $this->start_controls_tab(
1868 'stock_badge_tab',
1869 [
1870 'label' => esc_html__('Stock', 'ultimate-store-kit'),
1871 'condition' => [
1872 'show_stock_status' => 'yes',
1873 ],
1874 ]
1875 );
1876 $this->add_control(
1877 'stock_badge_color',
1878 [
1879 'label' => esc_html__('Color', 'ultimate-store-kit'),
1880 'type' => Controls_Manager::COLOR,
1881 'selectors' => [
1882 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-stock-status-badge .usk-badge' => 'color: {{VALUE}}',
1883 ],
1884 'condition' => [
1885 'show_stock_status' => 'yes',
1886 ],
1887 ]
1888 );
1889 $this->add_group_control(
1890 Group_Control_Background::get_type(),
1891 [
1892 'name' => 'stock_badge_bg',
1893 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-stock-status-badge .usk-badge',
1894 ]
1895 );
1896 $this->end_controls_tab();
1897 $this->start_controls_tab(
1898 'trending_badge_tab',
1899 [
1900 'label' => esc_html__('Trending', 'ultimate-store-kit'),
1901 'condition' => [
1902 'show_trending_badge' => 'yes',
1903 ],
1904 ]
1905 );
1906 $this->add_control(
1907 'trending_badge_color',
1908 [
1909 'label' => esc_html__('Color', 'ultimate-store-kit'),
1910 'type' => Controls_Manager::COLOR,
1911 'selectors' => [
1912 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-trending-badge .usk-badge' => 'color: {{VALUE}}',
1913 ],
1914 ]
1915 );
1916 $this->add_group_control(
1917 Group_Control_Background::get_type(),
1918 [
1919 'name' => 'trending_badge_bg',
1920 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-trending-badge .usk-badge',
1921 ]
1922 );
1923 $this->end_controls_tab();
1924 $this->start_controls_tab(
1925 'new_badge_tab',
1926 [
1927 'label' => esc_html__('new', 'ultimate-store-kit'),
1928 'condition' => [
1929 'show_new_badge' => 'yes',
1930 ],
1931 ]
1932 );
1933 $this->add_control(
1934 'new_badge_color',
1935 [
1936 'label' => esc_html__('Color', 'ultimate-store-kit'),
1937 'type' => Controls_Manager::COLOR,
1938 'selectors' => [
1939 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-new-badge .usk-badge' => 'color: {{VALUE}}',
1940 ],
1941 ]
1942 );
1943
1944 $this->add_group_control(
1945 Group_Control_Background::get_type(),
1946 [
1947 'name' => 'new_badge_bg',
1948 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-new-badge .usk-badge',
1949 ]
1950 );
1951 $this->end_controls_tab();
1952 $this->end_controls_tabs();
1953 $this->add_group_control(
1954 Group_Control_Border::get_type(),
1955 [
1956 'name' => 'badge_border',
1957 'label' => esc_html__('Border', 'ultimate-store-kit'),
1958 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-badge',
1959 'separator' => 'before'
1960 ]
1961 );
1962 $this->add_responsive_control(
1963 'badge_radius',
1964 [
1965 'label' => esc_html__('Border Radius', 'ultimate-store-kit'),
1966 'type' => Controls_Manager::DIMENSIONS,
1967 'size_units' => ['px', '%', 'em'],
1968 'selectors' => [
1969 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-badge' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1970 ],
1971 ]
1972 );
1973 $this->add_responsive_control(
1974 'badge_padding',
1975 [
1976 'label' => esc_html__('Padding', 'ultimate-store-kit'),
1977 'type' => Controls_Manager::DIMENSIONS,
1978 'size_units' => ['px', '%', 'em'],
1979 'selectors' => [
1980 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-badge' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1981 ],
1982 ]
1983 );
1984 $this->add_responsive_control(
1985 'badge_margin',
1986 [
1987 'label' => esc_html__('Margin', 'ultimate-store-kit'),
1988 'type' => Controls_Manager::DIMENSIONS,
1989 'size_units' => ['px', '%', 'em'],
1990 'selectors' => [
1991 '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-badge' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1992 ],
1993 ]
1994 );
1995 $this->add_group_control(
1996 Group_Control_Typography::get_type(),
1997 [
1998 'name' => 'badge_typography',
1999 'label' => esc_html__('Typography', 'ultimate-store-kit'),
2000 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-item .usk-badge-label-wrapper .usk-badge',
2001 ]
2002 );
2003 $this->end_controls_section();
2004 }
2005 protected function register_global_controls_carousel_navigation() {
2006 $this->start_controls_section(
2007 'section_content_navigation',
2008 [
2009 'label' => __('Navigation', 'ultimate-store-kit'),
2010 ]
2011 );
2012
2013 $this->add_control(
2014 'navigation',
2015 [
2016 'label' => __('Navigation', 'ultimate-store-kit'),
2017 'type' => Controls_Manager::SELECT,
2018 'default' => 'arrows',
2019 'options' => [
2020 'both' => esc_html__('Arrows and Dots', 'ultimate-store-kit'),
2021 'arrows-fraction' => esc_html__('Arrows and Fraction', 'ultimate-store-kit'),
2022 'arrows' => esc_html__('Arrows', 'ultimate-store-kit'),
2023 'dots' => esc_html__('Dots', 'ultimate-store-kit'),
2024 'progressbar' => esc_html__('Progress', 'ultimate-store-kit'),
2025 'none' => esc_html__('None', 'ultimate-store-kit'),
2026 ],
2027 'prefix_class' => 'usk-navigation-type-',
2028 'render_type' => 'template',
2029 ]
2030 );
2031
2032 $this->add_control(
2033 'both_position',
2034 [
2035 'label' => __('Arrows and Dots Position', 'ultimate-store-kit'),
2036 'type' => Controls_Manager::SELECT,
2037 'default' => 'center',
2038 'options' => ultimate_store_kit_navigation_position(),
2039 'condition' => [
2040 'navigation' => 'both',
2041 ],
2042 ]
2043 );
2044
2045 $this->add_control(
2046 'arrows_fraction_position',
2047 [
2048 'label' => __('Arrows and Fraction Position', 'ultimate-store-kit'),
2049 'type' => Controls_Manager::SELECT,
2050 'default' => 'center',
2051 'options' => ultimate_store_kit_navigation_position(),
2052 'condition' => [
2053 'navigation' => 'arrows-fraction',
2054 ],
2055 ]
2056 );
2057
2058 $this->add_control(
2059 'arrows_position',
2060 [
2061 'label' => __('Arrows Position', 'ultimate-store-kit'),
2062 'type' => Controls_Manager::SELECT,
2063 'default' => 'center',
2064 'options' => ultimate_store_kit_navigation_position(),
2065 'condition' => [
2066 'navigation' => 'arrows',
2067 ],
2068 ]
2069 );
2070
2071 $this->add_control(
2072 'dots_position',
2073 [
2074 'label' => __('Dots Position', 'ultimate-store-kit'),
2075 'type' => Controls_Manager::SELECT,
2076 'default' => 'bottom-center',
2077 'options' => ultimate_store_kit_pagination_position(),
2078 'condition' => [
2079 'navigation' => 'dots',
2080 ],
2081
2082 ]
2083 );
2084
2085 $this->add_control(
2086 'progress_position',
2087 [
2088 'label' => __('Progress Position', 'ultimate-store-kit'),
2089 'type' => Controls_Manager::SELECT,
2090 'default' => 'bottom',
2091 'options' => [
2092 'bottom' => esc_html__('Bottom', 'ultimate-store-kit'),
2093 'top' => esc_html__('Top', 'ultimate-store-kit'),
2094 ],
2095 'condition' => [
2096 'navigation' => 'progressbar',
2097 ],
2098 ]
2099 );
2100
2101 $this->add_control(
2102 'dynamic_bullets',
2103 [
2104 'label' => __('Dynamic Bullets?', 'ultimate-store-kit'),
2105 'type' => Controls_Manager::SWITCHER,
2106 'condition' => [
2107 'navigation' => ['dots', 'both'],
2108 ],
2109 ]
2110 );
2111
2112 $this->add_control(
2113 'show_scrollbar',
2114 [
2115 'label' => __('Show Scrollbar?', 'ultimate-store-kit'),
2116 'type' => Controls_Manager::SWITCHER,
2117 ]
2118 );
2119
2120 $this->add_control(
2121 'nav_arrows_icon',
2122 [
2123 'label' => esc_html__('Arrows Icon', 'ultimate-store-kit'),
2124 'type' => Controls_Manager::SELECT,
2125 'default' => '5',
2126 'options' => [
2127 '1' => esc_html__('Style 1', 'ultimate-store-kit'),
2128 '2' => esc_html__('Style 2', 'ultimate-store-kit'),
2129 '3' => esc_html__('Style 3', 'ultimate-store-kit'),
2130 '4' => esc_html__('Style 4', 'ultimate-store-kit'),
2131 '5' => esc_html__('Style 5', 'ultimate-store-kit'),
2132 '6' => esc_html__('Style 6', 'ultimate-store-kit'),
2133 '7' => esc_html__('Style 7', 'ultimate-store-kit'),
2134 '8' => esc_html__('Style 8', 'ultimate-store-kit'),
2135 '9' => esc_html__('Style 9', 'ultimate-store-kit'),
2136 '10' => esc_html__('Style 10', 'ultimate-store-kit'),
2137 '11' => esc_html__('Style 11', 'ultimate-store-kit'),
2138 '12' => esc_html__('Style 12', 'ultimate-store-kit'),
2139 '13' => esc_html__('Style 13', 'ultimate-store-kit'),
2140 '14' => esc_html__('Style 14', 'ultimate-store-kit'),
2141 '15' => esc_html__('Style 15', 'ultimate-store-kit'),
2142 '16' => esc_html__('Style 16', 'ultimate-store-kit'),
2143 '17' => esc_html__('Style 17', 'ultimate-store-kit'),
2144 '18' => esc_html__('Style 18', 'ultimate-store-kit'),
2145 'circle-1' => esc_html__('Style 19', 'ultimate-store-kit'),
2146 'circle-2' => esc_html__('Style 20', 'ultimate-store-kit'),
2147 'circle-3' => esc_html__('Style 21', 'ultimate-store-kit'),
2148 'circle-4' => esc_html__('Style 22', 'ultimate-store-kit'),
2149 'square-1' => esc_html__('Style 23', 'ultimate-store-kit'),
2150 ],
2151 'condition' => [
2152 'navigation' => ['arrows-fraction', 'both', 'arrows'],
2153 ],
2154 ]
2155 );
2156
2157 $this->add_control(
2158 'hide_arrow_on_mobile',
2159 [
2160 'label' => __('Hide Arrows on Mobile', 'ultimate-store-kit'),
2161 'type' => Controls_Manager::SWITCHER,
2162 'default' => 'yes',
2163 'condition' => [
2164 'navigation' => ['arrows-fraction', 'arrows', 'both'],
2165 ],
2166 ]
2167 );
2168
2169 $this->end_controls_section();
2170 }
2171 protected function register_global_controls_navigation_style() {
2172 $this->start_controls_section(
2173 'section_style_navigation',
2174 [
2175 'label' => __('Navigation', 'ultimate-store-kit'),
2176 'tab' => Controls_Manager::TAB_STYLE,
2177 'conditions' => [
2178 'relation' => 'or',
2179 'terms' => [
2180 [
2181 'name' => 'navigation',
2182 'operator' => '!=',
2183 'value' => 'none',
2184 ],
2185 [
2186 'name' => 'show_scrollbar',
2187 'value' => 'yes',
2188 ],
2189 ],
2190 ],
2191 ]
2192 );
2193
2194 $this->add_control(
2195 'arrows_heading',
2196 [
2197 'label' => __('Arrows', 'ultimate-store-kit'),
2198 'type' => Controls_Manager::HEADING,
2199 'condition' => [
2200 'navigation!' => ['dots', 'progressbar', 'none'],
2201 ],
2202 ]
2203 );
2204
2205 $this->start_controls_tabs('tabs_navigation_arrows_style');
2206
2207 $this->start_controls_tab(
2208 'tabs_nav_arrows_normal',
2209 [
2210 'label' => __('Normal', 'ultimate-store-kit'),
2211 'condition' => [
2212 'navigation!' => ['dots', 'progressbar', 'none'],
2213 ],
2214 ]
2215 );
2216
2217 $this->add_control(
2218 'arrows_color',
2219 [
2220 'label' => __('Color', 'ultimate-store-kit'),
2221 'type' => Controls_Manager::COLOR,
2222 'selectors' => [
2223 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev i, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next i' => 'color: {{VALUE}}',
2224 ],
2225 'condition' => [
2226 'navigation!' => ['dots', 'progressbar', 'none'],
2227 ],
2228 ]
2229 );
2230
2231 $this->add_control(
2232 'arrows_background',
2233 [
2234 'label' => __('Background', 'ultimate-store-kit'),
2235 'type' => Controls_Manager::COLOR,
2236 'selectors' => [
2237 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next' => 'background-color: {{VALUE}}',
2238 ],
2239 'condition' => [
2240 'navigation!' => ['dots', 'progressbar', 'none'],
2241 ],
2242 ]
2243 );
2244
2245 $this->add_group_control(
2246 Group_Control_Border::get_type(),
2247 [
2248 'name' => 'nav_arrows_border',
2249 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next',
2250 'condition' => [
2251 'navigation!' => ['dots', 'progressbar', 'none'],
2252 ],
2253 ]
2254 );
2255
2256 $this->add_responsive_control(
2257 'border_radius',
2258 [
2259 'label' => __('Border Radius', 'ultimate-store-kit'),
2260 'type' => Controls_Manager::DIMENSIONS,
2261 'size_units' => ['px', '%'],
2262 'selectors' => [
2263 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2264 ],
2265 'condition' => [
2266 'navigation!' => ['dots', 'progressbar', 'none'],
2267 ],
2268 ]
2269 );
2270
2271 $this->add_responsive_control(
2272 'arrows_padding',
2273 [
2274 'label' => esc_html__('Padding', 'ultimate-store-kit'),
2275 'type' => Controls_Manager::DIMENSIONS,
2276 'size_units' => ['px', 'em', '%'],
2277 'selectors' => [
2278 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2279 ],
2280 'condition' => [
2281 'navigation!' => ['dots', 'progressbar', 'none'],
2282 ],
2283 ]
2284 );
2285
2286 $this->add_responsive_control(
2287 'arrows_size',
2288 [
2289 'label' => __('Size', 'ultimate-store-kit'),
2290 'type' => Controls_Manager::SLIDER,
2291 'range' => [
2292 'px' => [
2293 'min' => 10,
2294 'max' => 100,
2295 ],
2296 ],
2297 'selectors' => [
2298 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev i,
2299 {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next i' => 'font-size: {{SIZE || 24}}{{UNIT}};',
2300 ],
2301 'condition' => [
2302 'navigation!' => ['dots', 'progressbar', 'none'],
2303 ],
2304 ]
2305 );
2306
2307 $this->add_responsive_control(
2308 'arrows_space',
2309 [
2310 'label' => __('Space Between Arrows', 'ultimate-store-kit'),
2311 'type' => Controls_Manager::SLIDER,
2312 'range' => [
2313 'px' => [
2314 'min' => 0,
2315 'max' => 100,
2316 ],
2317 ],
2318 'selectors' => [
2319 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev' => 'margin-right: {{SIZE}}px;',
2320 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next' => 'margin-left: {{SIZE}}px;',
2321 ],
2322 'condition' => [
2323 'navigation!' => ['dots', 'progressbar', 'none'],
2324 ],
2325 ]
2326 );
2327
2328 $this->end_controls_tab();
2329
2330 $this->start_controls_tab(
2331 'tabs_nav_arrows_hover',
2332 [
2333 'label' => __('Hover', 'ultimate-store-kit'),
2334 'condition' => [
2335 'navigation!' => ['dots', 'progressbar', 'none'],
2336 ],
2337 ]
2338 );
2339
2340 $this->add_control(
2341 'arrows_hover_color',
2342 [
2343 'label' => __('Color', 'ultimate-store-kit'),
2344 'type' => Controls_Manager::COLOR,
2345 'selectors' => [
2346 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev:hover i, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next:hover i' => 'color: {{VALUE}}',
2347 ],
2348 'condition' => [
2349 'navigation!' => ['dots', 'progressbar', 'none'],
2350 ],
2351 ]
2352 );
2353
2354 $this->add_control(
2355 'arrows_hover_background',
2356 [
2357 'label' => __('Background', 'ultimate-store-kit'),
2358 'type' => Controls_Manager::COLOR,
2359 'selectors' => [
2360 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev:hover, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next:hover' => 'background-color: {{VALUE}}',
2361 ],
2362 'condition' => [
2363 'navigation!' => ['dots', 'progressbar', 'none'],
2364 ],
2365 ]
2366 );
2367
2368 $this->add_control(
2369 'nav_arrows_hover_border_color',
2370 [
2371 'label' => __('Border Color', 'ultimate-store-kit'),
2372 'type' => Controls_Manager::COLOR,
2373 'selectors' => [
2374 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev:hover, {{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next:hover' => 'border-color: {{VALUE}};',
2375 ],
2376 'condition' => [
2377 'nav_arrows_border_border!' => '',
2378 'navigation!' => ['dots', 'progressbar', 'none'],
2379 ],
2380 ]
2381 );
2382
2383 $this->end_controls_tab();
2384
2385 $this->end_controls_tabs();
2386
2387 $this->add_control(
2388 'hr_1',
2389 [
2390 'type' => Controls_Manager::DIVIDER,
2391 'condition' => [
2392 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2393 ],
2394 ]
2395 );
2396
2397 $this->add_control(
2398 'dots_heading',
2399 [
2400 'label' => __('Dots', 'ultimate-store-kit'),
2401 'type' => Controls_Manager::HEADING,
2402 'condition' => [
2403 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2404 ],
2405 ]
2406 );
2407
2408 $this->add_control(
2409 'hr_11',
2410 [
2411 'type' => Controls_Manager::DIVIDER,
2412 'condition' => [
2413 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2414 ],
2415 ]
2416 );
2417
2418 $this->add_control(
2419 'dots_color',
2420 [
2421 'label' => __('Color', 'ultimate-store-kit'),
2422 'type' => Controls_Manager::COLOR,
2423 'selectors' => [
2424 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-bullet' => 'background-color: {{VALUE}}',
2425 ],
2426 'condition' => [
2427 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2428 ],
2429 ]
2430 );
2431
2432 $this->add_control(
2433 'active_dot_color',
2434 [
2435 'label' => __('Active Color', 'ultimate-store-kit'),
2436 'type' => Controls_Manager::COLOR,
2437 'selectors' => [
2438 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-bullet-active' => 'background-color: {{VALUE}}',
2439 ],
2440 'condition' => [
2441 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2442 ],
2443 ]
2444 );
2445
2446 $this->add_responsive_control(
2447 'dots_border_radius',
2448 [
2449 'label' => esc_html__('Border Radius', 'ultimate-store-kit'),
2450 'type' => Controls_Manager::DIMENSIONS,
2451 'size_units' => ['px', '%'],
2452 'selectors' => [
2453 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-bullet' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2454 ],
2455 'condition' => [
2456 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2457 ],
2458 ]
2459 );
2460
2461 $this->add_responsive_control(
2462 'dots_width_size',
2463 [
2464 'label' => __('Width(px)', 'ultimate-store-kit'),
2465 'type' => Controls_Manager::SLIDER,
2466 'range' => [
2467 'px' => [
2468 'min' => 5,
2469 'max' => 50,
2470 ],
2471 ],
2472 'selectors' => [
2473 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-bullet' => 'width: {{SIZE}}{{UNIT}};',
2474 ],
2475 'condition' => [
2476 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2477 ],
2478 ]
2479 );
2480
2481 $this->add_responsive_control(
2482 'dots_height_size',
2483 [
2484 'label' => __('Height(px)', 'ultimate-store-kit'),
2485 'type' => Controls_Manager::SLIDER,
2486 'range' => [
2487 'px' => [
2488 'min' => 5,
2489 'max' => 50,
2490 ],
2491 ],
2492 'selectors' => [
2493 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-bullet' => 'height: {{SIZE}}{{UNIT}};',
2494 ],
2495 'condition' => [
2496 'navigation!' => ['arrows', 'arrows-fraction', 'progressbar', 'none'],
2497 ],
2498 ]
2499 );
2500
2501 $this->add_control(
2502 'hr_22',
2503 [
2504 'type' => Controls_Manager::DIVIDER,
2505 'condition' => [
2506 'navigation' => 'arrows-fraction',
2507 ],
2508 ]
2509 );
2510
2511 $this->add_control(
2512 'fraction_heading',
2513 [
2514 'label' => __('Fraction', 'ultimate-store-kit'),
2515 'type' => Controls_Manager::HEADING,
2516 'condition' => [
2517 'navigation' => 'arrows-fraction',
2518 ],
2519 ]
2520 );
2521
2522 $this->add_control(
2523 'hr_12',
2524 [
2525 'type' => Controls_Manager::DIVIDER,
2526 'condition' => [
2527 'navigation' => 'arrows-fraction',
2528 ],
2529 ]
2530 );
2531
2532 $this->add_control(
2533 'fraction_color',
2534 [
2535 'label' => __('Color', 'ultimate-store-kit'),
2536 'type' => Controls_Manager::COLOR,
2537 'selectors' => [
2538 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-fraction' => 'color: {{VALUE}}',
2539 ],
2540 'condition' => [
2541 'navigation' => 'arrows-fraction',
2542 ],
2543 ]
2544 );
2545
2546 $this->add_control(
2547 'active_fraction_color',
2548 [
2549 'label' => __('Active Color', 'ultimate-store-kit'),
2550 'type' => Controls_Manager::COLOR,
2551 'selectors' => [
2552 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-current' => 'color: {{VALUE}}',
2553 ],
2554 'condition' => [
2555 'navigation' => 'arrows-fraction',
2556 ],
2557 ]
2558 );
2559
2560 $this->add_group_control(
2561 Group_Control_Typography::get_type(),
2562 [
2563 'name' => 'fraction_typography',
2564 'label' => esc_html__('Typography', 'ultimate-store-kit'),
2565 'selector' => '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-fraction',
2566 'condition' => [
2567 'navigation' => 'arrows-fraction',
2568 ],
2569 ]
2570 );
2571
2572 $this->add_control(
2573 'hr_3',
2574 [
2575 'type' => Controls_Manager::DIVIDER,
2576 'condition' => [
2577 'navigation' => 'progressbar',
2578 ],
2579 ]
2580 );
2581
2582 $this->add_control(
2583 'progresbar_heading',
2584 [
2585 'label' => __('Progresbar', 'ultimate-store-kit'),
2586 'type' => Controls_Manager::HEADING,
2587 'condition' => [
2588 'navigation' => 'progressbar',
2589 ],
2590 ]
2591 );
2592
2593 $this->add_control(
2594 'hr_13',
2595 [
2596 'type' => Controls_Manager::DIVIDER,
2597 'condition' => [
2598 'navigation' => 'progressbar',
2599 ],
2600 ]
2601 );
2602
2603 $this->add_control(
2604 'progresbar_color',
2605 [
2606 'label' => __('Bar Color', 'ultimate-store-kit'),
2607 'type' => Controls_Manager::COLOR,
2608 'selectors' => [
2609 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-progressbar' => 'background-color: {{VALUE}}',
2610 ],
2611 'condition' => [
2612 'navigation' => 'progressbar',
2613 ],
2614 ]
2615 );
2616
2617 $this->add_control(
2618 'progres_color',
2619 [
2620 'label' => __('Progress Color', 'ultimate-store-kit'),
2621 'type' => Controls_Manager::COLOR,
2622 'separator' => 'after',
2623 'selectors' => [
2624 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-progressbar .swiper-pagination-progressbar-fill' => 'background: {{VALUE}}',
2625 ],
2626 'condition' => [
2627 'navigation' => 'progressbar',
2628 ],
2629 ]
2630 );
2631
2632 $this->add_control(
2633 'hr_4',
2634 [
2635 'type' => Controls_Manager::DIVIDER,
2636 'condition' => [
2637 'show_scrollbar' => 'yes'
2638 ],
2639 ]
2640 );
2641
2642 $this->add_control(
2643 'scrollbar_heading',
2644 [
2645 'label' => __('Scrollbar', 'ultimate-store-kit'),
2646 'type' => Controls_Manager::HEADING,
2647 'condition' => [
2648 'show_scrollbar' => 'yes'
2649 ],
2650 ]
2651 );
2652
2653 $this->add_control(
2654 'hr_14',
2655 [
2656 'type' => Controls_Manager::DIVIDER,
2657 'condition' => [
2658 'show_scrollbar' => 'yes'
2659 ],
2660 ]
2661 );
2662
2663 $this->add_control(
2664 'scrollbar_color',
2665 [
2666 'label' => __('Bar Color', 'ultimate-store-kit'),
2667 'type' => Controls_Manager::COLOR,
2668 'selectors' => [
2669 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-scrollbar' => 'background: {{VALUE}}',
2670 ],
2671 'condition' => [
2672 'show_scrollbar' => 'yes'
2673 ],
2674 ]
2675 );
2676
2677 $this->add_control(
2678 'scrollbar_drag_color',
2679 [
2680 'label' => __('Drag Color', 'ultimate-store-kit'),
2681 'type' => Controls_Manager::COLOR,
2682 'selectors' => [
2683 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-scrollbar .swiper-scrollbar-drag' => 'background: {{VALUE}}',
2684 ],
2685 'condition' => [
2686 'show_scrollbar' => 'yes'
2687 ],
2688 ]
2689 );
2690
2691 $this->add_responsive_control(
2692 'scrollbar_height',
2693 [
2694 'label' => __('Height', 'ultimate-store-kit'),
2695 'type' => Controls_Manager::SLIDER,
2696 'range' => [
2697 'px' => [
2698 'min' => 1,
2699 'max' => 10,
2700 ],
2701 ],
2702 'selectors' => [
2703 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-container-horizontal > .swiper-scrollbar, {{WRAPPER}} .' . $this->get_name() . ' .swiper-horizontal > .swiper-scrollbar' => 'height: {{SIZE}}px;',
2704 ],
2705 'condition' => [
2706 'show_scrollbar' => 'yes'
2707 ],
2708 ]
2709 );
2710
2711 $this->add_control(
2712 'hr_05',
2713 [
2714 'type' => Controls_Manager::DIVIDER,
2715 ]
2716 );
2717
2718 $this->add_control(
2719 'navi_offset_heading',
2720 [
2721 'label' => __('Offset', 'ultimate-store-kit'),
2722 'type' => Controls_Manager::HEADING,
2723 ]
2724 );
2725
2726 $this->add_control(
2727 'hr_6',
2728 [
2729 'type' => Controls_Manager::DIVIDER,
2730 ]
2731 );
2732
2733 $this->add_responsive_control(
2734 'arrows_ncx_position',
2735 [
2736 'label' => __('Arrows Horizontal Offset', 'ultimate-store-kit'),
2737 'type' => Controls_Manager::SLIDER,
2738 'default' => [
2739 'size' => 0,
2740 ],
2741 'tablet_default' => [
2742 'size' => 0,
2743 ],
2744 'mobile_default' => [
2745 'size' => 0,
2746 ],
2747 'range' => [
2748 'px' => [
2749 'min' => -200,
2750 'max' => 200,
2751 ],
2752 ],
2753 'conditions' => [
2754 'terms' => [
2755 [
2756 'name' => 'navigation',
2757 'value' => 'arrows',
2758 ],
2759 [
2760 'name' => 'arrows_position',
2761 'operator' => '!=',
2762 'value' => 'center',
2763 ],
2764 ],
2765 ],
2766 'selectors' => [
2767 '{{WRAPPER}}' => '--' . $this->get_name() . '-arrows-ncx: {{SIZE}}px;'
2768 ],
2769 ]
2770 );
2771
2772 $this->add_responsive_control(
2773 'arrows_ncy_position',
2774 [
2775 'label' => __('Arrows Vertical Offset', 'ultimate-store-kit'),
2776 'type' => Controls_Manager::SLIDER,
2777 'default' => [
2778 'size' => 0,
2779 ],
2780 'tablet_default' => [
2781 'size' => 0,
2782 ],
2783 'mobile_default' => [
2784 'size' => 0,
2785 ],
2786 'range' => [
2787 'px' => [
2788 'min' => -200,
2789 'max' => 200,
2790 ],
2791 ],
2792 'selectors' => [
2793 '{{WRAPPER}}' => '--' . $this->get_name() . '-arrows-ncy: {{SIZE}}px;'
2794 ],
2795 'conditions' => [
2796 'terms' => [
2797 [
2798 'name' => 'navigation',
2799 'value' => 'arrows',
2800 ],
2801 // [
2802 // 'name' => 'arrows_position',
2803 // 'operator' => '!=',
2804 // 'value' => 'center',
2805 // ],
2806 ],
2807 ],
2808 ]
2809 );
2810
2811 $this->add_responsive_control(
2812 'arrows_acx_position',
2813 [
2814 'label' => __('Arrows Horizontal Offset', 'ultimate-store-kit'),
2815 'type' => Controls_Manager::SLIDER,
2816 'default' => [
2817 'size' => -60,
2818 ],
2819 'range' => [
2820 'px' => [
2821 'min' => -200,
2822 'max' => 200,
2823 ],
2824 ],
2825 'selectors' => [
2826 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev' => 'left: {{SIZE}}px;',
2827 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next' => 'right: {{SIZE}}px;',
2828 ],
2829 'conditions' => [
2830 'terms' => [
2831 [
2832 'name' => 'navigation',
2833 'value' => 'arrows',
2834 ],
2835 [
2836 'name' => 'arrows_position',
2837 'value' => 'center',
2838 ],
2839 ],
2840 ],
2841 ]
2842 );
2843
2844 $this->add_responsive_control(
2845 'dots_nnx_position',
2846 [
2847 'label' => __('Dots Horizontal Offset', 'ultimate-store-kit'),
2848 'type' => Controls_Manager::SLIDER,
2849 'default' => [
2850 'size' => 0,
2851 ],
2852 'tablet_default' => [
2853 'size' => 0,
2854 ],
2855 'mobile_default' => [
2856 'size' => 0,
2857 ],
2858 'range' => [
2859 'px' => [
2860 'min' => -200,
2861 'max' => 200,
2862 ],
2863 ],
2864 'conditions' => [
2865 'terms' => [
2866 [
2867 'name' => 'navigation',
2868 'value' => 'dots',
2869 ],
2870 [
2871 'name' => 'dots_position',
2872 'operator' => '!=',
2873 'value' => '',
2874 ],
2875 ],
2876 ],
2877 'selectors' => [
2878 '{{WRAPPER}}' => '--' . $this->get_name() . '-dots-nnx: {{SIZE}}px;'
2879 ],
2880 ]
2881 );
2882
2883 $this->add_responsive_control(
2884 'dots_nny_position',
2885 [
2886 'label' => __('Dots Vertical Offset', 'ultimate-store-kit'),
2887 'type' => Controls_Manager::SLIDER,
2888 'default' => [
2889 'size' => 30,
2890 ],
2891 'tablet_default' => [
2892 'size' => 30,
2893 ],
2894 'mobile_default' => [
2895 'size' => 30,
2896 ],
2897 'range' => [
2898 'px' => [
2899 'min' => -200,
2900 'max' => 200,
2901 ],
2902 ],
2903 'conditions' => [
2904 'terms' => [
2905 [
2906 'name' => 'navigation',
2907 'value' => 'dots',
2908 ],
2909 [
2910 'name' => 'dots_position',
2911 'operator' => '!=',
2912 'value' => '',
2913 ],
2914 ],
2915 ],
2916 'selectors' => [
2917 '{{WRAPPER}}' => '--' . $this->get_name() . '-dots-nny: {{SIZE}}px;'
2918 ],
2919 ]
2920 );
2921
2922 $this->add_responsive_control(
2923 'both_ncx_position',
2924 [
2925 'label' => __('Arrows & Dots Horizontal Offset', 'ultimate-store-kit'),
2926 'type' => Controls_Manager::SLIDER,
2927 'default' => [
2928 'size' => 0,
2929 ],
2930 'tablet_default' => [
2931 'size' => 0,
2932 ],
2933 'mobile_default' => [
2934 'size' => 0,
2935 ],
2936 'range' => [
2937 'px' => [
2938 'min' => -200,
2939 'max' => 200,
2940 ],
2941 ],
2942 'conditions' => [
2943 'terms' => [
2944 [
2945 'name' => 'navigation',
2946 'value' => 'both',
2947 ],
2948 [
2949 'name' => 'both_position',
2950 'operator' => '!=',
2951 'value' => 'center',
2952 ],
2953 ],
2954 ],
2955 'selectors' => [
2956 '{{WRAPPER}}' => '--' . $this->get_name() . '-both-ncx: {{SIZE}}px;'
2957 ],
2958 ]
2959 );
2960
2961 $this->add_responsive_control(
2962 'both_ncy_position',
2963 [
2964 'label' => __('Arrows & Dots Vertical Offset', 'ultimate-store-kit'),
2965 'type' => Controls_Manager::SLIDER,
2966 'default' => [
2967 'size' => 0,
2968 ],
2969 'tablet_default' => [
2970 'size' => 0,
2971 ],
2972 'mobile_default' => [
2973 'size' => 0,
2974 ],
2975 'range' => [
2976 'px' => [
2977 'min' => -200,
2978 'max' => 200,
2979 ],
2980 ],
2981 'conditions' => [
2982 'terms' => [
2983 [
2984 'name' => 'navigation',
2985 'value' => 'both',
2986 ],
2987 [
2988 'name' => 'both_position',
2989 'operator' => '!=',
2990 'value' => 'center',
2991 ],
2992 ],
2993 ],
2994 'selectors' => [
2995 '{{WRAPPER}}' => '--' . $this->get_name() . '-both-ncy: {{SIZE}}px;'
2996 ],
2997 ]
2998 );
2999
3000 $this->add_responsive_control(
3001 'both_cx_position',
3002 [
3003 'label' => __('Arrows Offset', 'ultimate-store-kit'),
3004 'type' => Controls_Manager::SLIDER,
3005 'default' => [
3006 'size' => -60,
3007 ],
3008 'range' => [
3009 'px' => [
3010 'min' => -200,
3011 'max' => 200,
3012 ],
3013 ],
3014 'selectors' => [
3015 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev' => 'left: {{SIZE}}px;',
3016 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next' => 'right: {{SIZE}}px;',
3017 ],
3018 'conditions' => [
3019 'terms' => [
3020 [
3021 'name' => 'navigation',
3022 'value' => 'both',
3023 ],
3024 [
3025 'name' => 'both_position',
3026 'value' => 'center',
3027 ],
3028 ],
3029 ],
3030 ]
3031 );
3032
3033 $this->add_responsive_control(
3034 'both_cy_position',
3035 [
3036 'label' => __('Dots Offset', 'ultimate-store-kit'),
3037 'type' => Controls_Manager::SLIDER,
3038 'default' => [
3039 'size' => 30,
3040 ],
3041 'range' => [
3042 'px' => [
3043 'min' => -200,
3044 'max' => 200,
3045 ],
3046 ],
3047 'selectors' => [
3048 '{{WRAPPER}} .' . $this->get_name() . ' .usk-dots-container' => 'transform: translateY({{SIZE}}px);',
3049 ],
3050 'conditions' => [
3051 'terms' => [
3052 [
3053 'name' => 'navigation',
3054 'value' => 'both',
3055 ],
3056 [
3057 'name' => 'both_position',
3058 'value' => 'center',
3059 ],
3060 ],
3061 ],
3062 ]
3063 );
3064
3065 $this->add_responsive_control(
3066 'arrows_fraction_ncx_position',
3067 [
3068 'label' => __('Arrows & Fraction Horizontal Offset', 'ultimate-store-kit'),
3069 'type' => Controls_Manager::SLIDER,
3070 'default' => [
3071 'size' => 0,
3072 ],
3073 'tablet_default' => [
3074 'size' => 0,
3075 ],
3076 'mobile_default' => [
3077 'size' => 0,
3078 ],
3079 'range' => [
3080 'px' => [
3081 'min' => -200,
3082 'max' => 200,
3083 ],
3084 ],
3085 'conditions' => [
3086 'terms' => [
3087 [
3088 'name' => 'navigation',
3089 'value' => 'arrows-fraction',
3090 ],
3091 [
3092 'name' => 'arrows_fraction_position',
3093 'operator' => '!=',
3094 'value' => 'center',
3095 ],
3096 ],
3097 ],
3098 'selectors' => [
3099 '{{WRAPPER}}' => '--' . $this->get_name() . '-arrows-fraction-ncx: {{SIZE}}px;'
3100 ],
3101 ]
3102 );
3103
3104 $this->add_responsive_control(
3105 'arrows_fraction_ncy_position',
3106 [
3107 'label' => __('Arrows & Fraction Vertical Offset', 'ultimate-store-kit'),
3108 'type' => Controls_Manager::SLIDER,
3109 'default' => [
3110 'size' => 0,
3111 ],
3112 'tablet_default' => [
3113 'size' => 0,
3114 ],
3115 'mobile_default' => [
3116 'size' => 0,
3117 ],
3118 'range' => [
3119 'px' => [
3120 'min' => -200,
3121 'max' => 200,
3122 ],
3123 ],
3124 'conditions' => [
3125 'terms' => [
3126 [
3127 'name' => 'navigation',
3128 'value' => 'arrows-fraction',
3129 ],
3130 [
3131 'name' => 'arrows_fraction_position',
3132 'operator' => '!=',
3133 'value' => 'center',
3134 ],
3135 ],
3136 ],
3137 'selectors' => [
3138 '{{WRAPPER}}' => '--' . $this->get_name() . '-arrows-fraction-ncy: {{SIZE}}px;'
3139 ],
3140 ]
3141 );
3142
3143 $this->add_responsive_control(
3144 'arrows_fraction_cx_position',
3145 [
3146 'label' => __('Arrows Offset', 'ultimate-store-kit'),
3147 'type' => Controls_Manager::SLIDER,
3148 'default' => [
3149 'size' => -60,
3150 ],
3151 'range' => [
3152 'px' => [
3153 'min' => -200,
3154 'max' => 200,
3155 ],
3156 ],
3157 'selectors' => [
3158 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-prev' => 'left: {{SIZE}}px;',
3159 '{{WRAPPER}} .' . $this->get_name() . ' .usk-navigation-next' => 'right: {{SIZE}}px;',
3160 ],
3161 'conditions' => [
3162 'terms' => [
3163 [
3164 'name' => 'navigation',
3165 'value' => 'arrows-fraction',
3166 ],
3167 [
3168 'name' => 'arrows_fraction_position',
3169 'value' => 'center',
3170 ],
3171 ],
3172 ],
3173 ]
3174 );
3175
3176 $this->add_responsive_control(
3177 'arrows_fraction_cy_position',
3178 [
3179 'label' => __('Fraction Offset', 'ultimate-store-kit'),
3180 'type' => Controls_Manager::SLIDER,
3181 'default' => [
3182 'size' => 30,
3183 ],
3184 'range' => [
3185 'px' => [
3186 'min' => -200,
3187 'max' => 200,
3188 ],
3189 ],
3190 'selectors' => [
3191 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-fraction' => 'transform: translateY({{SIZE}}px);',
3192 ],
3193 'conditions' => [
3194 'terms' => [
3195 [
3196 'name' => 'navigation',
3197 'value' => 'arrows-fraction',
3198 ],
3199 [
3200 'name' => 'arrows_fraction_position',
3201 'value' => 'center',
3202 ],
3203 ],
3204 ],
3205 ]
3206 );
3207
3208 $this->add_responsive_control(
3209 'progress_y_position',
3210 [
3211 'label' => __('Progress Offset', 'ultimate-store-kit'),
3212 'type' => Controls_Manager::SLIDER,
3213 'default' => [
3214 'size' => 15,
3215 ],
3216 'range' => [
3217 'px' => [
3218 'min' => -200,
3219 'max' => 200,
3220 ],
3221 ],
3222 'selectors' => [
3223 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-pagination-progressbar' => 'transform: translateY({{SIZE}}px);',
3224 ],
3225 'condition' => [
3226 'navigation' => 'progressbar',
3227 ],
3228 ]
3229 );
3230
3231 $this->add_responsive_control(
3232 'scrollbar_vertical_offset',
3233 [
3234 'label' => __('Scrollbar Offset', 'ultimate-store-kit'),
3235 'type' => Controls_Manager::SLIDER,
3236 'selectors' => [
3237 '{{WRAPPER}} .' . $this->get_name() . ' .swiper-container-horizontal > .swiper-scrollbar, {{WRAPPER}} .' . $this->get_name() . ' .swiper-horizontal > .swiper-scrollbar' => 'bottom: {{SIZE}}px;',
3238 ],
3239 'condition' => [
3240 'show_scrollbar' => 'yes'
3241 ],
3242 ]
3243 );
3244
3245 $this->end_controls_section();
3246 }
3247 protected function register_global_controls_carousel_settings() {
3248 $this->start_controls_section(
3249 'section_carousel_settings',
3250 [
3251 'label' => __('Carousel Settings', 'ultimate-store-kit'),
3252 ]
3253 );
3254
3255 $this->add_control(
3256 'skin',
3257 [
3258 'label' => esc_html__('Layout', 'ultimate-store-kit'),
3259 'type' => Controls_Manager::SELECT,
3260 'default' => 'carousel',
3261 'options' => [
3262 'carousel' => esc_html__('Carousel', 'ultimate-store-kit'),
3263 'coverflow' => esc_html__('Coverflow', 'ultimate-store-kit'),
3264 ],
3265 'prefix_class' => 'usk-carousel-style-',
3266 'render_type' => 'template',
3267 ]
3268 );
3269
3270 $this->add_control(
3271 'coverflow_toggle',
3272 [
3273 'label' => __('Coverflow Effect', 'ultimate-store-kit'),
3274 'type' => Controls_Manager::POPOVER_TOGGLE,
3275 'return_value' => 'yes',
3276 'condition' => [
3277 'skin' => 'coverflow'
3278 ]
3279 ]
3280 );
3281
3282 $this->start_popover();
3283
3284 $this->add_control(
3285 'coverflow_rotate',
3286 [
3287 'label' => esc_html__('Rotate', 'ultimate-store-kit'),
3288 'type' => Controls_Manager::SLIDER,
3289 'default' => [
3290 'size' => 50,
3291 ],
3292 'range' => [
3293 'px' => [
3294 'min' => -360,
3295 'max' => 360,
3296 'step' => 5,
3297 ],
3298 ],
3299 'condition' => [
3300 'coverflow_toggle' => 'yes'
3301 ],
3302 'render_type' => 'template',
3303 ]
3304 );
3305
3306 $this->add_control(
3307 'coverflow_stretch',
3308 [
3309 'label' => __('Stretch', 'ultimate-store-kit'),
3310 'type' => Controls_Manager::SLIDER,
3311 'default' => [
3312 'size' => 0,
3313 ],
3314 'range' => [
3315 'px' => [
3316 'min' => 0,
3317 'step' => 10,
3318 'max' => 100,
3319 ],
3320 ],
3321 'condition' => [
3322 'coverflow_toggle' => 'yes'
3323 ],
3324 'render_type' => 'template',
3325 ]
3326 );
3327
3328 $this->add_control(
3329 'coverflow_modifier',
3330 [
3331 'label' => __('Modifier', 'ultimate-store-kit'),
3332 'type' => Controls_Manager::SLIDER,
3333 'default' => [
3334 'size' => 1,
3335 ],
3336 'range' => [
3337 'px' => [
3338 'min' => 1,
3339 'step' => 1,
3340 'max' => 10,
3341 ],
3342 ],
3343 'condition' => [
3344 'coverflow_toggle' => 'yes'
3345 ],
3346 'render_type' => 'template',
3347 ]
3348 );
3349
3350 $this->add_control(
3351 'coverflow_depth',
3352 [
3353 'label' => __('Depth', 'ultimate-store-kit'),
3354 'type' => Controls_Manager::SLIDER,
3355 'default' => [
3356 'size' => 100,
3357 ],
3358 'range' => [
3359 'px' => [
3360 'min' => 0,
3361 'step' => 10,
3362 'max' => 1000,
3363 ],
3364 ],
3365 'condition' => [
3366 'coverflow_toggle' => 'yes'
3367 ],
3368 'render_type' => 'template',
3369 ]
3370 );
3371
3372 $this->end_popover();
3373
3374 $this->add_control(
3375 'hr_005',
3376 [
3377 'type' => Controls_Manager::DIVIDER,
3378 'condition' => [
3379 'skin' => 'coverflow'
3380 ]
3381 ]
3382 );
3383
3384 $this->add_control(
3385 'autoplay',
3386 [
3387 'label' => __('Autoplay', 'ultimate-store-kit'),
3388 'type' => Controls_Manager::SWITCHER,
3389 'default' => 'yes',
3390
3391 ]
3392 );
3393
3394 $this->add_control(
3395 'autoplay_speed',
3396 [
3397 'label' => esc_html__('Autoplay Speed', 'ultimate-store-kit'),
3398 'type' => Controls_Manager::NUMBER,
3399 'default' => 5000,
3400 'condition' => [
3401 'autoplay' => 'yes',
3402 ],
3403 ]
3404 );
3405
3406 $this->add_control(
3407 'pauseonhover',
3408 [
3409 'label' => esc_html__('Pause on Hover', 'ultimate-store-kit'),
3410 'type' => Controls_Manager::SWITCHER,
3411 ]
3412 );
3413
3414 $this->add_responsive_control(
3415 'slides_to_scroll',
3416 [
3417 'type' => Controls_Manager::SELECT,
3418 'label' => esc_html__('Slides to Scroll', 'ultimate-store-kit'),
3419 'default' => 1,
3420 'tablet_default' => 1,
3421 'mobile_default' => 1,
3422 'options' => [
3423 1 => '1',
3424 2 => '2',
3425 3 => '3',
3426 4 => '4',
3427 5 => '5',
3428 6 => '6',
3429 ],
3430 ]
3431 );
3432
3433 $this->add_control(
3434 'centered_slides',
3435 [
3436 'label' => __('Center Slide', 'ultimate-store-kit'),
3437 'description' => __('Use even items from Layout > Columns settings for better preview.', 'ultimate-store-kit'),
3438 'type' => Controls_Manager::SWITCHER,
3439 ]
3440 );
3441
3442 $this->add_control(
3443 'grab_cursor',
3444 [
3445 'label' => __('Grab Cursor', 'ultimate-store-kit'),
3446 'type' => Controls_Manager::SWITCHER,
3447 ]
3448 );
3449
3450 $this->add_control(
3451 'loop',
3452 [
3453 'label' => __('Loop', 'ultimate-store-kit'),
3454 'type' => Controls_Manager::SWITCHER,
3455 'default' => 'yes',
3456
3457 ]
3458 );
3459
3460
3461 $this->add_control(
3462 'speed',
3463 [
3464 'label' => __('Animation Speed (ms)', 'ultimate-store-kit'),
3465 'type' => Controls_Manager::SLIDER,
3466 'default' => [
3467 'size' => 500,
3468 ],
3469 'range' => [
3470 'px' => [
3471 'min' => 100,
3472 'max' => 5000,
3473 'step' => 50,
3474 ],
3475 ],
3476 ]
3477 );
3478
3479 $this->add_control(
3480 'observer',
3481 [
3482 'label' => __('Observer', 'ultimate-store-kit'),
3483 'description' => __('When you use carousel in any hidden place (in tabs, accordion etc) keep it yes.', 'ultimate-store-kit'),
3484 'type' => Controls_Manager::SWITCHER,
3485 ]
3486 );
3487
3488 $this->add_responsive_control(
3489 'item_shadow_padding',
3490 [
3491 'label' => __('Match Padding', 'ultimate-store-kit'),
3492 'description' => __('You have to add padding for matching overlaping normal/hover box shadow when you used Box Shadow option.', 'ultimate-store-kit'),
3493 'type' => Controls_Manager::SLIDER,
3494 'range' => [
3495 'px' => [
3496 'min' => 0,
3497 'step' => 1,
3498 'max' => 50,
3499 ]
3500 ],
3501 'default' => [
3502 'size' => 10
3503 ],
3504 'selectors' => [
3505 '{{WRAPPER}} .swiper-carousel' => 'padding: {{SIZE}}{{UNIT}}; margin: 0 -{{SIZE}}{{UNIT}};'
3506 ],
3507 ]
3508 );
3509
3510 $this->end_controls_section();
3511 }
3512 }
3513