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

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

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