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

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

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