PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.6
Post Grid Gutenberg Blocks – PostX v2.5.6
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / blocks / Post_Grid_6.php

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

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