PluginProbe ʕ •ᴥ•ʔ
Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget / 1.8.1
Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget v1.8.1
1.8.1 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.7 1.3.8 1.4.0 1.4.1 1.4.2 1.4.3 1.6.0 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7 1.8
post-grid-carousel-ultimate / includes / elementor / widget.php
post-grid-carousel-ultimate / includes / elementor Last commit date
init.php 3 years ago widget.php 2 years ago
widget.php
2625 lines
1 <?php
2
3 use Elementor\Controls_Manager;
4 use Elementor\Group_Control_Typography;
5 use Elementor\Core\Schemes\Typography;
6 class Elementor_Post_Ultimate_Widget extends \Elementor\Widget_Base {
7
8 public function register_controls() {
9 $fields = $this->pgcu_fields();
10 foreach ( $fields as $field ) {
11 if ( isset( $field['mode'] ) && $field['mode'] == 'section_start' ) {
12 $id = $field['id'];
13 unset( $field['id'] );
14 unset( $field['mode'] );
15 $this->start_controls_section( $id, $field );
16 }
17 elseif ( isset( $field['mode'] ) && $field['mode'] == 'section_end' ) {
18 $this->end_controls_section();
19 }
20 elseif ( isset( $field['mode'] ) && $field['mode'] == 'tabs_start' ) {
21 $id = $field['id'];
22 unset( $field['id'] );
23 unset( $field['mode'] );
24 $this->start_controls_tabs( $id );
25 }
26 elseif ( isset( $field['mode'] ) && $field['mode'] == 'tabs_end' ) {
27 $this->end_controls_tabs();
28 }
29 elseif ( isset( $field['mode'] ) && $field['mode'] == 'tab_start' ) {
30 $id = $field['id'];
31 unset( $field['id'] );
32 unset( $field['mode'] );
33 $this->start_controls_tab( $id, $field );
34 }
35 elseif ( isset( $field['mode'] ) && $field['mode'] == 'tab_end' ) {
36 $this->end_controls_tab();
37 }
38 elseif ( isset( $field['mode'] ) && $field['mode'] == 'group' ) {
39 $type = $field['type'];
40 $field['name'] = $field['id'];
41 unset( $field['mode'] );
42 unset( $field['type'] );
43 unset( $field['id'] );
44 $this->add_group_control( $type, $field );
45 }
46 elseif ( isset( $field['mode'] ) && $field['mode'] == 'responsive' ) {
47 $id = $field['id'];
48 unset( $field['id'] );
49 unset( $field['mode'] );
50 $this->add_responsive_control( $id, $field );
51 }
52 else {
53 $id = $field['id'];
54 unset( $field['id'] );
55 $this->add_control( $id, $field );
56 }
57 }
58 }
59
60 public function custom_post_type() {
61 $custom_posts = get_post_types( array(
62 'public' => true,
63 ) );
64 $exclude = array( 'adl-shortcode','attachment', 'revision', 'nav_menu_item' );
65
66 foreach ( $exclude as $ex ) {
67 unset( $custom_posts[ $ex ] );
68 }
69 $html = "";
70 if( ! empty( $custom_posts ) ) {
71 ob_start();
72 foreach( $custom_posts as $value ){
73
74 ?>
75 <option value="<?php echo esc_attr( $value );?>"><?php echo esc_html( $value );?></option>
76 <?php
77
78 }
79 $html = ob_get_clean();
80 }
81 return $html;
82 }
83
84 public function custom_term_type() {
85 //$settings = $this->get_settings();
86 $post_type = ! empty( $settings['post_type'] ) ? $settings['post_type'] : 'post';
87 $terms = get_taxonomies();
88
89 $html = "";
90 if( $terms ) {
91 ob_start();
92 foreach( $terms as $term ) {
93 ?>
94 <option value="<?php echo esc_attr( $term ); ?>"><?php echo esc_html( $term ); ?></option>
95 <?php
96 }
97 $html = ob_get_clean();
98 }
99
100 return $html;
101 }
102
103 public function pgcu_fields() {
104 $fields = array(
105 //layout section
106 array(
107 'mode' => 'section_start',
108 'id' => 'sec_general',
109 'label' => __( 'Layout', 'post-grid-carousel-ultimate' ),
110 ),
111 array(
112 'type' => Controls_Manager::SELECT,
113 'id' => 'layout',
114 'label' => __( 'Layout', 'post-grid-carousel-ultimate' ),
115 'options' => array(
116 'carousel' => __( 'Carousel', 'post-grid-carousel-ultimate' ),
117 'grid' => __( 'Grid', 'post-grid-carousel-ultimate' ),
118 'isotope' => __( 'Sortable Grid', 'post-grid-carousel-ultimate' ),
119 ),
120 'default' => 'carousel',
121 ),
122 array(
123 'type' => Controls_Manager::SELECT,
124 'id' => 'theme',
125 'label' => __( 'Theme', 'post-grid-carousel-ultimate' ),
126 'options' => array(
127 'theme-1' => __( 'Theme 1', 'post-grid-carousel-ultimate' ),
128 'theme-2' => __( 'Theme 2', 'post-grid-carousel-ultimate' ),
129 'theme-3' => __( 'Theme 3', 'post-grid-carousel-ultimate' ),
130 'theme-4' => __( 'Theme 4', 'post-grid-carousel-ultimate' ),
131 ),
132 'default' => 'theme-1',
133 'separator' => 'after'
134 ),
135 array(
136 'type' => Controls_Manager::SWITCHER,
137 'id' => 'display_header_title',
138 'label' => __( 'Display Header', 'post-grid-carousel-ultimate' ),
139 'default' => 'no',
140 ),
141 array(
142 'type' => Controls_Manager::TEXT,
143 'id' => 'header_title',
144 'label' => __( 'Title', 'post-grid-carousel-ultimate' ),
145 'default' => '',
146 'condition' => [
147 'display_header_title' => 'yes',
148 ],
149 ),
150 array(
151 'type' => Controls_Manager::SELECT,
152 'id' => 'header_position',
153 'label' => __( 'Header Position', 'post-grid-carousel-ultimate' ),
154 'options' => array(
155 'left' => __( 'Left', 'post-grid-carousel-ultimate' ),
156 'right' => __( 'Right', 'post-grid-carousel-ultimate' ),
157 'middle' => __( 'Middle', 'post-grid-carousel-ultimate' ),
158 ),
159 'default' => 'middle',
160 'condition' => [
161 'display_header_title' => 'yes',
162 ],
163 ),
164 array(
165 'type' => Controls_Manager::SWITCHER,
166 'id' => 'display_title',
167 'label' => __( 'Display Product Title', 'post-grid-carousel-ultimate' ),
168 'default' => 'yes',
169 ),
170 array(
171 'mode' => 'section_end',
172 ),
173 array(
174 'mode' => 'section_start',
175 'id' => 'sec_query',
176 'label' => __( 'Query', 'post-grid-carousel-ultimate' ),
177 ),
178 array(
179 'type' => Controls_Manager::SELECT,
180 'id' => 'post_type',
181 'label' => __( 'Post Type', 'post-grid-carousel-ultimate' ),
182 'options' => array(
183 $this->custom_post_type()
184 ),
185 'default' => 'post',
186 'condition' => [
187 'layout!' => 'isotope',
188 ],
189 ),
190 array(
191 'type' => Controls_Manager::SELECT,
192 'id' => 'post_from',
193 'label' => __( 'Display Post From', 'post-grid-carousel-ultimate' ),
194 'options' => array(
195 'latest' => __( 'Latest Post', 'post-grid-carousel-ultimate' ),
196 'older' => __( 'Older Post', 'post-grid-carousel-ultimate' ),
197 ),
198 'default' => 'latest',
199 ),
200 array(
201 'type' => Controls_Manager::TEXT,
202 'id' => 'total_posts',
203 'label' => __( 'Total Posts', 'post-grid-carousel-ultimate' ),
204 'default' => 12,
205 ),
206 array(
207 'mode' => 'section_end',
208 ),
209 array(
210 'mode' => 'section_start',
211 'id' => 'sec_elements',
212 'label' => __( 'Elements', 'post-grid-carousel-ultimate' ),
213 ),
214 array(
215 'type' => Controls_Manager::SWITCHER,
216 'id' => 'display_content',
217 'label' => __( 'Display Content', 'post-grid-carousel-ultimate' ),
218 'default' => 'yes',
219 ),
220 array(
221 'type' => Controls_Manager::NUMBER,
222 'id' => 'content_word_limit',
223 'label' => __( 'Content Word Limit', 'post-grid-carousel-ultimate' ),
224 'min' => 1,
225 'max' => 50,
226 'step' => 1,
227 'default' => 16,
228 'condition' => [
229 'display_content' => 'yes',
230 ],
231 'separator' => 'after'
232 ),
233 array(
234 'type' => Controls_Manager::SWITCHER,
235 'id' => 'display_read_more',
236 'label' => __( 'Display Read More', 'post-grid-carousel-ultimate' ),
237 'default' => 'yes',
238 ),
239 array(
240 'type' => Controls_Manager::SELECT,
241 'id' => 'read_more_type',
242 'label' => __( 'Read More Type', 'post-grid-carousel-ultimate' ),
243 'options' => array(
244 'link' => __( 'Link', 'post-grid-carousel-ultimate' ),
245 'button' => __( 'Button', 'post-grid-carousel-ultimate' ),
246 ),
247 'default' => 'link',
248 'condition' => [
249 'display_read_more' => 'yes',
250 ],
251 'separator' => 'after'
252 ),
253 array(
254 'type' => Controls_Manager::SWITCHER,
255 'id' => 'display_author',
256 'label' => __( 'Display Author Name', 'post-grid-carousel-ultimate' ),
257 'default' => 'yes',
258 ),
259 array(
260 'type' => Controls_Manager::SWITCHER,
261 'id' => 'display_date',
262 'label' => __( 'Display Date', 'post-grid-carousel-ultimate' ),
263 'default' => 'yes',
264 ),
265 array(
266 'type' => Controls_Manager::SWITCHER,
267 'id' => 'display_term',
268 'label' => __( 'Display Term', 'post-grid-carousel-ultimate' ),
269 'default' => 'yes',
270 ),
271 array(
272 'type' => Controls_Manager::SELECT,
273 'id' => 'term_from',
274 'label' => __( 'Term From', 'post-grid-carousel-ultimate' ),
275 'options' => array(
276 $this->custom_term_type(),
277 ),
278 'default' => 'category',
279 'condition' => [
280 'display_term' => 'yes',
281 ],
282 'separator' => 'after'
283 ),
284
285 array(
286 'mode' => 'section_end',
287 ),
288 array(
289 'mode' => 'section_start',
290 'id' => 'sec_carousel',
291 'label' => __( 'Carousel', 'post-grid-carousel-ultimate' ),
292 'condition' => [
293 'layout' => 'carousel',
294 ],
295 ),
296 array(
297 'type' => Controls_Manager::SWITCHER,
298 'id' => 'autoplay',
299 'label' => __( 'Auto Play', 'post-grid-carousel-ultimate' ),
300 'default' => 'yes',
301 ),
302 array(
303 'type' => Controls_Manager::SWITCHER,
304 'id' => 'repeat_post',
305 'label' => __( 'Repeat Post', 'post-grid-carousel-ultimate' ),
306 'default' => 'yes',
307 ),
308 array(
309 'type' => Controls_Manager::SWITCHER,
310 'id' => 'pause_hover',
311 'label' => __( 'Pause on Hover', 'post-grid-carousel-ultimate' ),
312 'default' => 'no',
313 ),
314 array(
315 'type' => Controls_Manager::TEXT,
316 'id' => 'post_column',
317 'label' => __( 'Post Columns', 'post-grid-carousel-ultimate' ),
318 'default' => 2,
319 ),
320 array(
321 'type' => Controls_Manager::TEXT,
322 'id' => 'post_column_laptop',
323 'label' => __( 'Laptop Columns', 'post-grid-carousel-ultimate' ),
324 'default' => 2,
325 ),
326 array(
327 'type' => Controls_Manager::TEXT,
328 'id' => 'post_column_tablet',
329 'label' => __( 'Tablet Columns', 'post-grid-carousel-ultimate' ),
330 'default' => 2,
331 ),
332 array(
333 'type' => Controls_Manager::TEXT,
334 'id' => 'post_column_mobile',
335 'label' => __( 'Mobile Columns', 'post-grid-carousel-ultimate' ),
336 'default' => 1,
337 'separator' => 'after'
338 ),
339 array(
340 'type' => Controls_Manager::TEXT,
341 'id' => 'c_autoplay_speed',
342 'label' => __( 'Slide Speed', 'post-grid-carousel-ultimate' ),
343 'default' => 2000,
344 ),
345 array(
346 'type' => Controls_Manager::TEXT,
347 'id' => 'c_autoplay_time',
348 'label' => __( 'Slide Timeout', 'post-grid-carousel-ultimate' ),
349 'default' => 2000,
350 ),
351 array(
352 'type' => Controls_Manager::SWITCHER,
353 'id' => 'navigation',
354 'label' => __( 'Navigation', 'post-grid-carousel-ultimate' ),
355 'default' => 'yes',
356 ),
357 array(
358 'type' => Controls_Manager::SELECT,
359 'id' => 'navigation_position',
360 'label' => __( 'Position', 'post-grid-carousel-ultimate' ),
361 'options' => array(
362 'top-left' => __( 'Top Left', 'post-grid-carousel-ultimate' ),
363 'top-right' => __( 'Top Right', 'post-grid-carousel-ultimate' ),
364 'middle' => __( 'Middle', 'post-grid-carousel-ultimate' ),
365 'bottom-left' => __( 'Bottom Left', 'post-grid-carousel-ultimate' ),
366 'bottom-right' => __( 'Bottom Right', 'post-grid-carousel-ultimate' ),
367 ),
368 'default' => 'middle',
369 'condition' => [
370 'navigation' => 'yes',
371 ],
372 'separator' => 'after'
373 ),
374 array(
375 'mode' => 'section_end',
376 ),
377 array(
378 'mode' => 'section_start',
379 'id' => 'sec_grid',
380 'label' => __( 'Grid', 'post-grid-carousel-ultimate' ),
381 'condition' => [
382 'layout' => [ 'grid', 'masonry' ],
383 ],
384 ),
385 array(
386 'type' => Controls_Manager::SELECT,
387 'id' => 'g_column',
388 'label' => __( 'Grid Columns', 'post-grid-carousel-ultimate' ),
389 'options' => array(
390 '1' => __( 'Column-1', 'post-grid-carousel-ultimate' ),
391 '2' => __( 'Column-2', 'post-grid-carousel-ultimate' ),
392 '3' => __( 'Column-3', 'post-grid-carousel-ultimate' ),
393 '4' => __( 'Column-4', 'post-grid-carousel-ultimate' ),
394 ),
395 'default' => '3',
396 ),
397 array(
398 'type' => Controls_Manager::SELECT,
399 'id' => 'g_tablet',
400 'label' => __( 'Select Columns for Tablet', 'post-grid-carousel-ultimate' ),
401 'options' => array(
402 '1' => __( 'Column-1', 'post-grid-carousel-ultimate' ),
403 '2' => __( 'Column-2', 'post-grid-carousel-ultimate' ),
404 '3' => __( 'Column-3', 'post-grid-carousel-ultimate' ),
405 '4' => __( 'Column-4', 'post-grid-carousel-ultimate' ),
406 ),
407 'default' => '2',
408 ),
409 array(
410 'type' => Controls_Manager::SELECT,
411 'id' => 'g_mobile',
412 'label' => __( 'Select Columns for Mobile', 'post-grid-carousel-ultimate' ),
413 'options' => array(
414 '1' => __( 'Column-1', 'post-grid-carousel-ultimate' ),
415 '2' => __( 'Column-2', 'post-grid-carousel-ultimate' ),
416 '3' => __( 'Column-3', 'post-grid-carousel-ultimate' ),
417 '4' => __( 'Column-4', 'post-grid-carousel-ultimate' ),
418 ),
419 'default' => '1',
420 'separator' => 'after'
421 ),
422 array(
423 'type' => Controls_Manager::SWITCHER,
424 'id' => 'display_pagination',
425 'label' => __( 'Display Pagination', 'post-grid-carousel-ultimate' ),
426 'default' => 'yes',
427 ),
428 array(
429 'mode' => 'section_end',
430 ),
431 array(
432 'mode' => 'section_start',
433 'id' => 'sec_image',
434 'label' => __( 'Image', 'post-grid-carousel-ultimate' ),
435 ),
436 array(
437 'type' => Controls_Manager::SWITCHER,
438 'id' => 'image_resize_crop',
439 'label' => __( 'Image Resize & Crop', 'post-grid-carousel-ultimate' ),
440 'default' => 'yes',
441 ),
442 array(
443 'type' => Controls_Manager::TEXT,
444 'id' => 'image_width',
445 'label' => __( 'Cropping Width', 'post-grid-carousel-ultimate' ),
446 'default' => 300,
447 'condition' => [
448 'image_resize_crop' => 'yes',
449 ],
450 ),
451 array(
452 'type' => Controls_Manager::TEXT,
453 'id' => 'image_hight',
454 'label' => __( 'Cropping Height', 'post-grid-carousel-ultimate' ),
455 'default' => 200,
456 'condition' => [
457 'image_resize_crop' => 'yes',
458 ],
459 'separator' => 'after'
460 ),
461 array(
462 'mode' => 'section_end',
463 ),
464 // header title style
465 array(
466 'mode' => 'section_start',
467 'tab' => Controls_Manager::TAB_STYLE,
468 'id' => 'header_title_tab',
469 'label' => __( 'Header Title', 'post-grid-carousel-ultimate' ),
470 ),
471 array(
472 'mode' => 'tabs_start',
473 'id' => 'header_style_tab',
474 ),
475 array(
476 'mode' => 'tab_start',
477 'id' => 'header_normal_tab',
478 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
479 ),
480 array(
481 'type' => Controls_Manager::COLOR,
482 'id' => 'header_font_color',
483 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
484 'selectors' => [
485 '{{WRAPPER}} .pgcu-posts__header h2' => 'color: {{VALUE}} !important'
486 ],
487 ),
488 array(
489 'type' => Controls_Manager::COLOR,
490 'id' => 'header_back_color',
491 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
492 'selectors' => [
493 '{{WRAPPER}} .pgcu-posts__header' => 'background-color: {{VALUE}}'
494 ],
495 ),
496 array(
497 'type' => Controls_Manager::COLOR,
498 'id' => 'header_border_color',
499 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
500 'selectors' => [
501 '{{WRAPPER}} .pgcu-posts__header' => 'border-color: {{VALUE}}'
502 ],
503 ),
504 array(
505 'type' => Controls_Manager::NUMBER,
506 'id' => 'header_transition_duration',
507 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
508 'min' => 0,
509 'max' => 5,
510 'step' => 0.1,
511 'selectors' => [
512 '{{WRAPPER}} .pgcu-posts__header' => 'transition-duration: {{VALUE}} !important'
513 ],
514 ),
515 array(
516 'mode' => 'group',
517 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
518 'id' => 'header_title_typography',
519 'type' => Group_Control_Typography::get_type(),
520 'selector' => '{{WRAPPER}} .pgcu-posts__header h2',
521 'scheme' => Typography::TYPOGRAPHY_3,
522 ),
523 array(
524 'type' => Controls_Manager::SELECT,
525 'id' => 'header_border_type',
526 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
527 'options' => array(
528 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
529 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
530 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
531 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
532 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
533 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
534 ),
535 'selectors' => [
536 '{{WRAPPER}} .pgcu-posts__header' => 'border-style: {{VALUE}}'
537 ],
538 ),
539 array(
540 'mode' => 'responsive',
541 'type' => Controls_Manager::DIMENSIONS,
542 'id' => 'header_padding',
543 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
544 'selectors' => [
545 '{{WRAPPER}} .pgcu-posts__header' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
546 ],
547 ),
548 array(
549 'mode' => 'responsive',
550 'type' => Controls_Manager::DIMENSIONS,
551 'id' => 'header_margin',
552 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
553 'selectors' => [
554 '{{WRAPPER}} .pgcu-posts__header' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
555 ],
556 ),
557 array(
558 'mode' => 'tab_end',
559 ),
560 array(
561 'mode' => 'tab_start',
562 'id' => 'header_hover_tab',
563 'label' => __( 'HOVER', 'post-grid-carousel-ultimate' ),
564 ),
565 array(
566 'type' => Controls_Manager::COLOR,
567 'id' => 'header_hover_font_color',
568 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
569 'default' => '#303030',
570 'selectors' => [
571 '{{WRAPPER}} .pgcu-posts__header h2:hover' => 'color: {{VALUE}} !important'
572 ],
573 ),
574 array(
575 'type' => Controls_Manager::COLOR,
576 'id' => 'header_hover_back_color',
577 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
578 'selectors' => [
579 '{{WRAPPER}} .pgcu-posts__header:hover' => 'background-color: {{VALUE}}'
580 ],
581 ),
582 array(
583 'type' => Controls_Manager::COLOR,
584 'id' => 'header_hover_border_color',
585 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
586 'selectors' => [
587 '{{WRAPPER}} .pgcu-posts__header:hover' => 'border-color: {{VALUE}}'
588 ],
589 ),
590 array(
591 'type' => Controls_Manager::NUMBER,
592 'id' => 'header_hover_transition_duration',
593 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
594 'min' => 0,
595 'max' => 5,
596 'step' => 0.1,
597 'selectors' => [
598 '{{WRAPPER}} .pgcu-posts__header:hover' => 'transition-duration: {{VALUE}} !important'
599 ],
600 ),
601 array(
602 'mode' => 'group',
603 'id' => 'header_hover_title_typography',
604 'type' => Group_Control_Typography::get_type(),
605 'selector' => '{{WRAPPER}} .pgcu-posts__header h2:hover',
606 'scheme' => Typography::TYPOGRAPHY_3,
607 ),
608 array(
609 'type' => Controls_Manager::SELECT,
610 'id' => 'header_hover_border_type',
611 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
612 'options' => array(
613 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
614 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
615 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
616 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
617 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
618 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
619 ),
620 'selectors' => [
621 '{{WRAPPER}} .pgcu-posts__header:hover' => 'border-style: {{VALUE}}'
622 ],
623 ),
624 array(
625 'mode' => 'responsive',
626 'type' => Controls_Manager::DIMENSIONS,
627 'id' => 'header_hover_padding',
628 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
629 'selectors' => [
630 '{{WRAPPER}} .pgcu-posts__header:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
631 ],
632 ),
633 array(
634 'mode' => 'responsive',
635 'type' => Controls_Manager::DIMENSIONS,
636 'id' => 'header_hover_margin',
637 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
638 'selectors' => [
639 '{{WRAPPER}} .pgcu-posts__header:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
640 ],
641 ),
642 array(
643 'mode' => 'tab_end',
644 ),
645 array(
646 'mode' => 'tabs_end',
647 ),
648 array(
649 'mode' => 'section_end',
650 ),
651 array(
652 'mode' => 'section_start',
653 'tab' => Controls_Manager::TAB_STYLE,
654 'id' => 'post_title_tab',
655 'label' => __( 'Post Title', 'post-grid-carousel-ultimate' ),
656 ),
657 array(
658 'mode' => 'tabs_start',
659 'id' => 'title_style_tab',
660 ),
661 array(
662 'mode' => 'tab_start',
663 'id' => 'title_normal_tab',
664 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
665 ),
666 array(
667 'type' => Controls_Manager::COLOR,
668 'id' => 'title_font_color',
669 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
670 'selectors' => [
671 '{{WRAPPER}} .pgcu-post__title a' => 'color: {{VALUE}} !important'
672 ],
673 ),
674 array(
675 'type' => Controls_Manager::COLOR,
676 'id' => 'title_back_color',
677 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
678 'selectors' => [
679 '{{WRAPPER}} .pgcu-post__title' => 'background-color: {{VALUE}}'
680 ],
681 ),
682 array(
683 'type' => Controls_Manager::COLOR,
684 'id' => 'title_border_color',
685 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
686 'selectors' => [
687 '{{WRAPPER}} .pgcu-post__title' => 'border-color: {{VALUE}}'
688 ],
689 ),
690 array(
691 'type' => Controls_Manager::NUMBER,
692 'id' => 'title_transition_duration',
693 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
694 'min' => 0,
695 'max' => 5,
696 'step' => 0.1,
697 'selectors' => [
698 '{{WRAPPER}} .pgcu-post__title' => 'transition-duration: {{VALUE}} !important'
699 ],
700 ),
701 array(
702 'mode' => 'group',
703 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
704 'id' => 'title_typography',
705 'type' => Group_Control_Typography::get_type(),
706 'selector' => '{{WRAPPER}} .pgcu-post__title a',
707 'scheme' => Typography::TYPOGRAPHY_3,
708 ),
709 array(
710 'type' => Controls_Manager::SELECT,
711 'id' => 'title_border_type',
712 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
713 'options' => array(
714 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
715 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
716 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
717 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
718 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
719 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
720 ),
721 'selectors' => [
722 '{{WRAPPER}} .pgcu-post__title' => 'border-style: {{VALUE}}'
723 ],
724 ),
725 array(
726 'mode' => 'responsive',
727 'type' => Controls_Manager::DIMENSIONS,
728 'id' => 'title_padding',
729 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
730 'selectors' => [
731 '{{WRAPPER}} .pgcu-post__title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
732 ],
733 ),
734 array(
735 'mode' => 'responsive',
736 'type' => Controls_Manager::DIMENSIONS,
737 'id' => 'title_margin',
738 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
739 'selectors' => [
740 '{{WRAPPER}} .pgcu-post__title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
741 ],
742 ),
743 array(
744 'mode' => 'tab_end',
745 ),
746 array(
747 'mode' => 'tab_start',
748 'id' => 'title_hover_tab',
749 'label' => __( 'HOVER', 'post-grid-carousel-ultimate' ),
750 ),
751 array(
752 'type' => Controls_Manager::COLOR,
753 'id' => 'title_hover_font_color',
754 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
755 'selectors' => [
756 '{{WRAPPER}} .pgcu-post__title a:hover' => 'color: {{VALUE}} !important'
757 ],
758 ),
759 array(
760 'type' => Controls_Manager::COLOR,
761 'id' => 'title_hover_back_color',
762 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
763 'selectors' => [
764 '{{WRAPPER}} .pgcu-post__title:hover' => 'background-color: {{VALUE}} !important'
765 ],
766 ),
767 array(
768 'type' => Controls_Manager::COLOR,
769 'id' => 'title_hover_border_color',
770 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
771 'selectors' => [
772 '{{WRAPPER}} .pgcu-post__title:hover' => 'border-color: {{VALUE}}'
773 ],
774 ),
775 array(
776 'type' => Controls_Manager::NUMBER,
777 'id' => 'title_hover_transition_duration',
778 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
779 'min' => 0,
780 'max' => 5,
781 'step' => 0.1,
782 'selectors' => [
783 '{{WRAPPER}} .pgcu-post__title:hover' => 'transition-duration: {{VALUE}} !important'
784 ],
785 ),
786 array(
787 'mode' => 'group',
788 'id' => 'title_hover_title_typography',
789 'type' => Group_Control_Typography::get_type(),
790 'selector' => '{{WRAPPER}} .pgcu-post__title:hover',
791 'scheme' => Typography::TYPOGRAPHY_3,
792 ),
793 array(
794 'type' => Controls_Manager::SELECT,
795 'id' => 'title_hover_border_type',
796 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
797 'options' => array(
798 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
799 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
800 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
801 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
802 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
803 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
804 ),
805 'selectors' => [
806 '{{WRAPPER}} .pgcu-post__title:hover' => 'border-style: {{VALUE}}'
807 ],
808 ),
809 array(
810 'mode' => 'responsive',
811 'type' => Controls_Manager::DIMENSIONS,
812 'id' => 'title_hover_padding',
813 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
814 'selectors' => [
815 '{{WRAPPER}} .pgcu-post__title:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
816 ],
817 ),
818 array(
819 'mode' => 'responsive',
820 'type' => Controls_Manager::DIMENSIONS,
821 'id' => 'title_hover_margin',
822 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
823 'selectors' => [
824 '{{WRAPPER}} .pgcu-post__title:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
825 ],
826 ),
827 array(
828 'mode' => 'tab_end',
829 ),
830 array(
831 'mode' => 'tabs_end',
832 ),
833 array(
834 'mode' => 'section_end',
835 ),
836
837 array(
838 'mode' => 'section_start',
839 'tab' => Controls_Manager::TAB_STYLE,
840 'id' => 'post_meta_tab',
841 'label' => __( 'Post Meta', 'post-grid-carousel-ultimate' ),
842 ),
843 array(
844 'mode' => 'tabs_start',
845 'id' => 'meta_style_tab',
846 ),
847 array(
848 'mode' => 'tab_start',
849 'id' => 'meta_normal_tab',
850 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
851 ),
852 array(
853 'type' => Controls_Manager::COLOR,
854 'id' => 'meta_font_color',
855 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
856 'selectors' => [
857 '{{WRAPPER}} .pgcu-post__meta li a' => 'color: {{VALUE}} !important',
858 '{{WRAPPER}} .pgcu-post__meta li span' => 'color: {{VALUE}} !important',
859 '{{WRAPPER}} .pgcu-post__meta li svg' => 'fill: {{VALUE}} !important',
860 '{{WRAPPER}} .pgcu-post__meta__ert svg' => 'fill: {{VALUE}} !important',
861 '{{WRAPPER}} .pgcu-post__meta__ert span' => 'color: {{VALUE}} !important',
862 '{{WRAPPER}} .pgcu-post__meta__author a' => 'color: {{VALUE}} !important',
863 '{{WRAPPER}} .pgcu-cat' => 'color: {{VALUE}} !important',
864 ],
865 ),
866 array(
867 'type' => Controls_Manager::COLOR,
868 'id' => 'meta_back_color',
869 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
870 'selectors' => [
871 '{{WRAPPER}} .pgcu-post__meta' => 'background-color: {{VALUE}} !important',
872 '{{WRAPPER}} .pgcu-post__meta__ert' => 'background-color: {{VALUE}} !important',
873 '{{WRAPPER}} .pgcu-post__meta__author' => 'background-color: {{VALUE}} !important',
874 '{{WRAPPER}} .pgcu-cat' => 'background-color: {{VALUE}} !important',
875 ],
876 ),
877 array(
878 'type' => Controls_Manager::COLOR,
879 'id' => 'meta_border_color',
880 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
881 'selectors' => [
882 '{{WRAPPER}} .pgcu-post__meta' => 'border-color: {{VALUE}} !important',
883 '{{WRAPPER}} .pgcu-post__meta__ert' => 'border-color: {{VALUE}} !important',
884 '{{WRAPPER}} .pgcu-post__meta__author' => 'border-color: {{VALUE}} !important',
885 '{{WRAPPER}} .pgcu-cat' => 'border-color: {{VALUE}} !important',
886 ],
887 ),
888 array(
889 'type' => Controls_Manager::SLIDER,
890 'id' => 'meta_font_size',
891 'label' => __( 'Font Size', 'post-grid-carousel-ultimate' ),
892 'size_units' => [ 'px' ],
893 'range' => [
894 'px' => [
895 'min' => 0,
896 'max' => 40,
897 ]
898 ],
899 'selectors' => [
900 '{{WRAPPER}} .pgcu-post__meta li a' => 'font-size: {{SIZE}}{{UNIT}} !important',
901 '{{WRAPPER}} .pgcu-post__meta li span' => 'font-size: {{SIZE}}{{UNIT}} !important',
902 '{{WRAPPER}} .pgcu-post__meta li svg' => 'width: {{SIZE}}{{UNIT}} !important',
903 '{{WRAPPER}} .pgcu-post__meta__ert svg' => 'width: {{SIZE}}{{UNIT}} !important',
904 '{{WRAPPER}} .pgcu-post__meta__ert span' => 'font-size: {{SIZE}}{{UNIT}} !important',
905 '{{WRAPPER}} .pgcu-post__meta__author a' => 'font-size: {{SIZE}}{{UNIT}} !important',
906 '{{WRAPPER}} .pgcu-cat' => 'font-size: {{SIZE}}{{UNIT}} !important',
907 ],
908 ),
909 array(
910 'type' => Controls_Manager::SELECT,
911 'id' => 'meta_border_type',
912 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
913 'options' => array(
914 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
915 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
916 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
917 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
918 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
919 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
920 ),
921 'selectors' => [
922 '{{WRAPPER}} .pgcu-post__meta' => 'border-style: {{VALUE}} !important',
923 '{{WRAPPER}} .pgcu-post__meta__ert' => 'border-style: {{VALUE}} !important',
924 '{{WRAPPER}} .pgcu-cat' => 'border-style: {{VALUE}} !important',
925 ],
926 ),
927 array(
928 'mode' => 'responsive',
929 'type' => Controls_Manager::DIMENSIONS,
930 'id' => 'meta_padding',
931 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
932 'selectors' => [
933 '{{WRAPPER}} .pgcu-post__meta' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
934 '{{WRAPPER}} .pgcu-post__meta__ert' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
935 '{{WRAPPER}} .pgcu-post__meta__author' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
936 '{{WRAPPER}} .pgcu-cat' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
937 ],
938 ),
939 array(
940 'mode' => 'responsive',
941 'type' => Controls_Manager::DIMENSIONS,
942 'id' => 'meta_margin',
943 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
944 'selectors' => [
945 '{{WRAPPER}} .pgcu-post__meta' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
946 '{{WRAPPER}} .pgcu-post__meta__ert' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
947 '{{WRAPPER}} .pgcu-post__meta__author' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
948 '{{WRAPPER}} .pgcu-cat' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
949 ],
950 ),
951 array(
952 'mode' => 'tab_end',
953 ),
954 array(
955 'mode' => 'tab_start',
956 'id' => 'meta_hover_tab',
957 'label' => __( 'Hover', 'post-grid-carousel-ultimate' ),
958 ),
959 array(
960 'type' => Controls_Manager::COLOR,
961 'id' => 'meta_hover_font_color',
962 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
963 'selectors' => [
964 '{{WRAPPER}} .pgcu-post__meta li a:hover' => 'color: {{VALUE}} !important',
965 '{{WRAPPER}} .pgcu-post__meta li span:hover' => 'color: {{VALUE}} !important',
966 '{{WRAPPER}} .pgcu-post__meta li svg:hover' => 'fill: {{VALUE}} !important',
967 '{{WRAPPER}} .pgcu-post__meta__ert svg:hover' => 'fill: {{VALUE}} !important',
968 '{{WRAPPER}} .pgcu-post__meta__ert span:hover' => 'color: {{VALUE}} !important',
969 '{{WRAPPER}} .pgcu-post__meta__author a:hover' => 'color: {{VALUE}} !important',
970 '{{WRAPPER}} .pgcu-cat a:hover' => 'color: {{VALUE}} !important',
971 ],
972 ),
973 array(
974 'type' => Controls_Manager::COLOR,
975 'id' => 'meta_hover_back_color',
976 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
977 'selectors' => [
978 '{{WRAPPER}} .pgcu-post__meta:hover' => 'background-color: {{VALUE}} !important',
979 '{{WRAPPER}} .pgcu-post__meta__ert:hover' => 'background-color: {{VALUE}} !important',
980 '{{WRAPPER}} .pgcu-post__meta__author:hover' => 'background-color: {{VALUE}} !important',
981 '{{WRAPPER}} .pgcu-cat:hover' => 'background-color: {{VALUE}} !important',
982 ],
983 ),
984 array(
985 'type' => Controls_Manager::COLOR,
986 'id' => 'meta_hover_border_color',
987 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
988 'selectors' => [
989 '{{WRAPPER}} .pgcu-post__meta:hover' => 'border-color: {{VALUE}} !important',
990 '{{WRAPPER}} .pgcu-post__meta__ert:hover' => 'border-color: {{VALUE}} !important',
991 '{{WRAPPER}} .pgcu-post__meta__author:hover' => 'border-color: {{VALUE}} !important',
992 '{{WRAPPER}} .pgcu-cat:hover' => 'border-color: {{VALUE}} !important',
993 ],
994 ),
995 array(
996 'type' => Controls_Manager::SLIDER,
997 'id' => 'meta_hover_font_size',
998 'label' => __( 'Font Size', 'post-grid-carousel-ultimate' ),
999 'size_units' => [ 'px' ],
1000 'range' => [
1001 'px' => [
1002 'min' => 0,
1003 'max' => 40,
1004 ]
1005 ],
1006 'selectors' => [
1007 '{{WRAPPER}} .pgcu-post__meta li a:hover' => 'font-size: {{SIZE}}{{UNIT}} !important',
1008 '{{WRAPPER}} .pgcu-post__meta li span:hover' => 'font-size: {{SIZE}}{{UNIT}} !important',
1009 '{{WRAPPER}} .pgcu-post__meta li svg:hover' => 'width: {{SIZE}}{{UNIT}} !important',
1010 '{{WRAPPER}} .pgcu-post__meta__ert svg:hover' => 'width: {{SIZE}}{{UNIT}} !important',
1011 '{{WRAPPER}} .pgcu-post__meta__ert span:hover' => 'font-size: {{SIZE}}{{UNIT}} !important',
1012 '{{WRAPPER}} .pgcu-post__meta__author a:hover' => 'font-size: {{SIZE}}{{UNIT}} !important',
1013 '{{WRAPPER}} .pgcu-cat a:hover' => 'font-size: {{SIZE}}{{UNIT}} !important',
1014 ],
1015 ),
1016 array(
1017 'type' => Controls_Manager::SELECT,
1018 'id' => 'meta_hover_border_type',
1019 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1020 'options' => array(
1021 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1022 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1023 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1024 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1025 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1026 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1027 ),
1028 'selectors' => [
1029 '{{WRAPPER}} .pgcu-post__meta:hover' => 'border-style: {{VALUE}} !important',
1030 '{{WRAPPER}} .pgcu-post__meta__ert:hover' => 'border-style: {{VALUE}} !important',
1031 '{{WRAPPER}} .pgcu-cat:hover' => 'border-style: {{VALUE}} !important',
1032 ],
1033 ),
1034 array(
1035 'mode' => 'responsive',
1036 'type' => Controls_Manager::DIMENSIONS,
1037 'id' => 'meta_hover_padding',
1038 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1039 'selectors' => [
1040 '{{WRAPPER}} .pgcu-post__meta:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1041 '{{WRAPPER}} .pgcu-post__meta__ert:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1042 '{{WRAPPER}} .pgcu-post__meta__author:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1043 '{{WRAPPER}} .pgcu-cat:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1044 ],
1045 ),
1046 array(
1047 'mode' => 'responsive',
1048 'type' => Controls_Manager::DIMENSIONS,
1049 'id' => 'meta_hover_margin',
1050 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1051 'selectors' => [
1052 '{{WRAPPER}} .pgcu-post__meta:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1053 '{{WRAPPER}} .pgcu-post__meta__ert:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1054 '{{WRAPPER}} .pgcu-post__meta__author:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1055 '{{WRAPPER}} .pgcu-cat:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1056 ],
1057 ),
1058 array(
1059 'mode' => 'tab_end',
1060 ),
1061 array(
1062 'mode' => 'tabs_end',
1063 ),
1064 array(
1065 'mode' => 'section_end',
1066 ),
1067 array(
1068 'mode' => 'section_start',
1069 'tab' => Controls_Manager::TAB_STYLE,
1070 'id' => 'content_tab',
1071 'label' => __( 'Content', 'post-grid-carousel-ultimate' ),
1072 ),
1073 array(
1074 'mode' => 'tabs_start',
1075 'id' => 'content_style_tab',
1076 ),
1077 array(
1078 'mode' => 'tab_start',
1079 'id' => 'content_normal_tab',
1080 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
1081 ),
1082 array(
1083 'type' => Controls_Manager::COLOR,
1084 'id' => 'content_font_color',
1085 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1086 'selectors' => [
1087 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt' => 'color: {{VALUE}} !important'
1088 ],
1089 ),
1090 array(
1091 'type' => Controls_Manager::COLOR,
1092 'id' => 'content_back_color',
1093 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1094 'selectors' => [
1095 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt' => 'background-color: {{VALUE}}'
1096 ],
1097 ),
1098 array(
1099 'type' => Controls_Manager::COLOR,
1100 'id' => 'content_border_color',
1101 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1102 'selectors' => [
1103 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt' => 'border-color: {{VALUE}}'
1104 ],
1105 ),
1106 array(
1107 'mode' => 'group',
1108 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
1109 'id' => 'content_title_typography',
1110 'type' => Group_Control_Typography::get_type(),
1111 'selector' => '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt',
1112 'scheme' => Typography::TYPOGRAPHY_3,
1113 ),
1114 array(
1115 'type' => Controls_Manager::SELECT,
1116 'id' => 'content_border_type',
1117 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1118 'options' => array(
1119 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1120 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1121 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1122 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1123 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1124 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1125 ),
1126 'selectors' => [
1127 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt' => 'border-style: {{VALUE}}'
1128 ],
1129 ),
1130 array(
1131 'mode' => 'responsive',
1132 'type' => Controls_Manager::DIMENSIONS,
1133 'id' => 'content_padding',
1134 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1135 'selectors' => [
1136 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1137 ],
1138 ),
1139 array(
1140 'mode' => 'responsive',
1141 'type' => Controls_Manager::DIMENSIONS,
1142 'id' => 'content_margin',
1143 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1144 'selectors' => [
1145 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1146 ],
1147 ),
1148 array(
1149 'mode' => 'tab_end',
1150 ),
1151 array(
1152 'mode' => 'tab_start',
1153 'id' => 'content_hover_tab',
1154 'label' => __( 'Hover', 'post-grid-carousel-ultimate' ),
1155 ),
1156 array(
1157 'type' => Controls_Manager::COLOR,
1158 'id' => 'content_hover_font_color',
1159 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1160 'selectors' => [
1161 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt:hover' => 'color: {{VALUE}} !important'
1162 ],
1163 ),
1164 array(
1165 'type' => Controls_Manager::COLOR,
1166 'id' => 'content_hover_back_color',
1167 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1168 'selectors' => [
1169 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt:hover' => 'background-color: {{VALUE}}'
1170 ],
1171 ),
1172 array(
1173 'type' => Controls_Manager::COLOR,
1174 'id' => 'content_hover_border_color',
1175 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1176 'selectors' => [
1177 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt:hover' => 'border-color: {{VALUE}}'
1178 ],
1179 ),
1180 array(
1181 'mode' => 'group',
1182 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
1183 'id' => 'content_hover_title_typography',
1184 'type' => Group_Control_Typography::get_type(),
1185 'selector' => '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt:hover',
1186 'scheme' => Typography::TYPOGRAPHY_3,
1187 ),
1188 array(
1189 'type' => Controls_Manager::SELECT,
1190 'id' => 'content_hover_border_type',
1191 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1192 'options' => array(
1193 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1194 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1195 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1196 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1197 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1198 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1199 ),
1200 'selectors' => [
1201 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt:hover' => 'border-style: {{VALUE}}'
1202 ],
1203 ),
1204 array(
1205 'mode' => 'responsive',
1206 'type' => Controls_Manager::DIMENSIONS,
1207 'id' => 'content_hover_padding',
1208 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1209 'selectors' => [
1210 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1211 ],
1212 ),
1213 array(
1214 'mode' => 'responsive',
1215 'type' => Controls_Manager::DIMENSIONS,
1216 'id' => 'content_hover_margin',
1217 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1218 'selectors' => [
1219 '{{WRAPPER}} .pgcu-post__details .pgcu-post__excerpt:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1220 ],
1221 ),
1222 array(
1223 'mode' => 'tab_end',
1224 ),
1225 array(
1226 'mode' => 'tabs_end',
1227 ),
1228 array(
1229 'mode' => 'section_end',
1230 ),
1231
1232 array(
1233 'mode' => 'section_start',
1234 'tab' => Controls_Manager::TAB_STYLE,
1235 'id' => 'read_more_tab',
1236 'label' => __( 'Read More', 'post-grid-carousel-ultimate' ),
1237 ),
1238 array(
1239 'mode' => 'tabs_start',
1240 'id' => 'read_more_style_tab',
1241 ),
1242 array(
1243 'mode' => 'tab_start',
1244 'id' => 'read_more_normal_tab',
1245 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
1246 ),
1247 array(
1248 'type' => Controls_Manager::COLOR,
1249 'id' => 'read_font_color',
1250 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1251 'selectors' => [
1252 '{{WRAPPER}} .pgcu-read-more' => 'color: {{VALUE}} !important',
1253 '{{WRAPPER}} .pgcu-read-more svg' => 'fill: {{VALUE}} !important'
1254 ],
1255 ),
1256 array(
1257 'type' => Controls_Manager::COLOR,
1258 'id' => 'read_back_color',
1259 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1260 'selectors' => [
1261 '{{WRAPPER}} .pgcu-read-more' => 'background-color: {{VALUE}} !important;'
1262 ],
1263 ),
1264 array(
1265 'type' => Controls_Manager::COLOR,
1266 'id' => 'read_border_color',
1267 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1268 'selectors' => [
1269 '{{WRAPPER}} .pgcu-read-more' => 'border-color: {{VALUE}} !important;'
1270 ],
1271 ),
1272 array(
1273 'type' => Controls_Manager::NUMBER,
1274 'id' => 'read_transition_duration',
1275 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
1276 'min' => 0,
1277 'max' => 5,
1278 'step' => 0.1,
1279 'selectors' => [
1280 '{{WRAPPER}} .pgcu-read-more' => 'transition-duration: {{VALUE}} !important'
1281 ],
1282 ),
1283 array(
1284 'mode' => 'group',
1285 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
1286 'id' => 'read_shadow',
1287 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
1288 'selector' => '{{WRAPPER}} .pgcu-read-more',
1289 ),
1290 array(
1291 'mode' => 'group',
1292 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
1293 'id' => 'read_typography',
1294 'type' => Group_Control_Typography::get_type(),
1295 'selector' => '{{WRAPPER}} .pgcu-read-more',
1296 'scheme' => Typography::TYPOGRAPHY_3,
1297 ),
1298 array(
1299 'type' => Controls_Manager::SELECT,
1300 'id' => 'read_border_type',
1301 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1302 'options' => array(
1303 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1304 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1305 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1306 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1307 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1308 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1309 ),
1310 'selectors' => [
1311 '{{WRAPPER}} .pgcu-read-more' => 'border-style: {{VALUE}} !important;',
1312
1313 ],
1314 ),
1315 array(
1316 'mode' => 'responsive',
1317 'type' => Controls_Manager::DIMENSIONS,
1318 'id' => 'read_border_width',
1319 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
1320 'selectors' => [
1321 '{{WRAPPER}} .pgcu-read-more' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1322 ],
1323 'condition' => [
1324 'read_border_type!' => 'none',
1325 ],
1326 ),
1327 array(
1328 'mode' => 'responsive',
1329 'type' => Controls_Manager::DIMENSIONS,
1330 'id' => 'read_border_radius',
1331 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
1332 'selectors' => [
1333 '{{WRAPPER}} .pgcu-read-more' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1334 ],
1335 'condition' => [
1336 'read_border_type!' => 'none',
1337 ],
1338 ),
1339 array(
1340 'mode' => 'responsive',
1341 'type' => Controls_Manager::DIMENSIONS,
1342 'id' => 'read_padding',
1343 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1344 'selectors' => [
1345 '{{WRAPPER}} .pgcu-read-more' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1346 ],
1347 ),
1348 array(
1349 'mode' => 'responsive',
1350 'type' => Controls_Manager::DIMENSIONS,
1351 'id' => 'read_margin',
1352 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1353 'selectors' => [
1354 '{{WRAPPER}} .pgcu-read-more' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1355 ],
1356 ),
1357 array(
1358 'mode' => 'tab_end',
1359 ),
1360 array(
1361 'mode' => 'tab_start',
1362 'id' => 'read_more_hover_normal_tab',
1363 'label' => __( 'HOVER', 'post-grid-carousel-ultimate' ),
1364 ),
1365 array(
1366 'type' => Controls_Manager::COLOR,
1367 'id' => 'read_hover_font_color',
1368 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1369 'selectors' => [
1370 '{{WRAPPER}} .pgcu-read-more:hover' => 'color: {{VALUE}} !important',
1371 '{{WRAPPER}} .pgcu-read-more svg:hover' => 'fill: {{VALUE}} !important'
1372 ],
1373 ),
1374 array(
1375 'type' => Controls_Manager::COLOR,
1376 'id' => 'read_hover_back_color',
1377 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1378 'selectors' => [
1379 '{{WRAPPER}} .pgcu-read-more:hover' => 'background-color: {{VALUE}} !important;'
1380 ],
1381 ),
1382 array(
1383 'type' => Controls_Manager::COLOR,
1384 'id' => 'read_hover_border_color',
1385 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1386 'selectors' => [
1387 '{{WRAPPER}} .pgcu-read-more:hover' => 'border-color: {{VALUE}} !important;'
1388 ],
1389 ),
1390 array(
1391 'type' => Controls_Manager::NUMBER,
1392 'id' => 'read_hover_transition_duration',
1393 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
1394 'min' => 0,
1395 'max' => 5,
1396 'step' => 0.1,
1397 'selectors' => [
1398 '{{WRAPPER}} .pgcu-read-more:hover' => 'transition-duration: {{VALUE}} !important'
1399 ],
1400 ),
1401 array(
1402 'mode' => 'group',
1403 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
1404 'id' => 'read_hover_shadow',
1405 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
1406 'selector' => '{{WRAPPER}} .pgcu-read-more:hover',
1407 ),
1408 array(
1409 'mode' => 'group',
1410 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
1411 'id' => 'read_hover_typography',
1412 'type' => Group_Control_Typography::get_type(),
1413 'selector' => '{{WRAPPER}} .pgcu-read-more:hover',
1414 'scheme' => Typography::TYPOGRAPHY_3,
1415 ),
1416 array(
1417 'type' => Controls_Manager::SELECT,
1418 'id' => 'read_hover_border_type',
1419 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1420 'options' => array(
1421 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1422 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1423 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1424 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1425 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1426 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1427 ),
1428 'selectors' => [
1429 '{{WRAPPER}} .pgcu-read-more:hover' => 'border-style: {{VALUE}} !important;',
1430
1431 ],
1432 ),
1433 array(
1434 'mode' => 'responsive',
1435 'type' => Controls_Manager::DIMENSIONS,
1436 'id' => 'read_hover_border_width',
1437 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
1438 'selectors' => [
1439 '{{WRAPPER}} .pgcu-read-more:hover' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1440 ],
1441 'condition' => [
1442 'read_hover_border_type!' => 'none',
1443 ],
1444 ),
1445 array(
1446 'mode' => 'responsive',
1447 'type' => Controls_Manager::DIMENSIONS,
1448 'id' => 'read_hover_border_radius',
1449 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
1450 'selectors' => [
1451 '{{WRAPPER}} .pgcu-read-more:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1452 ],
1453 'condition' => [
1454 'read_hover_border_type!' => 'none',
1455 ],
1456 ),
1457 array(
1458 'mode' => 'responsive',
1459 'type' => Controls_Manager::DIMENSIONS,
1460 'id' => 'read_hover_padding',
1461 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1462 'selectors' => [
1463 '{{WRAPPER}} .pgcu-read-more:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1464 ],
1465 ),
1466 array(
1467 'mode' => 'responsive',
1468 'type' => Controls_Manager::DIMENSIONS,
1469 'id' => 'read_hover_margin',
1470 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1471 'selectors' => [
1472 '{{WRAPPER}} .pgcu-read-more:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1473 ],
1474 ),
1475 array(
1476 'mode' => 'tab_end',
1477 ),
1478 array(
1479 'mode' => 'tabs_end',
1480 ),
1481 array(
1482 'mode' => 'section_end',
1483 ),
1484
1485
1486 array(
1487 'mode' => 'section_start',
1488 'tab' => Controls_Manager::TAB_STYLE,
1489 'id' => 'quick_view_tab',
1490 'label' => __( 'Quick View Button', 'post-grid-carousel-ultimate' ),
1491 'condition' => [
1492 'theme' => [ 'theme_8', 'theme_9' ]
1493 ],
1494 ),
1495 array(
1496 'mode' => 'tabs_start',
1497 'id' => 'quick_style_tab',
1498 ),
1499 array(
1500 'mode' => 'tab_start',
1501 'id' => 'quick_normal_tab',
1502 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
1503 ),
1504 array(
1505 'type' => Controls_Manager::COLOR,
1506 'id' => 'quick_font_color',
1507 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1508 'selectors' => [
1509 '{{WRAPPER}} .wpcu-quick-view-btn' => 'color: {{VALUE}} !important'
1510 ],
1511 ),
1512 array(
1513 'type' => Controls_Manager::COLOR,
1514 'id' => 'quick_back_color',
1515 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1516 'selectors' => [
1517 '{{WRAPPER}} .wpcu-quick-view-btn' => 'background-color: {{VALUE}} !important;'
1518 ],
1519 ),
1520 array(
1521 'type' => Controls_Manager::COLOR,
1522 'id' => 'quick_border_color',
1523 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1524 'selectors' => [
1525 '{{WRAPPER}} .wpcu-quick-view-btn' => 'border-color: {{VALUE}} !important;'
1526 ],
1527 ),
1528 array(
1529 'type' => Controls_Manager::NUMBER,
1530 'id' => 'quick_transition_duration',
1531 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
1532 'min' => 0,
1533 'max' => 5,
1534 'step' => 0.1,
1535 'selectors' => [
1536 '{{WRAPPER}} .wpcu-quick-view-btn' => 'transition-duration: {{VALUE}} !important'
1537 ],
1538 ),
1539 array(
1540 'mode' => 'group',
1541 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
1542 'id' => 'quick_shadow',
1543 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
1544 'selector' => '{{WRAPPER}} .wpcu-quick-view-btn',
1545 ),
1546 array(
1547 'mode' => 'group',
1548 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
1549 'id' => 'quick_typography',
1550 'type' => Group_Control_Typography::get_type(),
1551 'selector' => '{{WRAPPER}} .wpcu-quick-view-btn',
1552 'scheme' => Typography::TYPOGRAPHY_3,
1553 ),
1554 array(
1555 'type' => Controls_Manager::SELECT,
1556 'id' => 'quick_border_type',
1557 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1558 'options' => array(
1559 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1560 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1561 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1562 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1563 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1564 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1565 ),
1566 'selectors' => [
1567 '{{WRAPPER}} .wpcu-quick-view-btn' => 'border-style: {{VALUE}} !important;',
1568
1569 ],
1570 ),
1571 array(
1572 'mode' => 'responsive',
1573 'type' => Controls_Manager::DIMENSIONS,
1574 'id' => 'quick_border_width',
1575 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
1576 'selectors' => [
1577 '{{WRAPPER}} .wpcu-quick-view-btn' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1578 ],
1579 'condition' => [
1580 'quick_border_type!' => 'none',
1581 ],
1582 ),
1583 array(
1584 'mode' => 'responsive',
1585 'type' => Controls_Manager::DIMENSIONS,
1586 'id' => 'quick_border_radius',
1587 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
1588 'selectors' => [
1589 '{{WRAPPER}} .wpcu-quick-view-btn' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1590 ],
1591 'condition' => [
1592 'quick_border_type!' => 'none',
1593 ],
1594 ),
1595 array(
1596 'mode' => 'responsive',
1597 'type' => Controls_Manager::DIMENSIONS,
1598 'id' => 'quick_padding',
1599 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1600 'selectors' => [
1601 '{{WRAPPER}} .wpcu-quick-view-btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1602 ],
1603 ),
1604 array(
1605 'mode' => 'responsive',
1606 'type' => Controls_Manager::DIMENSIONS,
1607 'id' => 'quick_margin',
1608 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1609 'selectors' => [
1610 '{{WRAPPER}} .wpcu-quick-view-btn' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1611 ],
1612 ),
1613 array(
1614 'mode' => 'tab_end',
1615 ),
1616 array(
1617 'mode' => 'tab_start',
1618 'id' => 'quick_hover_normal_tab',
1619 'label' => __( 'Hover', 'post-grid-carousel-ultimate' ),
1620 ),
1621 array(
1622 'type' => Controls_Manager::COLOR,
1623 'id' => 'quick_hover_font_color',
1624 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1625 'selectors' => [
1626 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'color: {{VALUE}} !important'
1627 ],
1628 ),
1629 array(
1630 'type' => Controls_Manager::COLOR,
1631 'id' => 'quick_hover_back_color',
1632 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1633 'selectors' => [
1634 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'background-color: {{VALUE}} !important;'
1635 ],
1636 ),
1637 array(
1638 'type' => Controls_Manager::COLOR,
1639 'id' => 'quick_hover_border_color',
1640 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1641 'selectors' => [
1642 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'border-color: {{VALUE}} !important;'
1643 ],
1644 ),
1645 array(
1646 'type' => Controls_Manager::NUMBER,
1647 'id' => 'quick_hover_transition_duration',
1648 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
1649 'min' => 0,
1650 'max' => 5,
1651 'step' => 0.1,
1652 'selectors' => [
1653 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'transition-duration: {{VALUE}} !important'
1654 ],
1655 ),
1656 array(
1657 'mode' => 'group',
1658 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
1659 'id' => 'quick_hover_shadow',
1660 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
1661 'selector' => '{{WRAPPER}} .wpcu-quick-view-btn:hover',
1662 ),
1663 array(
1664 'mode' => 'group',
1665 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
1666 'id' => 'quick_hover_typography',
1667 'type' => Group_Control_Typography::get_type(),
1668 'selector' => '{{WRAPPER}} .wpcu-quick-view-btn:hover',
1669 'scheme' => Typography::TYPOGRAPHY_3,
1670 ),
1671 array(
1672 'type' => Controls_Manager::SELECT,
1673 'id' => 'quick_hover_border_type',
1674 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1675 'options' => array(
1676 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1677 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1678 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1679 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1680 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1681 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1682 ),
1683 'selectors' => [
1684 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'border-style: {{VALUE}} !important;',
1685
1686 ],
1687 ),
1688 array(
1689 'mode' => 'responsive',
1690 'type' => Controls_Manager::DIMENSIONS,
1691 'id' => 'quick_hover_border_width',
1692 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
1693 'selectors' => [
1694 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1695 ],
1696 'condition' => [
1697 'quick_border_type!' => 'none',
1698 ],
1699 ),
1700 array(
1701 'mode' => 'responsive',
1702 'type' => Controls_Manager::DIMENSIONS,
1703 'id' => 'quick_hover_border_radius',
1704 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
1705 'selectors' => [
1706 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1707 ],
1708 'condition' => [
1709 'quick_border_type!' => 'none',
1710 ],
1711 ),
1712 array(
1713 'mode' => 'responsive',
1714 'type' => Controls_Manager::DIMENSIONS,
1715 'id' => 'quick_hover_padding',
1716 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1717 'selectors' => [
1718 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1719 ],
1720 ),
1721 array(
1722 'mode' => 'responsive',
1723 'type' => Controls_Manager::DIMENSIONS,
1724 'id' => 'quick_hover_margin',
1725 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1726 'selectors' => [
1727 '{{WRAPPER}} .wpcu-quick-view-btn:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1728 ],
1729 ),
1730 array(
1731 'mode' => 'tab_end',
1732 ),
1733 array(
1734 'mode' => 'tabs_end',
1735 ),
1736 array(
1737 'mode' => 'section_end',
1738 ),
1739 array(
1740 'mode' => 'section_start',
1741 'tab' => Controls_Manager::TAB_STYLE,
1742 'id' => 'carousel_navigation',
1743 'label' => __( 'Navigation', 'post-grid-carousel-ultimate' ),
1744 'condition' => array(
1745 'layout' => 'carousel',
1746 'navigation' => 'yes'
1747 )
1748 ),
1749 array(
1750 'mode' => 'tabs_start',
1751 'id' => 'nav_style_tab',
1752 ),
1753 array(
1754 'mode' => 'tab_start',
1755 'id' => 'nav_normal_tab',
1756 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
1757 ),
1758 array(
1759 'type' => Controls_Manager::COLOR,
1760 'id' => 'nav_font_color',
1761 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1762 'selectors' => [
1763 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn svg' => 'fill: {{VALUE}} !important;',
1764 ],
1765 ),
1766 array(
1767 'type' => Controls_Manager::COLOR,
1768 'id' => 'nav_back_color',
1769 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1770 'selectors' => [
1771 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn' => 'background-color: {{VALUE}} !important;'
1772 ],
1773 ),
1774 array(
1775 'type' => Controls_Manager::COLOR,
1776 'id' => 'nav_border_color',
1777 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1778 'selectors' => [
1779 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn' => 'border-color: {{VALUE}} !important;'
1780 ],
1781 ),
1782 array(
1783 'type' => Controls_Manager::NUMBER,
1784 'id' => 'nav_transition_duration',
1785 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
1786 'min' => 0,
1787 'max' => 5,
1788 'step' => 0.1,
1789 'selectors' => [
1790 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn' => 'transition-duration: {{VALUE}} !important'
1791 ],
1792 ),
1793 array(
1794 'mode' => 'group',
1795 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
1796 'id' => 'nav_pagi_shadow',
1797 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
1798 'selector' => '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn',
1799 ),
1800 array(
1801 'type' => Controls_Manager::SLIDER,
1802 'id' => 'nav_font_size',
1803 'label' => __( 'Arrow Font Size', 'post-grid-carousel-ultimate' ),
1804 'size_units' => [ 'px' ],
1805 'range' => [
1806 'px' => [
1807 'min' => 0,
1808 'max' => 20,
1809 ]
1810 ],
1811 'selectors' => [
1812 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn svg' => 'width: {{SIZE}}{{UNIT}} !important'
1813 ],
1814 ),
1815 array(
1816 'type' => Controls_Manager::SELECT,
1817 'id' => 'nav_border_type',
1818 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1819 'options' => array(
1820 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1821 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1822 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1823 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1824 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1825 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1826 ),
1827 'selectors' => [
1828 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn' => 'border-style: {{VALUE}} !important;',
1829
1830 ],
1831 ),
1832 array(
1833 'mode' => 'responsive',
1834 'type' => Controls_Manager::DIMENSIONS,
1835 'id' => 'nav_border_width',
1836 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
1837 'selectors' => [
1838 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1839 ],
1840 'condition' => [
1841 'nav_border_type!' => 'none',
1842 ],
1843 ),
1844 array(
1845 'mode' => 'responsive',
1846 'type' => Controls_Manager::DIMENSIONS,
1847 'id' => 'nav_border_radius',
1848 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
1849 'selectors' => [
1850 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1851 ],
1852 'condition' => [
1853 'nav_border_type!' => 'none',
1854 ],
1855 ),
1856 array(
1857 'mode' => 'responsive',
1858 'type' => Controls_Manager::DIMENSIONS,
1859 'id' => 'nav_padding',
1860 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1861 'selectors' => [
1862 '{{WRAPPER}} .pgcu-carousel-nav' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1863 ],
1864 ),
1865 array(
1866 'mode' => 'responsive',
1867 'type' => Controls_Manager::DIMENSIONS,
1868 'id' => 'nav_margin',
1869 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1870 'selectors' => [
1871 '{{WRAPPER}} .pgcu-carousel-nav' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1872 ],
1873 ),
1874 array(
1875 'mode' => 'tab_end',
1876 ),
1877 array(
1878 'mode' => 'tab_start',
1879 'id' => 'nav_hover_tab',
1880 'label' => __( 'HOVER', 'post-grid-carousel-ultimate' ),
1881 ),
1882 array(
1883 'type' => Controls_Manager::COLOR,
1884 'id' => 'nav_hover_font_color',
1885 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
1886 'selectors' => [
1887 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn svg:hover' => 'fill: {{VALUE}} !important;',
1888 ],
1889 ),
1890 array(
1891 'type' => Controls_Manager::COLOR,
1892 'id' => 'nav_hover_back_color',
1893 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
1894 'selectors' => [
1895 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn:hover' => 'background-color: {{VALUE}} !important;'
1896 ],
1897 ),
1898 array(
1899 'type' => Controls_Manager::COLOR,
1900 'id' => 'nav_hover_border_color',
1901 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
1902 'selectors' => [
1903 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn:hover' => 'border-color: {{VALUE}} !important;'
1904 ],
1905 ),
1906 array(
1907 'type' => Controls_Manager::NUMBER,
1908 'id' => 'nav_hover_transition_duration',
1909 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
1910 'min' => 0,
1911 'max' => 5,
1912 'step' => 0.1,
1913 'selectors' => [
1914 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn:hover' => 'transition-duration: {{VALUE}} !important'
1915 ],
1916 ),
1917 array(
1918 'mode' => 'group',
1919 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
1920 'id' => 'nav_hover_pagi_shadow',
1921 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
1922 'selector' => '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn:hover',
1923 ),
1924 array(
1925 'type' => Controls_Manager::SLIDER,
1926 'id' => 'nav_hover_font_size',
1927 'label' => __( 'Arrow Font Size', 'post-grid-carousel-ultimate' ),
1928 'size_units' => [ 'px' ],
1929 'range' => [
1930 'px' => [
1931 'min' => 0,
1932 'max' => 20,
1933 ]
1934 ],
1935 'selectors' => [
1936 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn svg:hover' => 'width: {{SIZE}}{{UNIT}} !important'
1937 ],
1938 ),
1939 array(
1940 'type' => Controls_Manager::SELECT,
1941 'id' => 'nav_hover_border_type',
1942 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
1943 'options' => array(
1944 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
1945 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
1946 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
1947 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
1948 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
1949 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
1950 ),
1951 'selectors' => [
1952 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn:hover' => 'border-style: {{VALUE}} !important;',
1953 ],
1954 ),
1955 array(
1956 'mode' => 'responsive',
1957 'type' => Controls_Manager::DIMENSIONS,
1958 'id' => 'nav_hover_border_width',
1959 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
1960 'selectors' => [
1961 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn:hover' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1962 ],
1963 'condition' => [
1964 'nav_hover_border_type!' => 'none',
1965 ],
1966 ),
1967 array(
1968 'mode' => 'responsive',
1969 'type' => Controls_Manager::DIMENSIONS,
1970 'id' => 'nav_hover_border_radius',
1971 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
1972 'selectors' => [
1973 '{{WRAPPER}} .pgcu-carousel-nav .pgcu-carousel-nav__btn:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1974 ],
1975 'condition' => [
1976 'nav_hover_border_type!' => 'none',
1977 ],
1978 ),
1979 array(
1980 'mode' => 'responsive',
1981 'type' => Controls_Manager::DIMENSIONS,
1982 'id' => 'nav_hover_padding',
1983 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
1984 'selectors' => [
1985 '{{WRAPPER}} .pgcu-carousel-nav:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1986 ],
1987 ),
1988 array(
1989 'mode' => 'responsive',
1990 'type' => Controls_Manager::DIMENSIONS,
1991 'id' => 'nav_hover_margin',
1992 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
1993 'selectors' => [
1994 '{{WRAPPER}} .pgcu-carousel-nav:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
1995 ],
1996 ),
1997 array(
1998 'mode' => 'tab_end',
1999 ),
2000 array(
2001 'mode' => 'tabs_end',
2002 ),
2003 array(
2004 'mode' => 'section_end',
2005 ),
2006
2007 array(
2008 'mode' => 'section_start',
2009 'tab' => Controls_Manager::TAB_STYLE,
2010 'id' => 'grid_pagination_tab',
2011 'label' => __( 'Grid Pagination', 'post-grid-carousel-ultimate' ),
2012 'condition' => [
2013 'layout' => 'grid',
2014 'display_pagination' => 'yes',
2015 ],
2016 ),
2017 array(
2018 'mode' => 'tabs_start',
2019 'id' => 'grid_pagi_style_tab',
2020 ),
2021 array(
2022 'mode' => 'tab_start',
2023 'id' => 'grid_pagi_normal_tab',
2024 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
2025 ),
2026 array(
2027 'type' => Controls_Manager::COLOR,
2028 'id' => 'grid_font_color',
2029 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
2030 'selectors' => [
2031 '{{WRAPPER}} .pgcu-pagination .page-numbers' => 'color: {{VALUE}} !important;',
2032 '{{WRAPPER}} .pgcu-pagination .page-numbers svg' => 'fill: {{VALUE}} !important;'
2033 ],
2034 ),
2035 array(
2036 'type' => Controls_Manager::COLOR,
2037 'id' => 'grid_pagi_back_color',
2038 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
2039 'selectors' => [
2040 '{{WRAPPER}} .pgcu-pagination .page-numbers' => 'background-color: {{VALUE}} !important;'
2041 ],
2042 ),
2043 array(
2044 'type' => Controls_Manager::COLOR,
2045 'id' => 'grid_pagi_border_color',
2046 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
2047 'selectors' => [
2048 '{{WRAPPER}} .pgcu-pagination .page-numbers' => 'border-color: {{VALUE}} !important;'
2049 ],
2050 ),
2051 array(
2052 'type' => Controls_Manager::NUMBER,
2053 'id' => 'grid_page_transition_duration',
2054 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
2055 'min' => 0,
2056 'max' => 5,
2057 'step' => 0.1,
2058 'selectors' => [
2059 '{{WRAPPER}} .pgcu-pagination .page-numbers' => 'transition-duration: {{VALUE}} !important'
2060 ],
2061 ),
2062 array(
2063 'mode' => 'group',
2064 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
2065 'id' => 'grid_pagi_shadow',
2066 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
2067 'selector' => '{{WRAPPER}} .pgcu-pagination .page-numbers',
2068 ),
2069 array(
2070 'mode' => 'group',
2071 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
2072 'id' => 'grid_pagi_typography',
2073 'type' => Group_Control_Typography::get_type(),
2074 'selector' => '{{WRAPPER}} .pgcu-pagination .page-numbers',
2075 'scheme' => Typography::TYPOGRAPHY_3,
2076 ),
2077 array(
2078 'type' => Controls_Manager::SELECT,
2079 'id' => 'grid_pagi_border_type',
2080 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
2081 'options' => array(
2082 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
2083 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
2084 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
2085 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
2086 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
2087 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
2088 ),
2089 'selectors' => [
2090 '{{WRAPPER}} .pgcu-pagination .page-numbers' => 'border-style: {{VALUE}} !important;',
2091
2092 ],
2093 ),
2094 array(
2095 'mode' => 'responsive',
2096 'type' => Controls_Manager::DIMENSIONS,
2097 'id' => 'grid_pagi_border_width',
2098 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
2099 'selectors' => [
2100 '{{WRAPPER}} .pgcu-pagination .page-numbers' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2101 ],
2102 'condition' => [
2103 'grid_pagi_border_type!' => 'none',
2104 ],
2105 ),
2106 array(
2107 'mode' => 'responsive',
2108 'type' => Controls_Manager::DIMENSIONS,
2109 'id' => 'grid_pagi_border_radius',
2110 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
2111 'selectors' => [
2112 '{{WRAPPER}} .pgcu-pagination .page-numbers' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2113 ],
2114 'condition' => [
2115 'grid_pagi_border_type!' => 'none',
2116 ],
2117 ),
2118 array(
2119 'mode' => 'responsive',
2120 'type' => Controls_Manager::DIMENSIONS,
2121 'id' => 'grid_pagi_padding',
2122 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
2123 'selectors' => [
2124 '{{WRAPPER}} .pgcu-pagination' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2125 ],
2126 ),
2127 array(
2128 'mode' => 'responsive',
2129 'type' => Controls_Manager::DIMENSIONS,
2130 'id' => 'grid_pagi_margin',
2131 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
2132 'selectors' => [
2133 '{{WRAPPER}} .pgcu-pagination' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2134 ],
2135 ),
2136 array(
2137 'mode' => 'tab_end',
2138 ),
2139 array(
2140 'mode' => 'tab_start',
2141 'id' => 'grid_pagi_hover_tab',
2142 'label' => __( 'Hover', 'post-grid-carousel-ultimate' ),
2143 ),
2144 array(
2145 'type' => Controls_Manager::COLOR,
2146 'id' => 'grid_hover_font_color',
2147 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
2148 'selectors' => [
2149 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover' => 'color: {{VALUE}} !important;',
2150 '{{WRAPPER}} .pgcu-pagination .page-numbers svg:hover' => 'fill: {{VALUE}} !important;',
2151 '{{WRAPPER}} .pgcu-pagination .nav-links .current' => 'color: {{VALUE}} !important;'
2152 ],
2153 ),
2154 array(
2155 'type' => Controls_Manager::COLOR,
2156 'id' => 'grid_pagi_hover_back_color',
2157 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
2158 'selectors' => [
2159 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover' => 'background-color: {{VALUE}} !important;',
2160 '{{WRAPPER}} .pgcu-pagination .nav-links .current' => 'background-color: {{VALUE}} !important;'
2161 ],
2162 ),
2163 array(
2164 'type' => Controls_Manager::COLOR,
2165 'id' => 'grid_pagi_hover_border_color',
2166 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
2167 'selectors' => [
2168 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover' => 'border-color: {{VALUE}} !important;',
2169 '{{WRAPPER}} .pgcu-pagination .nav-links .current' => 'border-color: {{VALUE}} !important;'
2170 ],
2171 ),
2172 array(
2173 'type' => Controls_Manager::NUMBER,
2174 'id' => 'grid_page_hover_transition_duration',
2175 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
2176 'min' => 0,
2177 'max' => 5,
2178 'step' => 0.1,
2179 'selectors' => [
2180 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover' => 'transition-duration: {{VALUE}} !important',
2181 '{{WRAPPER}} .pgcu-pagination .nav-links .current' => 'transition-duration: {{VALUE}} !important'
2182 ],
2183 ),
2184 array(
2185 'mode' => 'group',
2186 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
2187 'id' => 'grid_pagi_hover_shadow',
2188 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
2189 'selectors' => [
2190 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover',
2191 '{{WRAPPER}} .pgcu-pagination .nav-links .current',
2192 ]
2193 ),
2194 array(
2195 'mode' => 'group',
2196 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
2197 'id' => 'grid_pagi_hover_typography',
2198 'type' => Group_Control_Typography::get_type(),
2199 'selectors' => [
2200 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover',
2201 '{{WRAPPER}} .pgcu-pagination .nav-links .current',
2202 ],
2203 'scheme' => Typography::TYPOGRAPHY_3,
2204 ),
2205 array(
2206 'type' => Controls_Manager::SELECT,
2207 'id' => 'grid_pagi_hover_border_type',
2208 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
2209 'options' => array(
2210 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
2211 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
2212 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
2213 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
2214 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
2215 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
2216 ),
2217 'selectors' => [
2218 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover' => 'border-style: {{VALUE}} !important;',
2219 '{{WRAPPER}} .pgcu-pagination .nav-links .current' => 'border-style: {{VALUE}} !important;',
2220 ],
2221 ),
2222 array(
2223 'mode' => 'responsive',
2224 'type' => Controls_Manager::DIMENSIONS,
2225 'id' => 'grid_pagi_hover_border_width',
2226 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
2227 'selectors' => [
2228 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2229 '{{WRAPPER}} .pgcu-pagination .nav-links .current' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2230 ],
2231 'condition' => [
2232 'grid_pagi_hover_border_type!' => 'none',
2233 ],
2234 ),
2235 array(
2236 'mode' => 'responsive',
2237 'type' => Controls_Manager::DIMENSIONS,
2238 'id' => 'grid_pagi_hover_border_radius',
2239 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
2240 'selectors' => [
2241 '{{WRAPPER}} .pgcu-pagination .page-numbers:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2242 '{{WRAPPER}} .pgcu-pagination .nav-links .current' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2243 ],
2244 'condition' => [
2245 'grid_pagi_hover_border_type!' => 'none',
2246 ],
2247 ),
2248 array(
2249 'mode' => 'responsive',
2250 'type' => Controls_Manager::DIMENSIONS,
2251 'id' => 'grid_pagi_hover_padding',
2252 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
2253 'selectors' => [
2254 '{{WRAPPER}} .pgcu-pagination:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2255 ],
2256 ),
2257 array(
2258 'mode' => 'responsive',
2259 'type' => Controls_Manager::DIMENSIONS,
2260 'id' => 'grid_pagi_hover_margin',
2261 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
2262 'selectors' => [
2263 '{{WRAPPER}} .pgcu-pagination:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2264 ],
2265 ),
2266 array(
2267 'mode' => 'tab_end',
2268 ),
2269 array(
2270 'mode' => 'tabs_end',
2271 ),
2272 array(
2273 'mode' => 'section_end',
2274 ),
2275
2276 array(
2277 'mode' => 'section_start',
2278 'tab' => Controls_Manager::TAB_STYLE,
2279 'id' => 'filter_tab',
2280 'label' => __( 'Filters', 'post-grid-carousel-ultimate' ),
2281 'condition' => [
2282 'layout' => 'isotope',
2283 ],
2284 ),
2285 array(
2286 'mode' => 'tabs_start',
2287 'id' => 'filter_style_tab',
2288 ),
2289 array(
2290 'mode' => 'tab_start',
2291 'id' => 'filter_normal_tab',
2292 'label' => __( 'NORMAL', 'post-grid-carousel-ultimate' ),
2293 ),
2294 array(
2295 'type' => Controls_Manager::COLOR,
2296 'id' => 'filter_font_color',
2297 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
2298 'selectors' => [
2299 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn' => 'color: {{VALUE}} !important;',
2300 ],
2301 ),
2302 array(
2303 'type' => Controls_Manager::COLOR,
2304 'id' => 'filter_back_color',
2305 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
2306 'selectors' => [
2307 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn' => 'background-color: {{VALUE}} !important;'
2308 ],
2309 ),
2310 array(
2311 'type' => Controls_Manager::COLOR,
2312 'id' => 'filter_border_color',
2313 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
2314 'selectors' => [
2315 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn' => 'border-color: {{VALUE}} !important;'
2316 ],
2317 ),
2318 array(
2319 'type' => Controls_Manager::NUMBER,
2320 'id' => 'filter_transition_duration',
2321 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
2322 'min' => 0,
2323 'max' => 5,
2324 'step' => 0.1,
2325 'selectors' => [
2326 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn' => 'transition-duration: {{VALUE}} !important'
2327 ],
2328 ),
2329 array(
2330 'mode' => 'group',
2331 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
2332 'id' => 'filter_shadow',
2333 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
2334 'selector' => '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn',
2335 ),
2336 array(
2337 'mode' => 'group',
2338 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
2339 'id' => 'filter_typography',
2340 'type' => Group_Control_Typography::get_type(),
2341 'selector' => '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn',
2342 'scheme' => Typography::TYPOGRAPHY_3,
2343 ),
2344 array(
2345 'type' => Controls_Manager::SELECT,
2346 'id' => 'filter_border_type',
2347 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
2348 'options' => array(
2349 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
2350 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
2351 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
2352 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
2353 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
2354 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
2355 ),
2356 'selectors' => [
2357 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn' => 'border-style: {{VALUE}} !important;',
2358
2359 ],
2360 ),
2361 array(
2362 'mode' => 'responsive',
2363 'type' => Controls_Manager::DIMENSIONS,
2364 'id' => 'filter_border_width',
2365 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
2366 'selectors' => [
2367 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2368 ],
2369 'condition' => [
2370 'filter_border_type!' => 'none',
2371 ],
2372 ),
2373 array(
2374 'mode' => 'responsive',
2375 'type' => Controls_Manager::DIMENSIONS,
2376 'id' => 'filter_border_radius',
2377 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
2378 'selectors' => [
2379 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2380 ],
2381 'condition' => [
2382 'filter_border_type!' => 'none',
2383 ],
2384 ),
2385 array(
2386 'mode' => 'responsive',
2387 'type' => Controls_Manager::DIMENSIONS,
2388 'id' => 'filter_padding',
2389 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
2390 'selectors' => [
2391 '{{WRAPPER}} .pgcu-post-sortable__nav' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2392 ],
2393 ),
2394 array(
2395 'mode' => 'responsive',
2396 'type' => Controls_Manager::DIMENSIONS,
2397 'id' => 'filter_margin',
2398 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
2399 'selectors' => [
2400 '{{WRAPPER}} .pgcu-post-sortable__nav' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2401 ],
2402 ),
2403 array(
2404 'mode' => 'tab_end',
2405 ),
2406 array(
2407 'mode' => 'tab_start',
2408 'id' => 'filter_hover_tab',
2409 'label' => __( 'Hover', 'post-grid-carousel-ultimate' ),
2410 ),
2411 array(
2412 'type' => Controls_Manager::COLOR,
2413 'id' => 'filter_hover_font_color',
2414 'label' => __( 'Color', 'post-grid-carousel-ultimate' ),
2415 'selectors' => [
2416 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover' => 'color: {{VALUE}} !important;',
2417 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn--active' => 'color: {{VALUE}} !important;'
2418 ],
2419 ),
2420 array(
2421 'type' => Controls_Manager::COLOR,
2422 'id' => 'filter_hover_back_color',
2423 'label' => __( 'Background Color', 'post-grid-carousel-ultimate' ),
2424 'selectors' => [
2425 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover' => 'background-color: {{VALUE}} !important;',
2426 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn--active' => 'background-color: {{VALUE}} !important;'
2427 ],
2428 ),
2429 array(
2430 'type' => Controls_Manager::COLOR,
2431 'id' => 'filter_hover_border_color',
2432 'label' => __( 'Border Color', 'post-grid-carousel-ultimate' ),
2433 'selectors' => [
2434 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover' => 'border-color: {{VALUE}} !important;',
2435 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn--active' => 'border-color: {{VALUE}} !important;'
2436 ],
2437 ),
2438 array(
2439 'type' => Controls_Manager::NUMBER,
2440 'id' => 'filter_hover_transition_duration',
2441 'label' => __( 'Transition Duration', 'post-grid-carousel-ultimate' ),
2442 'min' => 0,
2443 'max' => 5,
2444 'step' => 0.1,
2445 'selectors' => [
2446 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover' => 'transition-duration: {{VALUE}} !important',
2447 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn--active' => 'transition-duration: {{VALUE}} !important'
2448 ],
2449 ),
2450 array(
2451 'mode' => 'group',
2452 'label' => __( 'Box Shadow', 'post-grid-carousel-ultimate' ),
2453 'id' => 'filter_hover_shadow',
2454 'type' => \Elementor\Group_Control_Box_Shadow::get_type(),
2455 'selector' => '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover',
2456 ),
2457 array(
2458 'mode' => 'group',
2459 'label' => __( 'Typography', 'post-grid-carousel-ultimate' ),
2460 'id' => 'filter_hover_typography',
2461 'type' => Group_Control_Typography::get_type(),
2462 'selector' => '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover',
2463 'scheme' => Typography::TYPOGRAPHY_3,
2464 ),
2465 array(
2466 'type' => Controls_Manager::SELECT,
2467 'id' => 'filter_hover_border_type',
2468 'label' => __( 'Border Type', 'post-grid-carousel-ultimate' ),
2469 'options' => array(
2470 'none' => __( 'None', 'post-grid-carousel-ultimate' ),
2471 'solid' => __( 'Solid', 'post-grid-carousel-ultimate' ),
2472 'double' => __( 'Double', 'post-grid-carousel-ultimate' ),
2473 'dotted' => __( 'Dotted', 'post-grid-carousel-ultimate' ),
2474 'dashed' => __( 'Dashed', 'post-grid-carousel-ultimate' ),
2475 'groove' => __( 'Groove', 'post-grid-carousel-ultimate' ),
2476 ),
2477 'selectors' => [
2478 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover' => 'border-style: {{VALUE}} !important;',
2479
2480 ],
2481 ),
2482 array(
2483 'mode' => 'responsive',
2484 'type' => Controls_Manager::DIMENSIONS,
2485 'id' => 'filter_hover_border_width',
2486 'label' => __( 'Border Width', 'post-grid-carousel-ultimate' ),
2487 'selectors' => [
2488 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2489 ],
2490 'condition' => [
2491 'filter_hover_border_type!' => 'none',
2492 ],
2493 ),
2494 array(
2495 'mode' => 'responsive',
2496 'type' => Controls_Manager::DIMENSIONS,
2497 'id' => 'filter_hover_border_radius',
2498 'label' => __( 'Border Radius', 'post-grid-carousel-ultimate' ),
2499 'selectors' => [
2500 '{{WRAPPER}} .pgcu-post-sortable__nav .pgcu-post-sortable__btn:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2501 ],
2502 'condition' => [
2503 'filter_border_type!' => 'none',
2504 ],
2505 ),
2506 array(
2507 'mode' => 'responsive',
2508 'type' => Controls_Manager::DIMENSIONS,
2509 'id' => 'filter_hover_padding',
2510 'label' => __( 'Padding', 'post-grid-carousel-ultimate' ),
2511 'selectors' => [
2512 '{{WRAPPER}} .pgcu-post-sortable__nav:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2513 ],
2514 ),
2515 array(
2516 'mode' => 'responsive',
2517 'type' => Controls_Manager::DIMENSIONS,
2518 'id' => 'filter_hover_margin',
2519 'label' => __( 'Margin', 'post-grid-carousel-ultimate' ),
2520 'selectors' => [
2521 '{{WRAPPER}} .pgcu-post-sortable__nav:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
2522 ],
2523 ),
2524 array(
2525 'mode' => 'tab_end',
2526 ),
2527 array(
2528 'mode' => 'tabs_end',
2529 ),
2530 array(
2531 'mode' => 'section_end',
2532 ),
2533 );
2534 return $fields;
2535 }
2536
2537 public function get_name() {
2538 return 'post_grid_ultimate';
2539 }
2540
2541 public function get_title() {
2542 return esc_html__( 'Post Grid & Carousel Ultimate', 'post-grid-carousel-ultimate' );
2543 }
2544
2545 public function get_icon() {
2546 return 'eicon-carousel';
2547 }
2548
2549 public function get_categories() {
2550 return [ 'basic' ];
2551 }
2552
2553 public function get_keywords() {
2554 return [ 'post', 'product', 'grid', 'carousel', 'ultimate' ];
2555 }
2556
2557 protected function render() {
2558 $settings = $this->get_settings();
2559
2560 $atts = array(
2561 'layout' => sanitize_text_field($settings['layout'] ? $settings['layout'] : 'carousel'),
2562 'theme' => sanitize_text_field($settings['theme'] ? $settings['theme'] : 'theme-1'),
2563 'display_header_title' => sanitize_text_field($settings['display_header_title'] ? $settings['display_header_title'] : 'no'),
2564 'header_title' => sanitize_text_field($settings['header_title'] ? $settings['header_title'] : ''),
2565 'header_position' => sanitize_text_field($settings['header_position'] ? $settings['header_position'] : 'middle'),
2566 'display_title' => sanitize_text_field($settings['display_title'] ? $settings['display_title'] : 'no'),
2567 'post_type' => sanitize_key($settings['post_type'] ? $settings['post_type'] : 'post'),
2568 'post_from' => sanitize_text_field($settings['post_from'] ? $settings['post_from'] : 'latest'),
2569 'total_posts' => absint($settings['total_posts'] ? $settings['total_posts'] : '12'),
2570 'display_content' => sanitize_text_field($settings['display_content'] ? $settings['display_content'] : 'no'),
2571 'content_word_limit' => absint($settings['content_word_limit'] ? $settings['content_word_limit'] : 16),
2572 'display_read_more' => sanitize_text_field($settings['display_read_more'] ? $settings['display_read_more'] : 'no'),
2573 'read_more_type' => sanitize_text_field($settings['read_more_type'] ? $settings['read_more_type'] : 'link'),
2574 'display_author' => sanitize_text_field($settings['display_author'] ? $settings['display_author'] : 'no'),
2575 'display_date' => sanitize_text_field($settings['display_date'] ? $settings['display_date'] : 'no'),
2576 'display_term' => sanitize_text_field($settings['display_term'] ? $settings['display_term'] : 'no'),
2577 'term_from' => sanitize_text_field($settings['term_from'] ? $settings['term_from'] : 'category'),
2578 'g_column' => absint($settings['g_column'] ? $settings['g_column'] : '3'),
2579 'g_tablet' => absint($settings['g_tablet'] ? $settings['g_tablet'] : '2'),
2580 'g_mobile' => absint($settings['g_mobile'] ? $settings['g_mobile'] : '1'),
2581 'display_pagination' => sanitize_text_field($settings['display_pagination'] ? $settings['display_pagination'] : 'no'),
2582 'autoplay' => sanitize_text_field($settings['autoplay'] ? $settings['autoplay'] : 'no'),
2583 'repeat_post' => sanitize_text_field($settings['repeat_post'] ? $settings['repeat_post'] : 'no'),
2584 'pause_hover' => sanitize_text_field($settings['pause_hover'] ? $settings['pause_hover'] : 'no'),
2585 'post_column' => absint($settings['post_column'] ? $settings['post_column'] : '2'),
2586 'post_column_laptop' => absint($settings['post_column_laptop'] ? $settings['post_column_laptop'] : '2'),
2587 'post_column_tablet' => absint($settings['post_column_tablet'] ? $settings['post_column_tablet'] : '2'),
2588 'post_column_mobile' => absint($settings['post_column_mobile'] ? $settings['post_column_mobile'] : '1'),
2589 'c_autoplay_speed' => absint($settings['c_autoplay_speed'] ? $settings['c_autoplay_speed'] : '2000'),
2590 'c_autoplay_time' => absint($settings['c_autoplay_time'] ? $settings['c_autoplay_time'] : '2000'),
2591 'navigation' => sanitize_text_field($settings['navigation'] ? $settings['navigation'] : 'no'),
2592 'navigation_position' => sanitize_text_field($settings['navigation_position'] ? $settings['navigation_position'] : 'middle'),
2593 'image_resize_crop' => sanitize_text_field($settings['image_resize_crop'] ? $settings['image_resize_crop'] : 'no'),
2594 'image_width' => absint($settings['image_width'] ? $settings['image_width'] : '300'),
2595 'image_hight' => absint($settings['image_hight'] ? $settings['image_hight'] : '200'),
2596 );
2597
2598 $this->run_shortcode( 'pgcu', $atts );
2599 }
2600
2601 public function display_image( $atts ) {
2602 $layout = ! empty( $atts['layout'] ) ? $atts['layout'] : 'carousel';
2603 $theme = ! empty( $atts['theme'] ) ? $atts['theme'] . '.png' : 'theme_1.png';
2604 $img_src = WCPCSU_URL . 'includes/elementor/assets/img/' . $layout . '/' . $theme;
2605 ob_start();
2606 ?>
2607 <div>
2608 <img src="<?php echo esc_attr( $img_src ); ?>" alt="">
2609 </div>
2610 <?php
2611 echo ob_get_clean();
2612 }
2613
2614 public function run_shortcode( $shortcode, $atts = [] ) {
2615 $html = '';
2616
2617 foreach ( $atts as $key => $value ) {
2618 $html .= sprintf( ' %s="%s"', $key, esc_html( $value ) );
2619 }
2620
2621 $html = sprintf( '[%s%s]', $shortcode, $html );
2622
2623 echo do_shortcode( $html );
2624 }
2625 }