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

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

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