PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 1.6.2
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v1.6.2
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.6.2, at traits/global-widget-controls.php

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