PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.2
Post Grid Gutenberg Blocks – PostX v2.5.2
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.2, at blocks/Post_Grid_2.php

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