PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 All 238 releases
ultimate-post / blocks / Post_Slider_1.php

Post_Slider_1.php in Post Grid Gutenberg Blocks – PostX 2.2.5, at blocks/Post_Slider_1.php

2,248 lines 100.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ULTP\blocks;
3
4 defined('ABSPATH') || exit;
5
6 class Post_Slider_1{
7
8 public function __construct() {
9 add_action('init', array($this, 'register'));
10 }
11
12 public function get_attributes($default = false){
13
14 $attributes = array(
15 'blockId' => [
16 'type' => 'string',
17 'default' => '',
18 ],
19 //--------------------------
20 // Query Setting
21 //--------------------------
22 'queryQuick' => [
23 'type' => 'string',
24 'default' =>'',
25 ],
26 'queryNumber' => [
27 'type' => 'string',
28 'default' =>'5'
29 ],
30 'queryType' => [
31 'type' => 'string',
32 'default' => 'post'
33 ],
34 'queryTax' => [
35 'type' => 'string',
36 'default' => 'category'
37 ],
38 'queryTaxValue' => [
39 'type' => 'string',
40 'default' => '[]',
41 'style' => [
42 (object)[
43 'depends' => [(object)['key' => 'queryTax','condition' => '!=','value' => '']]
44 ],
45 ],
46 ],
47 'queryCat' => [ // for compatibility
48 'type' => 'string',
49 'default' => '[]'
50 ],
51 'queryTag' => [ // for compatibility
52 'type' => 'string',
53 'default' => '[]'
54 ],
55 'queryOrderBy' => [
56 'type' => 'string',
57 'default' => 'date',
58 ],
59 'metaKey' => [
60 'type' => 'string',
61 'default' => 'custom_meta_key',
62 'style' => [
63 (object)[
64 'depends' => [(object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num']]
65 ],
66 ],
67 ],
68 'queryOrder' => [
69 'type' => 'string',
70 'default' => 'desc',
71 ],
72 'queryInclude' => [
73 'type' => 'string',
74 'default' => ''
75 ],
76 'queryExclude' => [
77 'type' => 'string',
78 'default' => ''
79 ],
80 'queryOffset' => [
81 'type' => 'string',
82 'default' => '0',
83 ],
84 //--------------------------
85 // General Setting
86 //--------------------------
87 'slidesToShow' => [
88 'type' => 'number',
89 'default' => 4,
90 ],
91 'autoPlay' => [
92 'type' => 'boolean',
93 'default' => true,
94 ],
95 'height' => [
96 'type' => 'object',
97 'default' => (object)['lg' =>'550', 'unit' =>'px'],
98 'style' => [
99 (object)[
100 'selector'=>'{{ULTP}} .ultp-block-image, {{ULTP}} .ultp-block-items-wrap .ultp-block-slider-wrap { height: {{height}}; }'
101 ],
102 ],
103 ],
104 'slideSpeed' => [
105 'type' => 'string',
106 'default' => '3000',
107 'style' => [
108 (object)[
109 'depends' => [
110 (object)['key'=>'autoPlay','condition'=>'==','value'=>true],
111 ]
112 ],
113 ]
114 ],
115 'dots' => [
116 'type' => 'boolean',
117 'default' => true,
118 ],
119 'arrows' => [
120 'type' => 'boolean',
121 'default' => true,
122 ],
123 'fade' => [
124 'type' => 'boolean',
125 'default' => true,
126 ],
127 'titleShow' => [
128 'type' => 'boolean',
129 'default' => true,
130 ],
131 'headingShow' => [
132 'type' => 'boolean',
133 'default' => false,
134 ],
135 'excerptShow' => [
136 'type' => 'boolean',
137 'default' => true
138 ],
139 'catShow' => [
140 'type' => 'boolean',
141 'default' => true,
142 ],
143 'metaShow' => [
144 'type' => 'boolean',
145 'default' => true,
146 ],
147 'showImage' => [
148 'type' => 'boolean',
149 'default' => true,
150 ],
151 'readMore' => [
152 'type' => 'boolean',
153 'default' => true,
154 ],
155 'openInTab' => [
156 'type' => 'boolean',
157 'default' => false,
158 ],
159
160
161 //--------------------------
162 // Heading Setting/Style
163 //--------------------------
164 'headingText' => [
165 'type' => 'string',
166 'default' => 'Post Slider #1',
167 ],
168 'headingURL' => [
169 'type' => 'string',
170 'default' => '',
171 ],
172 'headingBtnText' => [
173 'type' => 'string',
174 'default' => 'View More',
175 'style' => [
176 (object)[
177 'depends' => [
178 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
179 ],
180 ],
181 ],
182 ],
183 'headingStyle' => [
184 'type' => 'string',
185 'default' => 'style9',
186 ],
187 'headingTag' => [
188 'type' => 'string',
189 'default' => 'h2',
190 ],
191 'headingAlign' => [
192 'type' => 'string',
193 'default' => 'left',
194 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner { text-align:{{headingAlign}}; }']]
195 ],
196 'headingTypo' => [
197 'type' => 'object',
198 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => 'uppercase', 'family'=>'','weight'=>'700'],
199 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']]
200 ],
201 'headingColor' => [
202 'type' => 'string',
203 'default' => '#0e1523',
204 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']],
205 ],
206 'headingBorderBottomColor' => [
207 'type' => 'string',
208 'default' => '#0e1523',
209 'style' => [
210 (object)[
211 'depends' => [
212 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
213 ],
214 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }'
215 ],
216 (object)[
217 'depends' => [
218 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
219 ],
220 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
221 ],
222 (object)[
223 'depends' => [
224 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
225 ],
226 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
227 ],
228 (object)[
229 'depends' => [
230 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
231 ],
232 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
233 ],
234 (object)[
235 'depends' => [
236 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
237 ],
238 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
239 ],
240 (object)[
241 'depends' => [
242 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
243 ],
244 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
245 ],
246 (object)[
247 'depends' => [
248 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
249 ],
250 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
251 ],
252 (object)[
253 'depends' => [
254 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
255 ],
256 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
257 ],
258 (object)[
259 'depends' => [
260 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
261 ],
262 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
263 ],
264 (object)[
265 'depends' => [
266 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
267 ],
268 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
269 ],
270 (object)[
271 'depends' => [
272 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
273 ],
274 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
275 ],
276 (object)[
277 'depends' => [
278 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
279 ],
280 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
281 ],
282 (object)[
283 'depends' => [
284 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
285 ],
286 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
287 ],
288 (object)[
289 'depends' => [
290 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
291 ],
292 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }'
293 ],
294 ],
295 ],
296 'headingBorderBottomColor2' => [
297 'type' => 'string',
298 'default' => '#e5e5e5',
299 'style' => [
300 (object)[
301 'depends' => [
302 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
303 ],
304 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }'
305 ],
306 (object)[
307 'depends' => [
308 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
309 ],
310 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
311 ],
312 (object)[
313 'depends' => [
314 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
315 ],
316 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
317 ],
318 (object)[
319 'depends' => [
320 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
321 ],
322 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
323 ],
324 ],
325 ],
326 'headingBg' => [
327 'type' => 'string',
328 'default' => '#1740f5',
329 'style' => [
330 (object)[
331 'depends' => [
332 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
333 ],
334 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
335 ],
336 (object)[
337 'depends' => [
338 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
339 ],
340 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
341 ],
342 (object)[
343 'depends' => [
344 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
345 ],
346 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
347 ],
348 (object)[
349 'depends' => [
350 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
351 ],
352 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
353 ],
354 (object)[
355 'depends' => [
356 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
357 ],
358 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
359 ],
360 (object)[
361 'depends' => [
362 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
363 ],
364 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
365 ],
366 (object)[
367 'depends' => [
368 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
369 ],
370 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
371 ],
372 ],
373 ],
374 'headingBg2' => [
375 'type' => 'string',
376 'default' => '#e5e5e5',
377 'style' => [
378 (object)[
379 'depends' => [
380 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
381 ],
382 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }'
383 ],
384 ],
385 ],
386 'headingBtnTypo' => [
387 'type' => 'object',
388 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''],
389 'style' => [
390 (object)[
391 'depends' => [
392 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
393 ],
394 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn'
395 ],
396 ],
397 ],
398 'headingBtnColor' => [
399 'type' => 'string',
400 'default' => '#1740f5',
401 'style' => [
402 (object)[
403 'depends' => [
404 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
405 ],
406 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }'
407 ],
408 ],
409 ],
410 'headingBtnHoverColor' => [
411 'type' => 'string',
412 'default' => '#0a31da',
413 'style' => [
414 (object)[
415 'depends' => [
416 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
417 ],
418 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }'
419 ],
420 ],
421 ],
422
423 'headingBorder' => [
424 'type' => 'string',
425 'default' => '3',
426 'style' => [
427 (object)[
428 'depends' => [
429 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
430 ],
431 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }'
432 ],
433 (object)[
434 'depends' => [
435 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
436 ],
437 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
438 ],
439 (object)[
440 'depends' => [
441 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
442 ],
443 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }'
444 ],
445 (object)[
446 'depends' => [
447 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
448 ],
449 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
450 ],
451 (object)[
452 'depends' => [
453 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
454 ],
455 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
456 ],
457 (object)[
458 'depends' => [
459 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
460 ],
461 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
462 ],
463 (object)[
464 'depends' => [
465 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
466 ],
467 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
468 ],
469 (object)[
470 'depends' => [
471 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
472 ],
473 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
474 ],
475 (object)[
476 'depends' => [
477 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
478 ],
479 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
480 ],
481 (object)[
482 'depends' => [
483 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
484 ],
485 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
486 ],
487 (object)[
488 'depends' => [
489 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
490 ],
491 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
492 ],
493 (object)[
494 'depends' => [
495 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
496 ],
497 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
498 ],
499 (object)[
500 'depends' => [
501 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
502 ],
503 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
504 ],
505 (object)[
506 'depends' => [
507 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
508 ],
509 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
510 ],
511 ],
512 ],
513 'headingSpacing' => [
514 'type' => 'object',
515 'default' => (object)['lg'=>30, 'unit'=>'px'],
516 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']]
517 ],
518
519 'headingRadius' => [
520 'type' => 'object',
521 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
522 'style' => [
523 (object)[
524 'depends' => [
525 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
526 ],
527 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
528 ],
529 (object)[
530 'depends' => [
531 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
532 ],
533 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
534 ],
535 (object)[
536 'depends' => [
537 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
538 ],
539 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
540 ],
541 (object)[
542 'depends' => [
543 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
544 ],
545 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
546 ],
547 (object)[
548 'depends' => [
549 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
550 ],
551 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
552 ],
553 (object)[
554 'depends' => [
555 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
556 ],
557 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
558 ],
559 (object)[
560 'depends' => [
561 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
562 ],
563 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
564 ],
565 (object)[
566 'depends' => [
567 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
568 ],
569 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
570 ],
571 ]
572 ],
573
574
575 'headingPadding' => [
576 'type' => 'object',
577 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
578 'style' => [
579 (object)[
580 'depends' => [
581 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
582 ],
583 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
584 ],
585 (object)[
586 'depends' => [
587 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
588 ],
589 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
590 ],
591 (object)[
592 'depends' => [
593 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
594 ],
595 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
596 ],
597 (object)[
598 'depends' => [
599 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
600 ],
601 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
602 ],
603 (object)[
604 'depends' => [
605 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
606 ],
607 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
608 ],
609 (object)[
610 'depends' => [
611 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
612 ],
613 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
614 ],
615 (object)[
616 'depends' => [
617 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
618 ],
619 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
620 ],
621 (object)[
622 'depends' => [
623 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
624 ],
625 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
626 ],
627 (object)[
628 'depends' => [
629 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
630 ],
631 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
632 ],
633 (object)[
634 'depends' => [
635 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
636 ],
637 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
638 ],
639 ]
640 ],
641 'subHeadingShow' => [
642 'type' => 'boolean',
643 'default' => false,
644 ],
645 'subHeadingText' => [
646 'type' => 'string',
647 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
648 'style' => [
649 (object)[
650 'depends' => [
651 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
652 ],
653 ],
654 ],
655 ],
656 'subHeadingTypo' => [
657 'type' => 'object',
658 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'16', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'27', 'unit'=>'px'],'decoration'=>'none','transform' => 'capitalize','family'=>'','weight'=>'500'],
659 'style' => [
660 (object)[
661 'depends' => [
662 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
663 ],
664 'selector'=>'{{ULTP}} .ultp-sub-heading div'
665 ],
666 ],
667 ],
668 'subHeadingColor' => [
669 'type' => 'string',
670 'default' => '#989898',
671 'style' => [
672 (object)[
673 'depends' => [
674 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
675 ],
676 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
677 ],
678 ],
679 ],
680 'subHeadingSpacing' => [
681 'type' => 'object',
682 'default' => (object)['lg' =>(object)['unit' =>'px']],
683 'style' => [
684 (object)[
685 'depends' => [
686 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
687 ],
688 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
689 ],
690 ],
691 ],
692
693 //--------------------------
694 // Title Setting/Style
695 //--------------------------
696 'titleTag' => [
697 'type' => 'string',
698 'default' => 'h3',
699 ],
700 'titlePosition' => [
701 'type' => 'boolean',
702 'default' => true,
703 ],
704 'titleColor' => [
705 'type' => 'string',
706 'default' => '#0e1523',
707 'style' => [
708 (object)[
709 'depends' => [
710 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
711 ],
712 'selector'=>'{{ULTP}} .ultp-block-title a { color:{{titleColor}}; }'
713 ],
714 ],
715 ],
716 'titleHoverColor' => [
717 'type' => 'string',
718 'default' => '#1740f5',
719 'style' => [
720 (object)[
721 'depends' => [
722 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
723 ],
724 'selector'=>'{{ULTP}} .ultp-block-title a:hover { color:{{titleHoverColor}}; }'
725 ],
726 ],
727 ],
728 'titleTypo' => [
729 'type' => 'object',
730 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'28', 'unit'=>'px'], 'height'=>(object)['lg'=>'36', 'unit'=>'px'], 'decoration'=>'none','family'=>'','weight'=>'500'],
731 'style' => [
732 (object)[
733 'depends' => [
734 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
735 ],
736 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title, {{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title a'
737 ],
738 ],
739 ],
740 'titlePadding' => [
741 'type' => 'object',
742 'default' => (object)['lg'=>(object)['top'=>25,'bottom'=>12, 'unit'=>'px']],
743 'style' => [
744 (object)[
745 'depends' => [
746 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
747 ],
748 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
749 ],
750 ],
751 ],
752
753 //--------------------------
754 // Content Setting/Style
755 //--------------------------
756 'showFullExcerpt' => [
757 'type' => 'boolean',
758 'default' => false,
759 ],
760 'excerptLimit' => [
761 'type' => 'string',
762 'default' => 40,
763 'style' => [
764 (object)[
765 'depends' => [
766 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false],
767 ],
768 ],
769 ],
770 ],
771 'excerptColor' => [
772 'type' => 'string',
773 'default' => '#777',
774 'style' => [
775 (object)[
776 'depends' => [
777 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
778 ],
779 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
780 ],
781 ],
782 ],
783 'excerptTypo' => [
784 'type' => 'object',
785 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>26, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
786 'style' => [
787 (object)[
788 'depends' => [
789 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
790 ],
791 'selector'=>'{{ULTP}} .ultp-block-excerpt'
792 ],
793 ],
794 ],
795 'excerptPadding' => [
796 'type' => 'object',
797 'default' => (object)['lg' =>(object)['top' => 10,'bottom' => '', 'unit' =>'px']],
798 'style' => [
799 (object)[
800 'depends' => [
801 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
802 ],
803 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
804 ],
805 ],
806 ],
807
808 //--------------------------
809 // Content Wrap Setting/Style
810 //--------------------------
811 'contentVerticalPosition' => [
812 'type' => 'string',
813 'default' => 'middlePosition',
814 'style' => [
815 (object)[
816 'depends' => [
817 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'topPosition'],
818 ],
819 'selector'=>'{{ULTP}} .ultp-block-content-topPosition { align-items:flex-start; }'
820 ],
821 (object)[
822 'depends' => [
823 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'middlePosition'],
824 ],
825 'selector'=>'{{ULTP}} .ultp-block-content-middlePosition { align-items:center; }'
826 ],
827 (object)[
828 'depends' => [
829 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'bottomPosition'],
830 ],
831 'selector'=>'{{ULTP}} .ultp-block-content-bottomPosition { align-items:flex-end; }'
832 ],
833 ]
834 ],
835 'contentHorizontalPosition' => [
836 'type' => 'string',
837 'default' => 'centerPosition',
838 'style' => [
839 (object)[
840 'depends' => [
841 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'leftPosition'],
842 ],
843 'selector'=>'{{ULTP}} .ultp-block-content-leftPosition { justify-content:flex-start; }'
844 ],
845 (object)[
846 'depends' => [
847 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'centerPosition'],
848 ],
849 'selector'=>'{{ULTP}} .ultp-block-content-centerPosition { justify-content:center; }'
850 ],
851 (object)[
852 'depends' => [
853 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'rightPosition'],
854 ],
855 'selector'=>'{{ULTP}} .ultp-block-content-rightPosition { justify-content:flex-end; }'
856 ],
857 ]
858 ],
859 'contentAlign' => [
860 'type' => 'string',
861 'default' => "center",
862 'style' => [
863 (object)[
864 'depends' => [
865 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
866 ],
867 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
868 ],
869 (object)[
870 'depends' => [
871 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
872 ],
873 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
874 ],
875 (object)[
876 'depends' => [
877 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
878 ],
879 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}'
880 ],
881 ],
882 ],
883
884 'contenWraptWidth' => [
885 'type' => 'object',
886 'default' => (object)['lg'=>'60','unit' =>'%'],
887 'style' => [
888 (object)[
889 'selector' => '{{ULTP}} .ultp-block-content-inner { width:{{contenWraptWidth}}; }'
890 ],
891 ]
892 ],
893 'contenWraptHeight' => [
894 'type' => 'object',
895 'default' => (object)['lg'=>''],
896 'style' => [
897 (object)[
898 'selector' => '{{ULTP}} .ultp-block-content-inner { height:{{contenWraptHeight}}; }'
899 ],
900 ]
901 ],
902 'contentWrapBg' => [
903 'type' => 'string',
904 'default' => '#fff',
905 'style' => [
906 (object)[
907 'selector'=>'{{ULTP}} .ultp-block-content-inner { background:{{contentWrapBg}}; }'
908 ],
909 ],
910 ],
911 'contentWrapHoverBg' => [
912 'type' => 'string',
913 'style' => [
914 (object)[
915 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover { background:{{contentWrapHoverBg}}; }'
916 ],
917 ],
918 ],
919 'contentWrapBorder' => [
920 'type' => 'object',
921 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
922 'style' => [
923 (object)[
924 'selector'=>'{{ULTP}} .ultp-block-content-inner'
925 ],
926 ],
927 ],
928 'contentWrapHoverBorder' => [
929 'type' => 'object',
930 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
931 'style' => [
932 (object)[
933 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover'
934 ],
935 ],
936 ],
937 'contentWrapRadius' => [
938 'type' => 'object',
939 'default' => (object)['lg' =>(object)['top' => '6','bottom' => '6', 'left' => '6', 'right' => '6', 'unit' =>'px']],
940 'style' => [
941 (object)[
942 'selector'=>'{{ULTP}} .ultp-block-content-inner{ border-radius: {{contentWrapRadius}}; }'
943 ],
944 ],
945 ],
946 'contentWrapHoverRadius' => [
947 'type' => 'object',
948 'default' => (object)['lg' =>(object)['top' => '10','bottom' => '10', 'left' => '10', 'right' => '10', 'unit' =>'px']],
949 'style' => [
950 (object)[
951 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover{ border-radius: {{contentWrapHoverRadius}}; }'
952 ],
953 ],
954 ],
955 'contentWrapShadow' => [
956 'type' => 'object',
957 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 5, 'bottom' => 15, 'left' => 0],'color' => 'rgba(0,0,0,0.15)'],
958 'style' => [
959 (object)[
960 'selector'=>'{{ULTP}} .ultp-block-content-inner'
961 ],
962 ],
963 ],
964 'contentWrapHoverShadow' => [
965 'type' => 'object',
966 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 10, 'bottom' => 25, 'left' => 0],'color' => 'rgba(0,0,0,0.25)'],
967 'style' => [
968 (object)[
969 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover'
970 ],
971 ],
972 ],
973
974 'contentWrapPadding' => [
975 'type' => 'object',
976 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left'=>'50','right'=>'50', 'unit' =>'px']],
977 'style' => [
978 (object)[
979 'selector'=>'{{ULTP}} .ultp-block-content-inner { padding: {{contentWrapPadding}}; }'
980 ],
981 ],
982 ],
983
984 //--------------------------
985 // Arrow Setting/Style
986 //--------------------------
987 'arrowStyle' => [
988 'type' => 'string',
989 'default' => 'leftAngle2#rightAngle2',
990 'style' => [
991 (object)[
992 'depends' => [
993 (object)['key'=>'arrows','condition'=>'==','value'=>true],
994 ],
995 ],
996 ]
997 ],
998 'arrowSize' => [
999 'type' => 'object',
1000 'default' => (object)['lg' =>'', 'unit' =>'px'],
1001 'style' => [
1002 (object)[
1003 'depends' => [
1004 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1005 ],
1006 'selector' => '{{ULTP}} .slick-next svg, {{ULTP}} .slick-prev svg { width:{{arrowSize}}; }'
1007 ],
1008 ]
1009 ],
1010 'arrowWidth' => [
1011 'type' => 'object',
1012 'default' => (object)['lg' =>'60', 'unit' =>'px'],
1013 'style' => [
1014 (object)[
1015 'depends' => [
1016 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1017 ],
1018 'selector' => '{{ULTP}} .slick-arrow { width:{{arrowWidth}}; }'
1019 ],
1020 ]
1021 ],
1022 'arrowHeight' => [
1023 'type' => 'object',
1024 'default' => (object)['lg' =>'60', 'unit' =>'px'],
1025 'style' => [
1026 (object)[
1027 'depends' => [
1028 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1029 ],
1030 'selector' => '{{ULTP}} .slick-arrow { height:{{arrowHeight}}; } {{ULTP}} .slick-arrow { line-height:{{arrowHeight}}; }'
1031 ],
1032 ]
1033 ],
1034 'arrowVartical' => [
1035 'type' => 'object',
1036 'default' => (object)['lg' =>'', 'unit' =>'px'],
1037 'style' => [
1038 (object)[
1039 'depends' => [
1040 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1041 ],
1042 'selector' => '{{ULTP}} .slick-next { right:{{arrowVartical}}; } {{ULTP}} .slick-prev { left:{{arrowVartical}}; }'
1043 ],
1044 ]
1045 ],
1046 'arrowColor' => [
1047 'type' => 'string',
1048 'default' => '#1740f5',
1049 'style' => [
1050 (object)[
1051 'depends' => [
1052 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1053 ],
1054 'selector'=>'{{ULTP}} .slick-arrow:before { color:{{arrowColor}}; } {{ULTP}} .slick-arrow svg { fill:{{arrowColor}}; }'
1055 ],
1056 ],
1057 ],
1058 'arrowHoverColor' => [
1059 'type' => 'string',
1060 'default' => '#fff',
1061 'style' => [
1062 (object)[
1063 'depends' => [
1064 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1065 ],
1066 'selector'=>'{{ULTP}} .slick-arrow:hover:before { color:{{arrowHoverColor}}; } {{ULTP}} .slick-arrow:hover svg { fill:{{arrowHoverColor}}; }'
1067 ],
1068 ],
1069 ],
1070 'arrowBg' => [
1071 'type' => 'string',
1072 'default' => '#fff',
1073 'style' => [
1074 (object)[
1075 'depends' => [
1076 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1077 ],
1078 'selector'=>'{{ULTP}} .slick-arrow { background:{{arrowBg}}; }'
1079 ],
1080 ],
1081 ],
1082 'arrowHoverBg' => [
1083 'type' => 'string',
1084 'default' => '#1740f5',
1085 'style' => [
1086 (object)[
1087 'depends' => [
1088 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1089 ],
1090 'selector'=>'{{ULTP}} .slick-arrow:hover { background:{{arrowHoverBg}}; }'
1091 ],
1092 ],
1093 ],
1094 'arrowBorder' => [
1095 'type' => 'object',
1096 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1097 'style' => [
1098 (object)[
1099 'depends' => [
1100 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1101 ],
1102 'selector'=>'{{ULTP}} .slick-arrow'
1103 ],
1104 ],
1105 ],
1106 'arrowHoverBorder' => [
1107 'type' => 'object',
1108 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1109 'style' => [
1110 (object)[
1111 'depends' => [
1112 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1113 ],
1114 'selector'=>'{{ULTP}} .slick-arrow:hover'
1115 ],
1116 ],
1117 ],
1118 'arrowRadius' => [
1119 'type' => 'object',
1120 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']],
1121 'style' => [
1122 (object)[
1123 'depends' => [
1124 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1125 ],
1126 'selector'=>'{{ULTP}} .slick-arrow { border-radius: {{arrowRadius}}; }'
1127 ],
1128 ],
1129 ],
1130 'arrowHoverRadius' => [
1131 'type' => 'object',
1132 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']],
1133 'style' => [
1134 (object)[
1135 'depends' => [
1136 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1137 ],
1138 'selector'=>'{{ULTP}} .slick-arrow:hover{ border-radius: {{arrowHoverRadius}}; }'
1139 ],
1140 ],
1141 ],
1142 'arrowShadow' => [
1143 'type' => 'object',
1144 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1145 'style' => [
1146 (object)[
1147 'depends' => [
1148 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1149 ],
1150 'selector'=>'{{ULTP}} .slick-arrow'
1151 ],
1152 ],
1153 ],
1154 'arrowHoverShadow' => [
1155 'type' => 'object',
1156 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1157 'style' => [
1158 (object)[
1159 'depends' => [
1160 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1161 ],
1162 'selector'=>'{{ULTP}} .slick-arrow:hover'
1163 ],
1164 ],
1165 ],
1166
1167 //--------------------------
1168 // Dot Setting/Style
1169 //--------------------------
1170 'dotWidth' => [
1171 'type' => 'object',
1172 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1173 'style' => [
1174 (object)[
1175 'depends' => [
1176 (object)['key'=>'dots','condition'=>'==','value'=>true],
1177 ],
1178 'selector' => '{{ULTP}} .slick-dots li button { width:{{dotWidth}}; }'
1179 ],
1180 ]
1181 ],
1182 'dotHeight' => [
1183 'type' => 'object',
1184 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1185 'style' => [
1186 (object)[
1187 'depends' => [
1188 (object)['key'=>'dots','condition'=>'==','value'=>true],
1189 ],
1190 'selector' => '{{ULTP}} .slick-dots li button { height:{{dotHeight}}; }'
1191 ],
1192 ]
1193 ],
1194 'dotHoverWidth' => [
1195 'type' => 'object',
1196 'default' => (object)['lg' =>'16', 'unit' =>'px'],
1197 'style' => [
1198 (object)[
1199 'depends' => [
1200 (object)['key'=>'dots','condition'=>'==','value'=>true],
1201 ],
1202 'selector' => '{{ULTP}} .slick-dots li.slick-active button { width:{{dotHoverWidth}}; }'
1203 ],
1204 ]
1205 ],
1206 'dotHoverHeight' => [
1207 'type' => 'object',
1208 'default' => (object)['lg' =>'16', 'unit' =>'px'],
1209 'style' => [
1210 (object)[
1211 'depends' => [
1212 (object)['key'=>'dots','condition'=>'==','value'=>true],
1213 ],
1214 'selector' => '{{ULTP}} .slick-dots li.slick-active button { height:{{dotHoverHeight}}; }'
1215 ],
1216 ]
1217 ],
1218 'dotSpace' => [
1219 'type' => 'object',
1220 'default' => (object)['lg' =>'4', 'unit' =>'px'],
1221 'style' => [
1222 (object)[
1223 'depends' => [
1224 (object)['key'=>'dots','condition'=>'==','value'=>true],
1225 ],
1226 'selector' => '{{ULTP}} .slick-dots { padding: 0 {{dotSpace}}; } {{ULTP}} .slick-dots li button { margin: 0 {{dotSpace}}; }'
1227 ],
1228 ]
1229 ],
1230 'dotVartical' => [
1231 'type' => 'object',
1232 'default' => (object)['lg' =>'40', 'unit' =>'px'],
1233 'style' => [
1234 (object)[
1235 'depends' => [
1236 (object)['key'=>'dots','condition'=>'==','value'=>true],
1237 ],
1238 'selector' => '{{ULTP}} .slick-dots { bottom:{{dotVartical}}; }'
1239 ],
1240 ]
1241 ],
1242 'dotHorizontal' => [
1243 'type' => 'object',
1244 'default' => (object)['lg'=>''],
1245 'style' => [
1246 (object)[
1247 'depends' => [
1248 (object)['key'=>'dots','condition'=>'==','value'=>true],
1249 ],
1250 'selector' => '{{ULTP}} .slick-dots { left:{{dotHorizontal}}; }'
1251 ],
1252 ]
1253 ],
1254 'dotBg' => [
1255 'type' => 'string',
1256 'default' => '#f5f5f5',
1257 'style' => [
1258 (object)[
1259 'depends' => [
1260 (object)['key'=>'dots','condition'=>'==','value'=>true],
1261 ],
1262 'selector'=>'{{ULTP}} .slick-dots li button { background:{{dotBg}}; }'
1263 ],
1264 ],
1265 ],
1266 'dotHoverBg' => [
1267 'type' => 'string',
1268 'default' => '#000',
1269 'style' => [
1270 (object)[
1271 'depends' => [
1272 (object)['key'=>'dots','condition'=>'==','value'=>true],
1273 ],
1274 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { background:{{dotHoverBg}}; }'
1275 ],
1276 ],
1277 ],
1278 'dotBorder' => [
1279 'type' => 'object',
1280 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1281 'style' => [
1282 (object)[
1283 'depends' => [
1284 (object)['key'=>'dots','condition'=>'==','value'=>true],
1285 ],
1286 'selector'=>'{{ULTP}} .slick-dots li button'
1287 ],
1288 ],
1289 ],
1290 'dotHoverBorder' => [
1291 'type' => 'object',
1292 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1293 'style' => [
1294 (object)[
1295 'depends' => [
1296 (object)['key'=>'dots','condition'=>'==','value'=>true],
1297 ],
1298 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button'
1299 ],
1300 ],
1301 ],
1302 'dotRadius' => [
1303 'type' => 'object',
1304 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']],
1305 'style' => [
1306 (object)[
1307 'depends' => [
1308 (object)['key'=>'dots','condition'=>'==','value'=>true],
1309 ],
1310 'selector'=>'{{ULTP}} .slick-dots li button { border-radius: {{dotRadius}}; }'
1311 ],
1312 ],
1313 ],
1314 'dotHoverRadius' => [
1315 'type' => 'object',
1316 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']],
1317 'style' => [
1318 (object)[
1319 'depends' => [
1320 (object)['key'=>'dots','condition'=>'==','value'=>true],
1321 ],
1322 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { border-radius: {{dotHoverRadius}}; }'
1323 ],
1324 ],
1325 ],
1326 'dotShadow' => [
1327 'type' => 'object',
1328 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1329 'style' => [
1330 (object)[
1331 'depends' => [
1332 (object)['key'=>'dots','condition'=>'==','value'=>true],
1333 ],
1334 'selector'=>'{{ULTP}} .slick-dots li button'
1335 ],
1336 ],
1337 ],
1338 'dotHoverShadow' => [
1339 'type' => 'object',
1340 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1341 'style' => [
1342 (object)[
1343 'depends' => [
1344 (object)['key'=>'dots','condition'=>'==','value'=>true],
1345 ],
1346 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button'
1347 ],
1348 ],
1349 ],
1350
1351
1352 //--------------------------
1353 // Category Setting/Style
1354 //--------------------------
1355 'catStyle' => [
1356 'type' => 'string',
1357 'default' => 'classic',
1358 ],
1359 'catPosition' => [
1360 'type' => 'string',
1361 'default' => 'aboveTitle',
1362 ],
1363 'customCatColor' => [
1364 'type' => 'boolean',
1365 'default' => false,
1366 ],
1367 'seperatorLink' => [
1368 'type' => 'string',
1369 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
1370 'style' => [
1371 (object)[
1372 'depends' => [
1373 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1374 ]
1375 ]
1376 ]
1377 ],
1378 'onlyCatColor' => [
1379 'type' => 'boolean',
1380 'default' => false,
1381 'style' => [
1382 (object)[
1383 'depends' => [
1384 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1385 ]
1386 ]
1387 ]
1388 ],
1389 'catLineWidth' => [
1390 'type' => 'object',
1391 'default' => (object)['lg'=>'20'],
1392 'style' => [
1393 (object)[
1394 'depends' => [
1395 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1396 ],
1397 'selector' => '{{ULTP}} .ultp-category-borderRight .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:after, {{ULTP}} .ultp-category-borderLeft .ultp-category-in:before { width:{{catLineWidth}}px; }'
1398 ],
1399 ]
1400 ],
1401 'catLineSpacing' => [
1402 'type' => 'object',
1403 'default' => (object)['lg'=>'30'],
1404 'style' => [
1405 (object)[
1406 'depends' => [
1407 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1408 ],
1409 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1410 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1411 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1412 ],
1413 ]
1414 ],
1415 'catLineColor' => [
1416 'type' => 'string',
1417 'default' => '#000',
1418 'style' => [
1419 (object)[
1420 'depends' => [
1421 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1422 ],
1423 'selector' => '{{ULTP}} .ultp-category-borderRight .ultp-category-in:before, {{ULTP}} .ultp-category-borderLeft .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:after, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:before { background:{{catLineColor}}; }'
1424 ],
1425 ]
1426 ],
1427 'catLineHoverColor' => [
1428 'type' => 'string',
1429 'default' => '#1740f5',
1430 'style' => [
1431 (object)[
1432 'depends' => [
1433 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1434 ],
1435 'selector' => '{{ULTP}} .ultp-category-borderBoth:hover .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth:hover .ultp-category-in:after, {{ULTP}} .ultp-category-borderLeft:hover .ultp-category-in:before, {{ULTP}} .ultp-category-borderRight:hover .ultp-category-in:before { background:{{catLineHoverColor}}; }'
1436 ],
1437 ]
1438 ],
1439 'catTypo' => [
1440 'type' => 'object',
1441 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>15, 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '500', 'decoration' => 'none','family'=>'' ],
1442 'style' => [
1443 (object)[
1444 'depends' => [
1445 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1446 ],
1447 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a'
1448 ],
1449 ],
1450 ],
1451 'catColor' => [
1452 'type' => 'string',
1453 'default' => '#fff',
1454 'style' => [
1455 (object)[
1456 'depends' => [
1457 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1458 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1459 ],
1460 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1461 ],
1462 ],
1463 ],
1464 'catBgColor' => [
1465 'type' => 'object',
1466 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => '#000'],
1467 'style' => [
1468 (object)[
1469 'depends' => [
1470 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1471 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1472 ],
1473 'selector'=>'{{ULTP}} .ultp-category-grid a'
1474 ],
1475 ],
1476 ],
1477 'catBorder' => [
1478 'type' => 'object',
1479 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1480 'style' => [
1481 (object)[
1482 'depends' => [
1483 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1484 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1485 ],
1486 'selector'=>'{{ULTP}} .ultp-category-grid a'
1487 ],
1488 ],
1489 ],
1490 'catRadius' => [
1491 'type' => 'object',
1492 'default' => (object)['lg' =>'2', 'unit' =>'px'],
1493 'style' => [
1494 (object)[
1495 'depends' => [
1496 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1497 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1498 ],
1499 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1500 ],
1501 ],
1502 ],
1503 'catHoverColor' => [
1504 'type' => 'string',
1505 'default' => '#fff',
1506 'style' => [
1507 (object)[
1508 'depends' => [
1509 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1510 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1511 ],
1512 'selector'=>'{{ULTP}} .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1513 ],
1514 ],
1515 ],
1516 'catBgHoverColor' => [
1517 'type' => 'object',
1518 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5'],
1519 'style' => [
1520 (object)[
1521 'depends' => [
1522 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1523 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1524 ],
1525 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1526 ],
1527 ],
1528 ],
1529 'catHoverBorder' => [
1530 'type' => 'object',
1531 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1532 'style' => [
1533 (object)[
1534 'depends' => [
1535 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1536 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1537 ],
1538 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1539 ],
1540 ],
1541 ],
1542 'catSacing' => [
1543 'type' => 'object',
1544 'default' => (object)['lg' =>(object)['top' => -65,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1545 'style' => [
1546 (object)[
1547 'depends' => [
1548 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1549 ],
1550 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1551 ],
1552 ],
1553 ],
1554 'catPadding' => [
1555 'type' => 'object',
1556 'default' => (object)['lg' =>(object)['top' => 8,'bottom' => 6,'left' => 16,'right' => 16, 'unit' =>'px']],
1557 'style' => [
1558 (object)[
1559 'depends' => [
1560 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1561 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1562 ],
1563 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1564 ],
1565 ],
1566 ],
1567
1568
1569 //--------------------------
1570 // Image Overlay Setting/Style
1571 //--------------------------
1572 'imgCrop' => [
1573 'type' => 'string',
1574 'default' => 'full',
1575 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']]
1576 ],
1577 'imgOverlay' => [
1578 'type' => 'boolean',
1579 'default' => false,
1580 ],
1581 'imgOverlayType' => [
1582 'type' => 'string',
1583 'default' => 'default',
1584 'style' => [
1585 (object)[
1586 'depends' => [
1587 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1588 ]
1589 ],
1590 ]
1591 ],
1592 'overlayColor' => [
1593 'type' => 'object',
1594 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1595 'style' => [
1596 (object)[
1597 'depends' => [
1598 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1599 ],
1600 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1601 ],
1602 ],
1603
1604 ],
1605 'imgOpacity' => [
1606 'type' => 'string',
1607 'default' => .7,
1608 'style' => [
1609 (object)[
1610 'depends' => [
1611 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1612 ],
1613 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1614 ],
1615 ],
1616 ],
1617
1618 'imgGrayScale' => [
1619 'type' => 'object',
1620 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1621 'style' => [
1622 (object)[
1623 'depends' => [
1624 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1625 ],
1626 'selector'=>'{{ULTP}} .ultp-block-image img { filter: grayscale({{imgGrayScale}}); }'
1627 ],
1628 ],
1629 ],
1630 'imgHoverGrayScale' => [
1631 'type' => 'object',
1632 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1633 'style' => [
1634 (object)[
1635 'depends' => [
1636 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1637 ],
1638 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image img { filter: grayscale({{imgHoverGrayScale}}); }'
1639 ],
1640 ],
1641 ],
1642 'imgRadius' => [
1643 'type' => 'object',
1644 'default' => (object)['lg' =>'', 'unit' =>'px'],
1645 'style' => [
1646 (object)[
1647 'depends' => [
1648 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1649 ],
1650 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1651 ],
1652 ],
1653 ],
1654 'imgHoverRadius' => [
1655 'type' => 'object',
1656 'default' => (object)['lg' =>'', 'unit' =>'px'],
1657 'style' => [
1658 (object)[
1659 'depends' => [
1660 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1661 ],
1662 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1663 ],
1664 ],
1665 ],
1666 'imgShadow' => [
1667 'type' => 'object',
1668 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1669 'style' => [
1670 (object)[
1671 'depends' => [
1672 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1673 ],
1674 'selector'=>'{{ULTP}} .ultp-block-image'
1675 ],
1676 ],
1677 ],
1678 'imgHoverShadow' => [
1679 'type' => 'object',
1680 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1681 'style' => [
1682 (object)[
1683 'depends' => [
1684 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1685 ],
1686 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1687 ],
1688 ],
1689 ],
1690
1691
1692 //--------------------------
1693 // Read more Setting/Style
1694 //--------------------------
1695 'readMoreText' => [
1696 'type' => 'string',
1697 'default' => ''
1698 ],
1699 'readMoreIcon' => [
1700 'type' => 'string',
1701 'default' => 'rightArrowLg',
1702 ],
1703 'readMoreTypo' => [
1704 'type' => 'object',
1705 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '500', 'decoration' => 'none','family'=>'' ],
1706 'style' => [
1707 (object)[
1708 'depends' => [
1709 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1710 ],
1711 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-readmore a'
1712 ],
1713 ],
1714 ],
1715 'readMoreIconSize' => [
1716 'type' => 'object',
1717 'default' => (object)['lg' =>'', 'unit' =>'px'],
1718 'style' => [
1719 (object)[
1720 'depends' => [
1721 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1722 ],
1723 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
1724 ],
1725 ]
1726 ],
1727 'readMoreColor' => [
1728 'type' => 'string',
1729 'default' => '#000',
1730 'style' => [
1731 (object)[
1732 'depends' => [
1733 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1734 ],
1735 'selector'=>'{{ULTP}} .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
1736 ],
1737 ],
1738 ],
1739 'readMoreBgColor' => [
1740 'type' => 'object',
1741 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => '#1740f5'],
1742 'style' => [
1743 (object)[
1744 'depends' => [
1745 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1746 ],
1747 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1748 ],
1749 ],
1750 ],
1751 'readMoreBorder' => [
1752 'type' => 'object',
1753 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1754 'style' => [
1755 (object)[
1756 'depends' => [
1757 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1758 ],
1759 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1760 ],
1761 ],
1762 ],
1763 'readMoreRadius' => [
1764 'type' => 'object',
1765 'default' => (object)['lg' =>'', 'unit' =>'px'],
1766 'style' => [
1767 (object)[
1768 'depends' => [
1769 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1770 ],
1771 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
1772 ],
1773 ],
1774 ],
1775 'readMoreHoverColor' => [
1776 'type' => 'string',
1777 'default' => '#1740f5',
1778 'style' => [
1779 (object)[
1780 'depends' => [
1781 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1782 ],
1783 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
1784 ],
1785 ],
1786 ],
1787 'readMoreBgHoverColor' => [
1788 'type' => 'object',
1789 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#0c32d8'],
1790 'style' => [
1791 (object)[
1792 'depends' => [
1793 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1794 ],
1795 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
1796 ],
1797 ],
1798 ],
1799 'readMoreHoverBorder' => [
1800 'type' => 'object',
1801 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1802 'style' => [
1803 (object)[
1804 'depends' => [
1805 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1806 ],
1807 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
1808 ],
1809 ],
1810 ],
1811 'readMoreHoverRadius' => [
1812 'type' => 'object',
1813 'default' => (object)['lg' =>'', 'unit' =>'px'],
1814 'style' => [
1815 (object)[
1816 'depends' => [
1817 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1818 ],
1819 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
1820 ],
1821 ],
1822 ],
1823 'readMoreSacing' => [
1824 'type' => 'object',
1825 'default' => (object)['lg' =>(object)['top' => 30,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
1826 'style' => [
1827 (object)[
1828 'depends' => [
1829 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1830 ],
1831 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
1832 ],
1833 ],
1834 ],
1835 'readMorePadding' => [
1836 'type' => 'object',
1837 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
1838 'style' => [
1839 (object)[
1840 'depends' => [
1841 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1842 ],
1843 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
1844 ],
1845 ],
1846 ],
1847
1848 //--------------------------
1849 // Meta Setting/Style
1850 //--------------------------
1851 'metaPosition' => [
1852 'type' => 'string',
1853 'default' => 'top',
1854 ],
1855 'metaStyle' => [
1856 'type' => 'string',
1857 'default' => 'icon',
1858 ],
1859 'metaSeparator' => [
1860 'type' => 'string',
1861 'default' => 'dash',
1862 ],
1863 'metaList' => [
1864 'type' => 'string',
1865 'default' => '["metaAuthor","metaDate","metaRead"]',
1866 ],
1867 'metaTypo' => [
1868 'type' => 'object',
1869 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1870 'style' => [
1871 (object)[
1872 'depends' => [
1873 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1874 ],
1875 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1876 ],
1877 ],
1878 ],
1879 'metaColor' => [
1880 'type' => 'string',
1881 'default' => '#989898',
1882 'style' => [
1883 (object)[
1884 'depends' => [
1885 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1886 ],
1887 'selector'=>'{{ULTP}} .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }'
1888 ],
1889 ],
1890 ],
1891 'metaHoverColor' => [
1892 'type' => 'string',
1893 'default' => '#1740f5',
1894 'style' => [
1895 (object)[
1896 'depends' => [
1897 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1898 ],
1899 'selector'=>'{{ULTP}} .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }'
1900 ],
1901 ],
1902 ],
1903 'metaSpacing' => [
1904 'type' => 'object',
1905 'default' => (object)['lg' =>'15', 'unit' =>'px'],
1906 'style' => [
1907 (object)[
1908 'depends' => [
1909 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1910 ],
1911 'selector'=>'{{ULTP}} .ultp-block-meta span { margin-right:{{metaSpacing}}; } {{ULTP}} .ultp-block-meta span { padding-left: {{metaSpacing}}; }'
1912 ],
1913 ],
1914 ],
1915 'metaMargin' => [
1916 'type' => 'object',
1917 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1918 'style' => [
1919 (object)[
1920 'depends' => [
1921 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1922 ],
1923 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1924 ],
1925 ],
1926 ],
1927 'metaPadding' => [
1928 'type' => 'object',
1929 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1930 'style' => [
1931 (object)[
1932 'depends' => [
1933 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1934 ],
1935 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1936 ],
1937 ],
1938 ],
1939 'metaBorder' => [
1940 'type' => 'object',
1941 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1942 'style' => [
1943 (object)[
1944 'depends' => [
1945 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1946 ],
1947 'selector'=>'{{ULTP}} .ultp-block-meta'
1948 ],
1949 ],
1950 ],
1951 'metaBg' => [
1952 'type' => 'string',
1953 'default' => '',
1954 'style' => [
1955 (object)[
1956 'depends' => [
1957 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1958 ],
1959 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1960 ],
1961 ],
1962 ],
1963
1964
1965 //--------------------------
1966 // Wrapper Style
1967 //--------------------------
1968 'wrapBg' => [
1969 'type' => 'object',
1970 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
1971 'style' => [
1972 (object)[
1973 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1974 ],
1975 ],
1976 ],
1977 'wrapBorder' => [
1978 'type' => 'object',
1979 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1980 'style' => [
1981 (object)[
1982 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1983 ],
1984 ],
1985 ],
1986 'wrapShadow' => [
1987 'type' => 'object',
1988 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1989 'style' => [
1990 (object)[
1991 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1992 ],
1993 ],
1994 ],
1995 'wrapRadius' => [
1996 'type' => 'object',
1997 'default' => (object)['lg' =>'', 'unit' =>'px'],
1998 'style' => [
1999 (object)[
2000 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2001 ],
2002 ],
2003 ],
2004 'wrapHoverBackground' => [
2005 'type' => 'object',
2006 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#1740f5'],
2007 'style' => [
2008 (object)[
2009 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2010 ],
2011 ],
2012 ],
2013 'wrapHoverBorder' => [
2014 'type' => 'object',
2015 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2016 'style' => [
2017 (object)[
2018 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2019 ],
2020 ],
2021 ],
2022 'wrapHoverRadius' => [
2023 'type' => 'object',
2024 'default' => (object)['lg' =>'', 'unit' =>'px'],
2025 'style' => [
2026 (object)[
2027 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2028 ],
2029 ],
2030 ],
2031 'wrapHoverShadow' => [
2032 'type' => 'object',
2033 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2034 'style' => [
2035 (object)[
2036 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2037 ],
2038 ],
2039 ],
2040 'wrapMargin' => [
2041 'type' => 'object',
2042 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2043 'style' => [
2044 (object)[
2045 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2046 ],
2047 ],
2048 ],
2049 'wrapOuterPadding' => [
2050 'type' => 'object',
2051 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
2052 'style' => [
2053 (object)[
2054 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2055 ],
2056 ],
2057 ],
2058 'wrapInnerPadding' => [
2059 'type' => 'object',
2060 'default' => (object)['lg' =>(object)['unit' =>'px']],
2061 'style' => [
2062 (object)[
2063 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
2064 ],
2065 ],
2066 ],
2067 'advanceId' => [
2068 'type' => 'string',
2069 'default' => '',
2070 ],
2071 'advanceZindex' => [
2072 'type' => 'number',
2073 'default' => '',
2074 'style' => [
2075 (object)[
2076 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}'
2077 ],
2078 ],
2079 ],
2080 'hideExtraLarge' => [
2081 'type' => 'boolean',
2082 'default' => false,
2083 'style' => [
2084 (object)[
2085 'selector' => '{{ULTP}} {display:none;}'
2086 ],
2087 ],
2088 ],
2089 'hideDesktop' => [
2090 'type' => 'boolean',
2091 'default' => false,
2092 'style' => [
2093 (object)[
2094 'selector' => '{{ULTP}} {display:none;}'
2095 ],
2096 ],
2097 ],
2098 'hideTablet' => [
2099 'type' => 'boolean',
2100 'default' => false,
2101 'style' => [
2102 (object)[
2103 'selector' => '{{ULTP}} {display:none;}'
2104 ],
2105 ],
2106 ],
2107 'hideMobile' => [
2108 'type' => 'boolean',
2109 'default' => false,
2110 'style' => [
2111 (object)[
2112 'selector' => '{{ULTP}} {display:none;}'
2113 ],
2114 ],
2115 ],
2116 'advanceCss' => [
2117 'type' => 'string',
2118 'default' => '',
2119 'style' => [(object)['selector' => '']],
2120 ]
2121
2122 );
2123
2124 if( $default ){
2125 $temp = array();
2126 foreach ($attributes as $key => $value) {
2127 if( isset($value['default']) ){
2128 $temp[$key] = $value['default'];
2129 }
2130 }
2131 return $temp;
2132 }else{
2133 return $attributes;
2134 }
2135 }
2136
2137 public function register() {
2138 register_block_type( 'ultimate-post/post-slider-1',
2139 array(
2140 'attributes' => $this->get_attributes(),
2141 'description' => __( 'Dynamic post slider with lots of settings.' ),
2142 'keywords' => [__( 'Latest Post' ), __( 'Popular Post' ), __( 'Article' )],
2143 'render_callback' => array($this, 'content')
2144 ));
2145 }
2146
2147 public function content($attr, $noAjax) {
2148
2149 if(!$noAjax){
2150 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2151 $attr['paged'] = $paged ? $paged : 1;
2152 }
2153
2154 $block_name = 'post-slider-1';
2155 $page_post_id = get_the_ID();
2156 $wraper_before = $wraper_after = $post_loop = '';
2157 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
2158 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
2159
2160 if ( $recent_posts->have_posts() ) {
2161 $wraper_before .= '<div id="'.$attr["blockId"].'" class="wp-block-ultimate-post-'.$block_name.' ultp-block-'.$attr["blockId"].''.(isset($attr["align"])? ' align' .$attr["align"]:'').''.(isset($attr["className"])?' '.$attr["className"]:'').'">';
2162 $wraper_before .= '<div class="ultp-block-wrapper">';
2163 if ($attr['headingShow']) {
2164 $wraper_before .= '<div class="ultp-heading-filter">';
2165 $wraper_before .= '<div class="ultp-heading-filter-in">';
2166 include ULTP_PATH.'blocks/template/heading.php';
2167 $wraper_before .= '</div>';
2168 $wraper_before .= '</div>';
2169 }
2170 $wraper_before .= '<div class="ultp-block-items-wrap" data-arrows="'.$attr['arrows'].'" data-dots="'.$attr['dots'].'" data-autoplay="'.$attr['autoPlay'].'" data-slidespeed="'.$attr['slideSpeed'].'" data-fade="'.$attr['fade'].'">';
2171 $idx = $noAjax ? 1 : 0;
2172 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
2173
2174 include ULTP_PATH.'blocks/template/data.php';
2175
2176 $post_loop .= '<div class="ultp-block-item post-id-'.$post_id.'">';
2177 $post_loop .= '<div class="ultp-block-slider-wrap">';
2178
2179 $post_loop .= '<div class="ultp-block-image-inner">';
2180 if(has_post_thumbnail()) {
2181 $post_loop .= '<div class="ultp-block-image '.($attr["imgOverlay"] ? ' ultp-block-image-overlay ultp-block-image-'.$attr["imgOverlayType"].' ultp-block-image-'.$attr["imgOverlayType"].$idx : '' ).'">';
2182 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title).'</a>';
2183 $post_loop .= '</div>'; //.ultp-block-image
2184 }
2185 $post_loop .= '</div>'; //.ultp-block-image-inner
2186
2187 $post_loop .= '<div class="ultp-block-content ultp-block-content-'.$attr['contentVerticalPosition'].' ultp-block-content-'.$attr['contentHorizontalPosition'].'">';
2188 $post_loop .= '<div class="ultp-block-content-inner">';
2189
2190 include ULTP_PATH.'blocks/template/category.php';
2191 $post_loop .= $category;
2192
2193 if ($title && $attr['titleShow'] && $attr['titlePosition']) {
2194 include ULTP_PATH.'blocks/template/title.php';
2195 }
2196
2197 if( $attr['metaPosition'] =='top' ) {
2198 include ULTP_PATH.'blocks/template/meta.php';
2199 }
2200
2201 if ($title && $attr['titleShow'] && !$attr['titlePosition']) {
2202 include ULTP_PATH.'blocks/template/title.php';
2203 }
2204
2205 if ($attr['excerptShow']) {
2206 if ( $attr['showFullExcerpt']== 0 ) {
2207 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->excerpt($post_id, $attr['excerptLimit']).'</div>';
2208 } else {
2209 $post_loop .= '<div class="ultp-block-excerpt">'.get_the_excerpt().'</div>';
2210 }
2211 }
2212
2213 if ($attr['readMore']) {
2214 $post_loop .= '<div class="ultp-block-readmore"><a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.($attr['readMoreText'] ? $attr['readMoreText'] : __( "Read More", "ultimate-post" )).ultimate_post()->svg_icon($attr['readMoreIcon']).'</a></div>';
2215 }
2216
2217 if( $attr['metaPosition'] =='bottom' ) {
2218 include ULTP_PATH.'blocks/template/meta.php';
2219 }
2220
2221 $post_loop .= '</div>'; //.ultp-block-content-inner
2222 $post_loop .= '</div>'; //.ultp-block-content
2223
2224 $post_loop .= '</div>'; //.ultp-block-slider-wrap
2225 $post_loop .= '</div>'; //.ultp-block-item
2226
2227 endwhile;
2228
2229 $wraper_after .= '</div>'; //.ultp-block-items-wrap
2230
2231 if($attr['arrows']){
2232 $wraper_after .= '<div class="ultp-slick-nav" style="display:none">';
2233 $nav = explode('#', $attr['arrowStyle']);
2234 $wraper_after .= '<div class="ultp-slick-prev"><div class="slick-arrow slick-prev">'.ultimate_post()->svg_icon($nav[0]).'</div></div>';
2235 $wraper_after .= '<div class="ultp-slick-next"><div class="slick-arrow slick-next">'.ultimate_post()->svg_icon($nav[1]).'</div></div>';
2236 $wraper_after .= '</div>';
2237 }
2238
2239 $wraper_after .= '</div>'; //.ultp-block-wrapper
2240 $wraper_after .= '</div>'; //.wp-block-ultimate-post-post-slider-1
2241
2242 wp_reset_query();
2243 }
2244
2245 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
2246 }
2247
2248 }