PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.0.7
Post Grid Gutenberg Blocks – PostX v1.0.7
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.0.7, at blocks/Post_Slider_1.php

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