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

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

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