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

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

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