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

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

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