PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.6.4
Post Grid Gutenberg Blocks – PostX v2.6.4
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 2.6.4, at blocks/Post_Slider_1.php

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