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

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

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