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

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

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