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_Grid_5.php

Post_Grid_5.php in Post Grid Gutenberg Blocks – PostX 2.6.4, at blocks/Post_Grid_5.php

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