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

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

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