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

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

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