PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.2.2
Post Grid Gutenberg Blocks – PostX v1.2.2
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 2.1.2 All 237 releases
ultimate-post / blocks / Post_Slider_1.php

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

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