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

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

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