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

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

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