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

Post_List_1.php in Post Grid Gutenberg Blocks – PostX 2.5.2, at blocks/Post_List_1.php

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