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

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

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