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

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

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