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

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

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