PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.6
Post Grid Gutenberg Blocks – PostX v2.5.6
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.5.6, at blocks/Post_Grid_5.php

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