PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.9.2
Post Grid Gutenberg Blocks – PostX v2.9.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_Module_1.php

Post_Module_1.php in Post Grid Gutenberg Blocks – PostX 2.9.2, at blocks/Post_Module_1.php

3,280 lines 155.7 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_Module_1{
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 'style' => [
38 (object)[
39 'depends' => [
40 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
41 ]
42 ],
43 ],
44 ],
45 'queryNumPosts' => [
46 'type' => 'object',
47 'default' => (object)['lg'=>5],
48 'style' => [
49 (object)[
50 'depends' => [
51 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')]
52 ]
53 ],
54 ],
55 ],
56 'queryNumber' => [
57 'type' => 'string',
58 'default' => 5,
59 'style' => [
60 (object)[
61 'depends' => [
62 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
63 ]
64 ],
65 ],
66 ],
67 'queryType' => [
68 'type' => 'string',
69 'default' => 'post'
70 ],
71 'queryTax' => [
72 'type' => 'string',
73 'default' => 'category',
74 'style' => [
75 (object)[
76 'depends' => [
77 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
78 ]
79 ],
80 ],
81 ],
82 'queryTaxValue' => [
83 'type' => 'string',
84 'default' => '[]',
85 'style' => [
86 (object)[
87 'depends' => [
88 (object)['key' => 'queryTax','condition' => '!=','value' => ''],
89 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
90 ]
91 ],
92 ],
93 ],
94 'queryRelation' => [
95 'type' => 'string',
96 'default' => 'OR',
97 'style' => [
98 (object)[
99 'depends' => [
100 (object)['key' => 'queryTaxValue','condition' => '!=','value' => '[]'],
101 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
102 ]
103 ],
104 ],
105 ],
106 'queryOrderBy' => [
107 'type' => 'string',
108 'default' => 'date',
109 ],
110 'metaKey' => [
111 'type' => 'string',
112 'default' => 'custom_meta_key',
113 'style' => [
114 (object)[
115 'depends' => [
116 (object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num'],
117 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
118 ]
119 ],
120 ],
121 ],
122 'queryOrder' => [
123 'type' => 'string',
124 'default' => 'desc',
125 ],
126 // Include Remove from Version 2.5.4
127 'queryInclude' => [
128 'type' => 'string',
129 'default' => '',
130 ],
131 'queryExclude' => [
132 'type' => 'string',
133 'default' => '[]',
134 'style' => [
135 (object)[
136 'depends' => [
137 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
138 ]
139 ],
140 ],
141 ],
142 'queryAuthor' => [
143 'type' => 'string',
144 'default' => '[]',
145 'style' => [
146 (object)[
147 'depends' => [
148 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
149 ]
150 ],
151 ],
152 ],
153 'queryOffset' => [
154 'type' => 'string',
155 'default' => '0',
156 'style' => [
157 (object)[
158 'depends' => [
159 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
160 ]
161 ],
162 ],
163 ],
164 'queryExcludeTerm' => [
165 'type' => 'string',
166 'default' => '[]',
167 'style' => [
168 (object)[
169 'depends' => [
170 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
171 ]
172 ],
173 ],
174 ],
175 'queryExcludeAuthor' => [
176 'type' => 'string',
177 'default' => '[]',
178 'style' => [
179 (object)[
180 'depends' => [
181 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
182 ]
183 ],
184 ],
185 ],
186 'querySticky' => [
187 'type' => 'boolean',
188 'default' => true,
189 'style' => [
190 (object)[
191 'depends' => [
192 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
193 ]
194 ],
195 ],
196 ],
197 'queryUnique' => [
198 'type' => 'string',
199 'default' => '',
200 'style' => [
201 (object)[
202 'depends' => [
203 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
204 ]
205 ],
206 ],
207 ],
208 'queryPosts' => [
209 'type' => 'string',
210 'default' => '[]',
211 'style' => [
212 (object)[
213 'depends' => [
214 (object)['key' => 'queryType','condition' => '==','value' => 'posts']
215 ]
216 ],
217 ],
218 ],
219 'queryCustomPosts' => [
220 'type' => 'string',
221 'default' => '[]',
222 'style' => [
223 (object)[
224 'depends' => [
225 (object)['key' => 'queryType','condition' => '==','value' => 'customPosts']
226 ]
227 ],
228 ],
229 ],
230 //--------------------------
231 // General Setting
232 //--------------------------
233 'titleShow' => [
234 'type' => 'boolean',
235 'default' => true,
236 ],
237 'titleStyle' => [
238 'type' => 'string',
239 'default' => 'none',
240 ],
241 'titleAnimColor' => [
242 'type' => 'string',
243 'default' => 'black',
244 'style' => [
245 (object)[
246 'depends' => [
247 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style1']
248 ],
249 'selector'=>'{{ULTP}} .ultp-title-style1 a {
250 cursor: pointer;
251 text-decoration: none;
252 display: inline;
253 padding-bottom: 2px;
254 transition: all 0.35s linear !important;
255 background: linear-gradient(
256 to bottom,
257 {{titleAnimColor}} 0%,
258 {{titleAnimColor}} 98%
259 );
260 background-size: 0px 2px;
261 background-repeat: no-repeat;
262 background-position: left 100%;
263 }'
264 ],
265 (object)[
266 'depends' => [
267 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style2']
268 ],
269 'selector'=>'{{ULTP}} .ultp-title-style2 a:hover {
270 border-bottom:none;
271 padding-bottom: 2px;
272 background-position:0 100%;
273 background-repeat: repeat;
274 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");
275 }'
276 ],
277 (object)[
278 'depends' => [
279 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style3']
280 ],
281 'selector'=>'{{ULTP}} .ultp-title-style3 a {
282 text-decoration: none;
283 $thetransition: all 1s cubic-bezier(1,.25,0,.75) 0s;
284 position: relative;
285 transition: all 0.35s ease-out;
286 padding-bottom: 3px;
287 border-bottom:none;
288 padding-bottom: 2px;
289 background-position:0 100%;
290 background-repeat: repeat;
291 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");
292 }'
293 ],
294 (object)[
295 'depends' => [
296 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style4']
297 ],
298 'selector'=>'{{ULTP}} .ultp-title-style4 a {
299 cursor: pointer;
300 font-weight: 600;
301 text-decoration: none;
302 display: inline;
303 padding-bottom: 2px;
304 transition: all 0.3s linear !important;
305 background: linear-gradient(
306 to bottom,
307 {{titleAnimColor}} 0%,
308 {{titleAnimColor}} 98%
309 );
310 background-size: 100% 2px;
311 background-repeat: no-repeat;
312 background-position: left 100%;
313 }'
314 ] ,
315 (object)[
316 'depends' => [
317 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
318 ],
319 'selector'=>'{{ULTP}} .ultp-title-style5 a:hover{
320 text-decoration: none;
321 transition: all 0.35s ease-out;
322 border-bottom:none;
323 padding-bottom: 2px;
324 background-position:0 100%;
325 background-repeat: repeat;
326 background-size:auto;
327 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");
328 } '
329 ],
330 (object)[
331 'depends' => [
332 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
333 ],
334 'selector'=>'{{ULTP}} .ultp-title-style5 a {
335 cursor: pointer;
336 text-decoration: none;
337 display: inline;
338 padding-bottom: 2px;
339 transition: all 0.3s linear !important;
340 background: linear-gradient(
341 to bottom,
342 {{titleAnimColor}} 0%,
343 {{titleAnimColor}} 98%
344 );
345 background-size: 100% 2px;
346 background-repeat: no-repeat;
347 background-position: left 100%;
348 }'
349 ],
350 (object)[
351 'depends' => [
352 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style6']
353 ],
354 'selector'=>'{{ULTP}} .ultp-title-style6 a{
355 background-image: linear-gradient(120deg, {{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
356 background-repeat: no-repeat;
357 background-size: 100% 2px;
358 background-position: 0 88%;
359 transition: background-size 0.15s ease-in;
360 padding: 5px 5px;
361 }'
362 ],
363 (object)[
364 'depends' => [
365 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style7']
366 ],
367 'selector'=>'{{ULTP}} .ultp-title-style7 a {
368 cursor: pointer;
369 text-decoration: none;
370 display: inline;
371 padding-bottom: 2px;
372 transition: all 0.3s linear !important;
373 background: linear-gradient(
374 to bottom,
375 {{titleAnimColor}} 0%,
376 {{titleAnimColor}} 98%
377 );
378 background-size: 0px 2px;
379 background-repeat: no-repeat;
380 background-position: right 100%;
381 } '
382 ],
383 (object)[
384 'depends' => [
385 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style8']
386 ],
387 'selector'=>'{{ULTP}} .ultp-title-style8 a {
388 cursor: pointer;
389 text-decoration: none;
390 display: inline;
391 padding-bottom: 2px;
392 transition: all 0.3s linear !important;
393 background: linear-gradient(
394 to bottom,
395 {{titleAnimColor}} 0%,
396 {{titleAnimColor}} 98%
397 );
398 background-size: 0px 2px;
399 background-repeat: no-repeat;
400 background-position: center 100%;
401 } '
402 ],
403 (object)[
404 'depends' => [
405 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style9']
406 ],
407 'selector'=>'{{ULTP}} .ultp-title-style9 a {
408 background-image: linear-gradient(120deg,{{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
409 background-repeat: no-repeat;
410 background-size: 100% 10px;
411 background-position: 0 88%;
412 transition: 0.3s ease-in;
413 padding: 3px 5px;
414 } '
415 ]
416 ],
417 ],
418
419 'headingShow' => [
420 'type' => 'boolean',
421 'default' => true,
422 ],
423 'excerptShow' => [
424 'type' => 'boolean',
425 'default' => true
426 ],
427 'catShow' => [
428 'type' => 'boolean',
429 'default' => true,
430 ],
431 'metaShow' => [
432 'type' => 'boolean',
433 'default' => true,
434 ],
435 'showImage' => [
436 'type' => 'boolean',
437 'default' => true,
438 ],
439 'filterShow' => [
440 'type' => 'boolean',
441 'default' => false,
442 'style' => [
443 (object)[
444 'depends' => [
445 (object)['key'=>'queryType','condition'=>'!=','value'=>['posts','customPosts']],
446 ],
447 ],
448 ]
449 ],
450 'paginationShow' => [
451 'type' => 'boolean',
452 'default' => false,
453 ],
454 'readMore' => [
455 'type' => 'boolean',
456 'default' => false,
457 ],
458 'columnGridGap' => [
459 'type' => 'object',
460 'default' => (object)['lg' =>'15', 'unit' =>'px'],
461 'style' => [
462 (object)[
463 'selector'=>'{{ULTP}} .ultp-block-post-module1 { margin: 0 -{{columnGridGap}};} {{ULTP}} .ultp-block-post-module1 .ultp-big-post-module1, {{ULTP}} .ultp-block-post-module1 .ultp-small-post-module1 { padding: 0 {{columnGridGap}};} {{ULTP}} .ultp-block-row {grid-column-gap: {{columnGridGap}}; }'
464 ],
465 ],
466 ],
467 'largeHeight' => [
468 'type' => 'object',
469 'default' => (object)['lg' =>'245', 'unit' =>'px'],
470 'style' => [
471 (object)[
472 'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-content-wrap .ultp-block-image img {width: 100%; object-fit: cover; height: {{largeHeight}};}'
473 ],
474 ],
475 ],
476 'contentTag' => [
477 'type' => 'string',
478 'default' => 'div',
479 ],
480 'openInTab' => [
481 'type' => 'boolean',
482 'default' => false,
483 ],
484 'notFoundMessage' => [
485 'type' => 'string',
486 'default' => 'No Post Found'
487 ],
488
489 //--------------------------
490 // Heading Setting/Style
491 //--------------------------
492 'headingText' => [
493 'type' => 'string',
494 'default' => 'Post Module #1',
495 ],
496 'headingURL' => [
497 'type' => 'string',
498 'default' => '',
499 ],
500 'headingBtnText' => [
501 'type' => 'string',
502 'default' => 'View More',
503 'style' => [
504 (object)[
505 'depends' => [
506 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
507 ],
508 ],
509 ],
510 ],
511 'headingStyle' => [
512 'type' => 'string',
513 'default' => 'style9',
514 ],
515 'headingTag' => [
516 'type' => 'string',
517 'default' => 'h2',
518 ],
519 'headingAlign' => [
520 'type' => 'string',
521 'default' => 'left',
522 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner{ text-align:{{headingAlign}}; }']]
523 ],
524 'headingTypo' => [
525 'type' => 'object',
526 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => '', 'family'=>'','weight'=>'700'],
527 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']]
528 ],
529 'headingColor' => [
530 'type' => 'string',
531 'default' => '#0e1523',
532 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']],
533 ],
534 'headingBorderBottomColor' => [
535 'type' => 'string',
536 'default' => '#0e1523',
537 'style' => [
538 (object)[
539 'depends' => [
540 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
541 ],
542 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }'
543 ],
544 (object)[
545 'depends' => [
546 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
547 ],
548 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
549 ],
550 (object)[
551 'depends' => [
552 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
553 ],
554 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
555 ],
556 (object)[
557 'depends' => [
558 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
559 ],
560 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { background-color: {{headingBorderBottomColor}}; }'
561 ],
562 (object)[
563 'depends' => [
564 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
565 ],
566 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
567 ],
568 (object)[
569 'depends' => [
570 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
571 ],
572 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
573 ],
574 (object)[
575 'depends' => [
576 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
577 ],
578 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
579 ],
580 (object)[
581 'depends' => [
582 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
583 ],
584 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
585 ],
586 (object)[
587 'depends' => [
588 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
589 ],
590 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
591 ],
592 (object)[
593 'depends' => [
594 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
595 ],
596 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
597 ],
598 (object)[
599 'depends' => [
600 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
601 ],
602 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
603 ],
604 (object)[
605 'depends' => [
606 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
607 ],
608 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
609 ],
610 (object)[
611 'depends' => [
612 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
613 ],
614 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
615 ],
616 (object)[
617 'depends' => [
618 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
619 ],
620 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }'
621 ],
622 ],
623 ],
624 'headingBorderBottomColor2' => [
625 'type' => 'string',
626 'default' => '#e5e5e5',
627 'style' => [
628 (object)[
629 'depends' => [
630 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
631 ],
632 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }'
633 ],
634 (object)[
635 'depends' => [
636 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
637 ],
638 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
639 ],
640 (object)[
641 'depends' => [
642 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
643 ],
644 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
645 ],
646 (object)[
647 'depends' => [
648 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
649 ],
650 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
651 ],
652 ],
653 ],
654 'headingBg' => [
655 'type' => 'string',
656 'default' => '#037fff',
657 'style' => [
658 (object)[
659 'depends' => [
660 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
661 ],
662 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
663 ],
664 (object)[
665 'depends' => [
666 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
667 ],
668 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
669 ],
670 (object)[
671 'depends' => [
672 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'],
673 ],
674 'selector'=>'{{ULTP}} .ultp-heading-inner span, {{ULTP}} .ultp-heading-inner span:after { background-color:{{headingBg}}; }'
675 ],
676 (object)[
677 'depends' => [
678 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
679 ],
680 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
681 ],
682 (object)[
683 'depends' => [
684 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
685 ],
686 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
687 ],
688 (object)[
689 'depends' => [
690 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
691 ],
692 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
693 ],
694 (object)[
695 'depends' => [
696 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
697 ],
698 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
699 ],
700 (object)[
701 'depends' => [
702 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
703 ],
704 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
705 ],
706 ],
707 ],
708 'headingBg2' => [
709 'type' => 'string',
710 'default' => '#e5e5e5',
711 'style' => [
712 (object)[
713 'depends' => [
714 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
715 ],
716 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }'
717 ],
718 ],
719 ],
720 'headingBtnTypo' => [
721 'type' => 'object',
722 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''],
723 'style' => [
724 (object)[
725 'depends' => [
726 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
727 ],
728 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn'
729 ],
730 ],
731 ],
732 'headingBtnColor' => [
733 'type' => 'string',
734 'default' => '#037fff',
735 'style' => [
736 (object)[
737 'depends' => [
738 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
739 ],
740 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }'
741 ],
742 ],
743 ],
744 'headingBtnHoverColor' => [
745 'type' => 'string',
746 'default' => '#0a31da',
747 'style' => [
748 (object)[
749 'depends' => [
750 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
751 ],
752 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }'
753 ],
754 ],
755 ],
756
757 'headingBorder' => [
758 'type' => 'string',
759 'default' => '3',
760 'style' => [
761 (object)[
762 'depends' => [
763 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
764 ],
765 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }'
766 ],
767 (object)[
768 'depends' => [
769 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
770 ],
771 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
772 ],
773 (object)[
774 'depends' => [
775 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
776 ],
777 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }'
778 ],
779 (object)[
780 'depends' => [
781 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
782 ],
783 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { height:{{headingBorder}}px; }'
784 ],
785 (object)[
786 'depends' => [
787 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
788 ],
789 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
790 ],
791 (object)[
792 'depends' => [
793 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
794 ],
795 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
796 ],
797 (object)[
798 'depends' => [
799 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
800 ],
801 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
802 ],
803 (object)[
804 'depends' => [
805 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
806 ],
807 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
808 ],
809 (object)[
810 'depends' => [
811 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
812 ],
813 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
814 ],
815 (object)[
816 'depends' => [
817 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
818 ],
819 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
820 ],
821 (object)[
822 'depends' => [
823 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
824 ],
825 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
826 ],
827 (object)[
828 'depends' => [
829 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
830 ],
831 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
832 ],
833 (object)[
834 'depends' => [
835 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
836 ],
837 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
838 ],
839 (object)[
840 'depends' => [
841 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
842 ],
843 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
844 ],
845 ],
846 ],
847 'headingSpacing' => [
848 'type' => 'object',
849 'default' => (object)['lg'=>20, 'unit'=>'px'],
850 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']]
851 ],
852
853
854 'headingRadius' => [
855 'type' => 'object',
856 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
857 'style' => [
858 (object)[
859 'depends' => [
860 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
861 ],
862 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
863 ],
864 (object)[
865 'depends' => [
866 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
867 ],
868 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
869 ],
870 (object)[
871 'depends' => [
872 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
873 ],
874 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
875 ],
876 (object)[
877 'depends' => [
878 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
879 ],
880 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
881 ],
882 (object)[
883 'depends' => [
884 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
885 ],
886 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
887 ],
888 (object)[
889 'depends' => [
890 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
891 ],
892 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
893 ],
894 (object)[
895 'depends' => [
896 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
897 ],
898 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
899 ],
900 (object)[
901 'depends' => [
902 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
903 ],
904 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
905 ],
906 ]
907 ],
908
909
910 'headingPadding' => [
911 'type' => 'object',
912 'default' => (object)['lg'=>'', 'unit'=>'px'],
913 'style' => [
914 (object)[
915 'depends' => [
916 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
917 ],
918 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
919 ],
920 (object)[
921 'depends' => [
922 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
923 ],
924 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
925 ],
926 (object)[
927 'depends' => [
928 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
929 ],
930 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
931 ],
932 (object)[
933 'depends' => [
934 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
935 ],
936 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
937 ],
938 (object)[
939 'depends' => [
940 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
941 ],
942 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
943 ],
944 (object)[
945 'depends' => [
946 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
947 ],
948 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
949 ],
950 (object)[
951 'depends' => [
952 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
953 ],
954 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
955 ],
956 (object)[
957 'depends' => [
958 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
959 ],
960 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
961 ],
962 (object)[
963 'depends' => [
964 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
965 ],
966 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
967 ],
968 (object)[
969 'depends' => [
970 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
971 ],
972 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
973 ],
974 (object)[
975 'depends' => [
976 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'],
977 ],
978 'selector'=>'{{ULTP}} .ultp-heading-inner span { padding:{{headingPadding}}; }'
979 ],
980
981 ]
982 ],
983 'subHeadingShow' => [
984 'type' => 'boolean',
985 'default' => false,
986 ],
987 'subHeadingText' => [
988 'type' => 'string',
989 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
990 'style' => [
991 (object)[
992 'depends' => [
993 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
994 ],
995 ],
996 ],
997 ],
998 'subHeadingTypo' => [
999 'type' => 'object',
1000 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'16', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'27', 'unit'=>'px'],'decoration'=>'none','transform' => '','family'=>'','weight'=>'500'],
1001 'style' => [
1002 (object)[
1003 'depends' => [
1004 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1005 ],
1006 'selector'=>'{{ULTP}} .ultp-sub-heading div'
1007 ],
1008 ],
1009 ],
1010 'subHeadingColor' => [
1011 'type' => 'string',
1012 'default' => '#989898',
1013 'style' => [
1014 (object)[
1015 'depends' => [
1016 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1017 ],
1018 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
1019 ],
1020 ],
1021 ],
1022 'subHeadingSpacing' => [
1023 'type' => 'object',
1024 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']],
1025 'style' => [
1026 (object)[
1027 'depends' => [
1028 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1029 ],
1030 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
1031 ],
1032 ],
1033 ],
1034
1035
1036 //--------------------------
1037 // Title Setting/Style
1038 //--------------------------
1039 'titleTag' => [
1040 'type' => 'string',
1041 'default' => 'h3',
1042 ],
1043 'titlePosition' => [
1044 'type' => 'boolean',
1045 'default' => true,
1046 ],
1047 'titleColor' => [
1048 'type' => 'string',
1049 'default' => '#0e1523',
1050 'style' => [
1051 (object)[
1052 'depends' => [
1053 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1054 ],
1055 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}} !important; }'
1056 ],
1057 ],
1058 ],
1059 'titleHoverColor' => [
1060 'type' => 'string',
1061 'default' => '#828282',
1062 'style' => [
1063 (object)[
1064 'depends' => [
1065 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1066 ],
1067 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }'
1068 ],
1069 ],
1070 ],
1071 'titleLgTypo' => [
1072 'type' => 'object',
1073 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'24', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'32', 'unit'=>'px'],'decoration'=>'none','transform' => '','family'=>'','weight'=>'500'],
1074 'style' => [
1075 (object)[
1076 'depends' => [
1077 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1078 ],
1079 'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-big-post-module1 .ultp-block-item:first-child .ultp-block-title a'
1080 ],
1081 ],
1082 ],
1083 'titleTypo' => [
1084 'type' => 'object',
1085 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'14', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)['lg'=>'22', 'unit'=>'px'],'transform' => '', 'decoration'=>'none','family'=>'','weight'=>'500'],
1086 'style' => [
1087 (object)[
1088 'depends' => [
1089 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1090 ],
1091 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-title, {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-title a'
1092 ],
1093 ],
1094 ],
1095 'titlePadding' => [
1096 'type' => 'object',
1097 'default' => (object)['lg'=>(object)['top'=>0,'bottom'=>5, 'unit'=>'px']],
1098 'style' => [
1099 (object)[
1100 'depends' => [
1101 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1102 ],
1103 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
1104 ],
1105 ],
1106 ],
1107 'titleLgPadding' => [
1108 'type' => 'object',
1109 'default' => (object)['lg'=>(object)['top'=>10,'bottom'=>8, 'unit'=>'px']],
1110 'style' => [
1111 (object)[
1112 'depends' => [
1113 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1114 ],
1115 'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-content .ultp-block-title { padding:{{titleLgPadding}}; }'
1116 ],
1117 ],
1118 ],
1119 'titleLength' => [
1120 'type' => 'string',
1121 'default' => 0,
1122 ],
1123
1124 //--------------------------
1125 // Content Setting/Style
1126 //--------------------------
1127
1128 'varticalAlign' => [
1129 'type' => 'string',
1130 'default' => 'middle',
1131 'style' => [
1132 (object)[
1133 'depends' => [
1134 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'top'],
1135 ],
1136 'selector'=>'{{ULTP}} .ultp-block-content-top .ultp-block-content { -ms-flex-item-align: flex-start;-ms-grid-row-align: flex-start;align-self: flex-start; }'
1137 ],
1138 (object)[
1139 'depends' => [
1140 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'middle'],
1141 ],
1142 'selector'=>'{{ULTP}} .ultp-block-content-middle .ultp-block-content { -ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center; }'
1143 ],
1144 (object)[
1145 'depends' => [
1146 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'bottom'],
1147 ],
1148 'selector'=>'{{ULTP}} .ultp-block-content-bottom .ultp-block-content { -ms-flex-item-align: flex-end;-ms-grid-row-align: flex-end;align-self: flex-end; }'
1149 ],
1150 ],
1151 ],
1152 'showSeoMeta' => [
1153 'type' => 'boolean',
1154 'default'=> false
1155 ],
1156 'showSmallExcerpt' => [
1157 'type' => 'boolean',
1158 'default'=> false,
1159 ],
1160 'showFullExcerpt' => [
1161 'type' => 'boolean',
1162 'default' => false,
1163 ],
1164 'excerptLimit' => [
1165 'type' => 'string',
1166 'default' => 20,
1167 'style' => [
1168 (object)[
1169 'depends' => [
1170 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false]
1171 ],
1172 ],
1173 ],
1174 ],
1175 'excerptColor' => [
1176 'type' => 'string',
1177 'default' => '#777',
1178 'style' => [
1179 (object)[
1180 'depends' => [
1181 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1182 ],
1183 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
1184 ],
1185 ],
1186 ],
1187 'excerptTypo' => [
1188 'type' => 'object',
1189 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1190 'style' => [
1191 (object)[
1192 'depends' => [
1193 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1194 ],
1195 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p'
1196 ],
1197 ],
1198 ],
1199 'excerptPadding' => [
1200 'type' => 'object',
1201 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => '', 'unit' =>'px']],
1202 'style' => [
1203 (object)[
1204 'depends' => [
1205 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1206 ],
1207 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
1208 ],
1209 ],
1210 ],
1211
1212 //--------------------------
1213 // Count Style Setting/Style
1214 //--------------------------
1215 'counterTypo' => [
1216 'type' => 'object',
1217 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>14, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>0, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ],
1218 'style' => [
1219 (object)[
1220 'depends' => [
1221 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1222 ],
1223 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before'
1224 ],
1225 ],
1226 ],
1227 'counterColor' => [
1228 'type' => 'string',
1229 'default' => '#828282',
1230 'style' => [
1231 (object)[
1232 'depends' => [
1233 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1234 ],
1235 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { color:{{counterColor}}; }'
1236 ],
1237 ]
1238 ],
1239 'counterBgColor' => [
1240 'type' => 'object',
1241 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1242 'style' => [
1243 (object)[
1244 'depends' => [
1245 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1246 ],
1247 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before'
1248 ],
1249 ],
1250 ],
1251 'counterWidth' => [
1252 'type' => 'string',
1253 'default' => '',
1254 'style' => [
1255 (object)[
1256 'depends' => [
1257 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1258 ],
1259 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { width:{{counterWidth}}px; }'
1260 ],
1261 ]
1262 ],
1263 'counterHeight' => [
1264 'type' => 'string',
1265 'default' => '',
1266 'style' => [
1267 (object)[
1268 'depends' => [
1269 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1270 ],
1271 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { height:{{counterHeight}}px; }'
1272 ],
1273 ]
1274 ],
1275 'counterBorder' => [
1276 'type' => 'object',
1277 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1278 'style' => [
1279 (object)[
1280 'depends' => [
1281 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1282 ],
1283 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before'
1284 ],
1285 ],
1286 ],
1287 'counterRadius' => [
1288 'type' => 'object',
1289 'default' => (object)['lg' =>'', 'unit' =>'px'],
1290 'style' => [
1291 (object)[
1292 'depends' => [
1293 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1294 ],
1295 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { border-radius:{{counterRadius}}; }'
1296 ],
1297 ],
1298 ],
1299
1300 //--------------------------
1301 // Category Setting/Style
1302 //--------------------------
1303 'maxTaxonomy'=> [
1304 'type' => 'string',
1305 'default' => '30',
1306 ],
1307 'taxonomy' => [
1308 'type' => 'string',
1309 'default' => 'category'
1310 ],
1311 'showSmallCat' => [
1312 'type' => 'boolean',
1313 'default' => false,
1314 ],
1315 'catStyle' => [
1316 'type' => 'string',
1317 'default' => 'classic',
1318 ],
1319 'catPosition' => [
1320 'type' => 'string',
1321 'default' => 'aboveTitle',
1322 ],
1323 'customCatColor' => [
1324 'type' => 'boolean',
1325 'default' => false,
1326 ],
1327 'seperatorLink' => [
1328 'type' => 'string',
1329 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
1330 'style' => [
1331 (object)[
1332 'depends' => [
1333 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1334 ]
1335 ]
1336 ]
1337 ],
1338 'onlyCatColor' => [
1339 'type' => 'boolean',
1340 'default' => false,
1341 'style' => [
1342 (object)[
1343 'depends' => [
1344 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1345 ]
1346 ]
1347 ]
1348 ],
1349 'catLineWidth' => [
1350 'type' => 'object',
1351 'default' => (object)['lg'=>'20'],
1352 'style' => [
1353 (object)[
1354 'depends' => [
1355 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1356 ],
1357 '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; }'
1358 ],
1359 ]
1360 ],
1361 'catLineSpacing' => [
1362 'type' => 'object',
1363 'default' => (object)['lg'=>'30'],
1364 'style' => [
1365 (object)[
1366 'depends' => [
1367 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1368 ],
1369 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1370 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1371 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1372 ],
1373 ]
1374 ],
1375 'catLineColor' => [
1376 'type' => 'string',
1377 'default' => '#828282',
1378 'style' => [
1379 (object)[
1380 'depends' => [
1381 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1382 ],
1383 '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}}; }'
1384 ],
1385 ]
1386 ],
1387 'catLineHoverColor' => [
1388 'type' => 'string',
1389 'default' => '#037fff',
1390 'style' => [
1391 (object)[
1392 'depends' => [
1393 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1394 ],
1395 '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}}; }'
1396 ],
1397 ]
1398 ],
1399 'catTypo' => [
1400 'type' => 'object',
1401 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>14, 'unit' =>'px'], 'height' => (object)['lg' =>20, 'unit' =>'px'], 'spacing' => (object)['lg' =>0, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ],
1402 'style' => [
1403 (object)[
1404 'depends' => [
1405 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1406 ],
1407 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
1408 ],
1409 ],
1410 ],
1411 'catColor' => [
1412 'type' => 'string',
1413 'default' => '#037fff',
1414 'style' => [
1415 (object)[
1416 'depends' => [
1417 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1418 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1419 ],
1420 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1421 ],
1422 ],
1423 ],
1424 'catBgColor' => [
1425 'type' => 'object',
1426 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1427 'style' => [
1428 (object)[
1429 'depends' => [
1430 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1431 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1432 ],
1433 'selector'=>'{{ULTP}} .ultp-category-grid a'
1434 ],
1435 ],
1436 ],
1437 'catBorder' => [
1438 'type' => 'object',
1439 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1440 'style' => [
1441 (object)[
1442 'depends' => [
1443 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1444 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1445 ],
1446 'selector'=>'{{ULTP}} .ultp-category-grid a'
1447 ],
1448 ],
1449 ],
1450 'catRadius' => [
1451 'type' => 'object',
1452 'default' => (object)['lg' =>'', 'unit' =>'px'],
1453 'style' => [
1454 (object)[
1455 'depends' => [
1456 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1457 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1458 ],
1459 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1460 ],
1461 ],
1462 ],
1463 'catHoverColor' => [
1464 'type' => 'string',
1465 'default' => '#828282',
1466 'style' => [
1467 (object)[
1468 'depends' => [
1469 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1470 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1471 ],
1472 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1473 ],
1474 ],
1475 ],
1476 'catBgHoverColor' => [
1477 'type' => 'object',
1478 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => ''],
1479 'style' => [
1480 (object)[
1481 'depends' => [
1482 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1483 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1484 ],
1485 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1486 ],
1487 ],
1488 ],
1489 'catHoverBorder' => [
1490 'type' => 'object',
1491 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1492 'style' => [
1493 (object)[
1494 'depends' => [
1495 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1496 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1497 ],
1498 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1499 ],
1500 ],
1501 ],
1502 'catSacing' => [
1503 'type' => 'object',
1504 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1505 'style' => [
1506 (object)[
1507 'depends' => [
1508 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1509 ],
1510 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1511 ],
1512 ],
1513 ],
1514 'catPadding' => [
1515 'type' => 'object',
1516 'default' => (object)['lg' =>(object)['unit' =>'px']],
1517 'style' => [
1518 (object)[
1519 'depends' => [
1520 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1521 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1522 ],
1523 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1524 ],
1525 ],
1526 ],
1527
1528 //--------------------------
1529 // Meta Setting/Style
1530 //--------------------------
1531 'showSmallMeta' => [
1532 'type' => 'boolean',
1533 'default' => true,
1534 ],
1535 'metaPosition' => [
1536 'type' => 'string',
1537 'default' => 'top',
1538 ],
1539 'metaStyle' => [
1540 'type' => 'string',
1541 'default' => 'icon',
1542 ],
1543 'authorLink' => [
1544 'type' => 'boolean',
1545 'default' => true,
1546 ],
1547 'metaSeparator' => [
1548 'type' => 'string',
1549 'default' => 'dot',
1550 ],
1551 'metaList' => [
1552 'type' => 'string',
1553 'default' => '["metaAuthor","metaDate","metaRead"]',
1554 ],
1555 'metaMinText' => [
1556 'type' => 'string',
1557 'default' => 'min read',
1558 ],
1559 'metaAuthorPrefix' => [
1560 'type' => 'string',
1561 'default' => 'By',
1562 ],
1563 'metaDateFormat' => [
1564 'type' => 'string',
1565 'default' => 'M j, Y',
1566 ],
1567 'metaListSmall' => [
1568 'type' => 'string',
1569 'default' => '["metaAuthor","metaDate"]',
1570 ],
1571 'metaTypo' => [
1572 'type' => 'object',
1573 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1574 'style' => [
1575 (object)[
1576 'depends' => [
1577 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1578 ],
1579 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1580 ],
1581 ],
1582 ],
1583 'metaColor' => [
1584 'type' => 'string',
1585 'default' => '#989898',
1586 'style' => [
1587 (object)[
1588 'depends' => [
1589 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1590 ],
1591 '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}}; }'
1592 ],
1593 ],
1594 ],
1595 'metaHoverColor' => [
1596 'type' => 'string',
1597 'default' => '#000',
1598 'style' => [
1599 (object)[
1600 'depends' => [
1601 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1602 ],
1603 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover , {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover a { color: {{metaHoverColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover svg { fill: {{metaHoverColor}}; }'
1604 ],
1605 ],
1606 ],
1607 'metaSpacing' => [
1608 'type' => 'object',
1609 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1610 'style' => [
1611 (object)[
1612 'depends' => [
1613 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1614 ],
1615 '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}}; }'
1616 ],
1617 (object)[
1618 'depends' => [
1619 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1620 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1621 ],
1622 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}'
1623 ],
1624 ],
1625 ],
1626 'metaMargin' => [
1627 'type' => 'object',
1628 'default' => (object)['lg' =>(object)['top' => '','bottom' => '0', 'left'=>'','right'=>'', 'unit' =>'px']],
1629 'style' => [
1630 (object)[
1631 'depends' => [
1632 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1633 ],
1634 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1635 ],
1636 ],
1637 ],
1638 'metaPadding' => [
1639 'type' => 'object',
1640 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1641 'style' => [
1642 (object)[
1643 'depends' => [
1644 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1645 ],
1646 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1647 ],
1648 ],
1649 ],
1650 'metaBorder' => [
1651 'type' => 'object',
1652 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1653 'style' => [
1654 (object)[
1655 'depends' => [
1656 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1657 ],
1658 'selector'=>'{{ULTP}} .ultp-block-meta'
1659 ],
1660 ],
1661 ],
1662 'metaBg' => [
1663 'type' => 'string',
1664 'default' => '',
1665 'style' => [
1666 (object)[
1667 'depends' => [
1668 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1669 ],
1670 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1671 ],
1672 ],
1673 ],
1674
1675
1676 //--------------------------
1677 // Inner Content Setting/Style
1678 //--------------------------
1679 'contentAlign' => [
1680 'type' => 'string',
1681 'default' => "left",
1682 'style' => [
1683 (object)[
1684 'depends' => [
1685 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
1686 ],
1687 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
1688 ],
1689 (object)[
1690 'depends' => [
1691 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
1692 ],
1693 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
1694 ],
1695 (object)[
1696 'depends' => [
1697 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1698 ],
1699 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;}'
1700 ],
1701 (object)[
1702 'depends' => [
1703 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1704 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1705 ],
1706 'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}'
1707 ],
1708 ],
1709 ],
1710 'contentWrapBg' => [
1711 'type' => 'string',
1712 'default' => '',
1713 'style' => [
1714 (object)[
1715 'selector'=>'{{ULTP}} .ultp-block-content-wrap { background:{{contentWrapBg}}; }'
1716 ],
1717 ],
1718 ],
1719 'contentWrapHoverBg' => [
1720 'type' => 'string',
1721 'style' => [
1722 (object)[
1723 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { background:{{contentWrapHoverBg}}; }'
1724 ],
1725 ],
1726 ],
1727 'contentWrapBorder' => [
1728 'type' => 'object',
1729 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1730 'style' => [
1731 (object)[
1732 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1733 ],
1734 ],
1735 ],
1736 'contentWrapHoverBorder' => [
1737 'type' => 'object',
1738 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1739 'style' => [
1740 (object)[
1741 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1742 ],
1743 ],
1744 ],
1745 'contentWrapRadius' => [
1746 'type' => 'object',
1747 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1748 'style' => [
1749 (object)[
1750 'selector'=>'{{ULTP}} .ultp-block-content-wrap { border-radius: {{contentWrapRadius}}; }'
1751 ],
1752 ],
1753 ],
1754 'contentWrapHoverRadius' => [
1755 'type' => 'object',
1756 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1757 'style' => [
1758 (object)[
1759 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { border-radius: {{contentWrapHoverRadius}}; }'
1760 ],
1761 ],
1762 ],
1763 'contentWrapShadow' => [
1764 'type' => 'object',
1765 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1766 'style' => [
1767 (object)[
1768 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1769 ],
1770 ],
1771 ],
1772 'contentWrapHoverShadow' => [
1773 'type' => 'object',
1774 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1775 'style' => [
1776 (object)[
1777 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1778 ],
1779 ],
1780 ],
1781
1782 'contentWrapInnerPadding' => [
1783 'type' => 'object',
1784 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1785 'style' => [
1786 (object)[
1787 'selector'=>'{{ULTP}} .ultp-block-content { padding: {{contentWrapInnerPadding}}; }'
1788 ],
1789 ],
1790 ],
1791 'contentWrapPadding' => [
1792 'type' => 'object',
1793 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1794 'style' => [
1795 (object)[
1796 'selector'=>'{{ULTP}} .ultp-block-content-wrap { padding: {{contentWrapPadding}}; }'
1797 ],
1798 ],
1799 ],
1800
1801
1802 //--------------------------
1803 // Image Setting/Style
1804 //--------------------------
1805 'columnFlip' => [
1806 'type' => 'boolean',
1807 'default' => false,
1808 ],
1809 'imgCrop' => [
1810 'type' => 'string',
1811 'default' => 'full',
1812 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => true]]
1813 ],
1814 'imgCropSmall' => [
1815 'type' => 'string',
1816 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'),
1817 'style' => [
1818 (object)[
1819 'depends' => [
1820 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1821 (object)['key' => 'showImage','condition' => '==','value' => true]
1822 ],
1823 ],
1824 ],
1825 ],
1826 'imgWidth' => [
1827 'type' => 'object',
1828 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'ulg' =>'px', 'usm' =>'px'],
1829 'style' => [
1830 (object)[
1831 'depends' => [
1832 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1833 ],
1834 'depends' => [
1835 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1836 ],
1837 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }'
1838 ],
1839 ],
1840 ],
1841 'imgHeight' => [
1842 'type' => 'object',
1843 'default' => (object)['lg' =>'', 'unit' =>'px'],
1844 'style' => [
1845 (object)[
1846 'depends' => [
1847 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1848 ],
1849 'depends' => [
1850 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1851 ],
1852 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {height: {{imgHeight}}; }'
1853 ],
1854 ],
1855 ],
1856 'imageScale' => [
1857 'type' => 'string',
1858 'default' => 'cover',
1859 'style' => [
1860 (object)[
1861 'depends' => [
1862 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1863 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1864 ],
1865 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {object-fit: {{imageScale}};}'
1866 ],
1867 ],
1868 ],
1869 'imgAnimation' => [
1870 'type' => 'string',
1871 'default' => 'opacity',
1872 ],
1873 'imgGrayScale' => [
1874 'type' => 'object',
1875 'default' => (object)['lg' =>'0', 'ulg' =>'%', 'unit' =>'%'],
1876 'style' => [
1877 (object)[
1878 'depends' => [
1879 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1880 ],
1881 'selector'=>'{{ULTP}} .ultp-block-image { filter: grayscale({{imgGrayScale}}); }'
1882 ],
1883 ],
1884 ],
1885 'imgHoverGrayScale' => [
1886 'type' => 'object',
1887 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1888 'style' => [
1889 (object)[
1890 'depends' => [
1891 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1892 ],
1893 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { filter: grayscale({{imgHoverGrayScale}}); }'
1894 ],
1895 ],
1896 ],
1897 'imgRadius' => [
1898 'type' => 'object',
1899 'default' => (object)['lg' =>'', 'unit' =>'px'],
1900 'style' => [
1901 (object)[
1902 'depends' => [
1903 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1904 ],
1905 'selector'=>'{{ULTP}} .ultp-block-image img, {{ULTP}} .ultp-block-image.ultp-block-image-overlay >a:before, {{ULTP}} .ultp-block-image.ultp-block-image-overlay >a:after{ border-radius:{{imgRadius}}; }'
1906 ],
1907 ],
1908 ],
1909 'imgHoverRadius' => [
1910 'type' => 'object',
1911 'default' => (object)['lg' =>'', 'unit' =>'px'],
1912 'style' => [
1913 (object)[
1914 'depends' => [
1915 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1916 ],
1917 'selector'=>' {{ULTP}} .ultp-block-item:hover .ultp-block-image img, {{ULTP}} .ultp-block-item:hover .ultp-block-image.ultp-block-image-overlay >a:before, {{ULTP}} .ultp-block-item:hover .ultp-block-image.ultp-block-image-overlay >a:after
1918 { border-radius:{{imgHoverRadius}}; }'
1919 ],
1920 ],
1921 ],
1922 'imgShadow' => [
1923 'type' => 'object',
1924 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1925 'style' => [
1926 (object)[
1927 'depends' => [
1928 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1929 ],
1930 'selector'=>'{{ULTP}} .ultp-block-image'
1931 ],
1932 ],
1933 ],
1934 'imgHoverShadow' => [
1935 'type' => 'object',
1936 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1937 'style' => [
1938 (object)[
1939 'depends' => [
1940 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1941 ],
1942 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1943 ],
1944 ],
1945 ],
1946 'imgSpacing' => [
1947 'type' => 'object',
1948 'default' => (object)['lg'=>'20'],
1949 'style' => [
1950 (object)[
1951 'depends' => [
1952 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1953 (object)['key'=>'layout','condition'=>'!=','value'=>'layout2'],
1954 (object)['key'=>'layout','condition'=>'!=','value'=>'layout1'],
1955 ],
1956 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-right: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-right: 0; margin-left: {{imgSpacing}}px; }'
1957 ],
1958 (object)[
1959 'depends' => [
1960 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1961 (object)['key'=>'layout','condition'=>'==','value'=>'layout2'],
1962 ],
1963 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-left: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-left: 0; margin-right: {{imgSpacing}}px; }'
1964 ],
1965 ],
1966 ],
1967 'imgOverlay' => [
1968 'type' => 'boolean',
1969 'default' => false,
1970 ],
1971 'imgOverlayType' => [
1972 'type' => 'string',
1973 'default' => 'default',
1974 'style' => [
1975 (object)[
1976 'depends' => [
1977 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1978 ]
1979 ],
1980 ]
1981 ],
1982 'overlayColor' => [
1983 'type' => 'object',
1984 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1985 'style' => [
1986 (object)[
1987 'depends' => [
1988 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1989 ],
1990 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1991 ],
1992 ],
1993
1994 ],
1995 'imgOpacity' => [
1996 'type' => 'string',
1997 'default' => .7,
1998 'style' => [
1999 (object)[
2000 'depends' => [
2001 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
2002 ],
2003 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
2004 ],
2005 ],
2006 ],
2007 'fallbackEnable' => [
2008 'type' => 'boolean',
2009 'default' => true,
2010 'style' => [
2011 (object)[
2012 'depends' => [
2013 (object)['key'=>'showImage','condition'=>'==','value'=> true],
2014 ],
2015 ],
2016 ],
2017 ],
2018 'fallbackImg' => [
2019 'type' => 'object',
2020 'default' => '',
2021 'style' => [
2022 (object)[
2023 'depends' => [
2024 (object)['key'=>'showImage','condition'=>'==','value'=> true],
2025 (object)['key'=>'fallbackEnable','condition'=>'==','value'=> true],
2026 ],
2027 ],
2028 ],
2029 ],
2030 'imgSrcset' => [
2031 'type' => 'boolean',
2032 'default' => false,
2033 ],
2034 'imgLazy' => [
2035 'type' => 'boolean',
2036 'default' => false,
2037 ],
2038
2039 //--------------------------
2040 // Video Setting/Style
2041 //--------------------------
2042 'vidIconEnable' => [
2043 'type' => 'boolean',
2044 'default' => true,
2045 ],
2046 'popupAutoPlay' => [
2047 'type' => 'boolean',
2048 'default' => true,
2049 'style' => [
2050 (object)[
2051 'depends' => [
2052 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2053 ],
2054 ],
2055 ],
2056 ],
2057 'vidIconPosition' => [
2058 'type' => 'string',
2059 'default' => 'center',
2060 'style' => [
2061 (object)[
2062 'depends' => [
2063 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2064 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomRight']
2065 ],
2066 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; right: 20px; }'
2067 ],
2068 (object)[
2069 'depends' => [
2070 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2071 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'center']
2072 ],
2073 'selector'=>'{{ULTP}} .ultp-video-icon {
2074 margin: 0 auto;
2075 position: absolute;
2076 top: 50%;
2077 left: 50%;
2078 transform: translate(-50%,-60%);
2079 -o-transform: translate(-50%,-60%);
2080 -ms-transform: translate(-50%,-60%);
2081 -moz-transform: translate(-50%,-60%);
2082 -webkit-transform: translate(-50%,-50%);
2083 z-index: 998;}'
2084 ],
2085 (object)[
2086 'depends' => [
2087 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2088 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomLeft']
2089 ],
2090 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; left: 20px; }'
2091 ],
2092 (object)[
2093 'depends' => [
2094 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2095 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topRight']
2096 ],
2097 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; right: 20px; }'
2098 ],
2099 (object)[
2100 'depends' => [
2101 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2102 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topLeft']
2103 ],
2104 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; left: 20px; }'
2105 ],
2106 (object)[
2107 'depends' => [
2108 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2109 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'rightMiddle']
2110 ],
2111 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-end; align-items: center; height: 100%; width: 100%; top:0px;}'
2112 ],
2113 (object)[
2114 'depends' => [
2115 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2116 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'leftMiddle']
2117 ],
2118 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-start; align-items: center; height: 100%; width: 100%; top: 0px;}'
2119 ]
2120 ],
2121 ],
2122 'popupIconColor' => [
2123 'type' => 'string',
2124 'default' => '#fff',
2125 'style' => [
2126 (object) [
2127 'depends' => [
2128 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2129 ],
2130 'selector'=>'{{ULTP}} .ultp-video-icon svg { fill: {{popupIconColor}}; } {{ULTP}} .ultp-video-icon svg circle { stroke: {{popupIconColor}}; }'
2131 ]
2132 ],
2133 ],
2134 'popupHovColor' => [
2135 'type' => 'string',
2136 'default' => '#d2d2d2',
2137 'style' => [
2138 (object)[
2139 'depends' => [
2140 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2141 ],
2142 'selector'=>'{{ULTP}} .ultp-video-icon svg:hover { fill: {{popupHovColor}}; } {{ULTP}} .ultp-video-icon svg:hover circle { stroke: {{popupHovColor}};}'
2143 ]
2144 ],
2145 ],
2146 'iconSize' => [
2147 'type' => 'object',
2148 'default' => (object)['lg'=>'40', 'sm'=> '30', 'xs'=> '30', 'unit' => 'px'],
2149 'style' => [
2150 (object)[
2151 'depends' => [
2152 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2153 ],
2154 'selector'=>'{{ULTP}} .ultp-video-icon svg { height:{{iconSize}}; width: {{iconSize}};}'
2155 ],
2156 ],
2157 ],
2158 // by default should be off
2159 'enablePopup' => [
2160 'type' => 'boolean',
2161 'default' => false,
2162 'style' => [
2163 (object)[
2164 'depends' => [
2165 (object)['key' => 'vidIconEnable','condition' => '==','value' => true]
2166 ],
2167 ],
2168 ],
2169 ],
2170 'popupWidth' => [
2171 'type' => 'object',
2172 'default' => (object)['lg'=>'70'],
2173 'style' => [
2174 (object)[
2175 'depends' => [
2176 (object)['key' => 'enablePopup','condition' => '==','value' => true]
2177 ],
2178 'selector'=>'{{ULTP}} .ultp-video-modal .ultp-video-modal__Wrapper {width:{{popupWidth}}% !important;}'
2179 ],
2180 ],
2181 ],
2182 'enablePopupTitle' => [
2183 'type' => 'boolean',
2184 'default' => true,
2185 'style' => [
2186 (object)[
2187 'depends' => [
2188 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2189 ],
2190 ]
2191 ],
2192 ],
2193 'popupTitleColor' => [
2194 'type' => 'string',
2195 'default' => '#fff',
2196 'style' => [
2197 (object)[
2198 'depends' => [
2199 (object)['key' => 'enablePopupTitle','condition' => '==','value' => true],
2200 (object)['key' => 'enablePopup','condition' => '==','value' => true]
2201 ],
2202 'selector'=>'{{ULTP}} .ultp-video-modal__Wrapper a { color:{{popupTitleColor}} !important; }'
2203 ]
2204 ],
2205 ],
2206 'closeIconSep' => [
2207 'type' => 'string',
2208 'default' => '#fff',
2209 'style' => [
2210 (object)[
2211 'depends' => [
2212 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2213 ],
2214 ]
2215 ],
2216 ],
2217 'closeIconColor' => [
2218 'type' => 'string',
2219 'default' => '#fff',
2220 'style' => [
2221 (object)[
2222 'depends' => [
2223 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2224 ],
2225 'selector'=>'{{ULTP}} .ultp-video-close { color:{{closeIconColor}}; }'
2226 ]
2227 ],
2228 ],
2229 'closeHovColor' => [
2230 'type' => 'string',
2231 'default' => '#8f8f8f',
2232 'style' => [
2233 (object)[
2234 'depends' => [
2235 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2236 ],
2237 'selector'=>'{{ULTP}} .ultp-video-close:hover { color:{{closeHovColor}}; }'
2238 ]
2239 ],
2240 ],
2241 'closeSize' => [
2242 'type' => 'object',
2243 'default' => (object)['lg'=>'70', 'unit' => 'px'],
2244 'style' => [
2245 (object)[
2246 'depends' => [
2247 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2248 ],
2249 'selector'=>'{{ULTP}} .ultp-video-close { font-size:{{closeSize}}; }'
2250 ],
2251 ],
2252 ],
2253
2254
2255 //--------------------------
2256 // Separator
2257 //--------------------------
2258 'separatorShow' => [
2259 'type' => 'boolean',
2260 'default' => false,
2261 ],
2262 'septColor' => [
2263 'type' => 'string',
2264 'default' => '#e5e5e5',
2265 'style' => [
2266 (object)[
2267 'depends' => [
2268 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2269 ],
2270 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-color:{{septColor}}; }'
2271 ],
2272 ],
2273 ],
2274 'septStyle' => [
2275 'type' => 'string',
2276 'default' => 'dashed',
2277 'style' => [
2278 (object)[
2279 'depends' => [
2280 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2281 ],
2282 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-style:{{septStyle}}; }'
2283 ],
2284 ],
2285 ],
2286 'septSize' => [
2287 'type' => 'string',
2288 'default' => (object)['lg'=>'1'],
2289 'style' => [
2290 (object)[
2291 'depends' => [
2292 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2293 ],
2294 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-width: {{septSize}}px; }'
2295 ],
2296 ],
2297 ],
2298 'septSpace' => [
2299 'type' => 'object',
2300 'default' => (object)['lg'=>'15'],
2301 'style' => [
2302 (object)[
2303 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { padding-bottom: {{septSpace}}px; } {{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { margin-bottom: {{septSpace}}px; }'
2304 ],
2305 ],
2306 ],
2307
2308 //--------------------------
2309 // Read more Setting/Style
2310 //--------------------------
2311 'showSmallBtn' => [
2312 'type' => 'boolean',
2313 'default' => false,
2314 ],
2315 'readMoreText' => [
2316 'type' => 'string',
2317 'default' => ''
2318 ],
2319 'readMoreIcon' => [
2320 'type' => 'string',
2321 'default' => 'rightArrowLg',
2322 ],
2323 'readMoreTypo' => [
2324 'type' => 'object',
2325 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ],
2326 'style' => [
2327 (object)[
2328 'depends' => [
2329 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2330 ],
2331 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
2332 ],
2333 ],
2334 ],
2335 'readMoreIconSize' => [
2336 'type' => 'object',
2337 'default' => (object)['lg' =>'', 'unit' =>'px'],
2338 'style' => [
2339 (object)[
2340 'depends' => [
2341 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2342 ],
2343 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
2344 ],
2345 ]
2346 ],
2347 'readMoreColor' => [
2348 'type' => 'string',
2349 'default' => '#0d1523',
2350 'style' => [
2351 (object)[
2352 'depends' => [
2353 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2354 ],
2355 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
2356 ],
2357 ],
2358 ],
2359 'readMoreBgColor' => [
2360 'type' => 'object',
2361 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''],
2362 'style' => [
2363 (object)[
2364 'depends' => [
2365 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2366 ],
2367 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2368 ],
2369 ],
2370 ],
2371 'readMoreBorder' => [
2372 'type' => 'object',
2373 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2374 'style' => [
2375 (object)[
2376 'depends' => [
2377 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2378 ],
2379 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2380 ],
2381 ],
2382 ],
2383 'readMoreRadius' => [
2384 'type' => 'object',
2385 'default' => (object)['lg' =>'', 'unit' =>'px'],
2386 'style' => [
2387 (object)[
2388 'depends' => [
2389 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2390 ],
2391 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
2392 ],
2393 ],
2394 ],
2395 'readMoreHoverColor' => [
2396 'type' => 'string',
2397 'default' => '#0c32d8',
2398 'style' => [
2399 (object)[
2400 'depends' => [
2401 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2402 ],
2403 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
2404 ],
2405 ],
2406 ],
2407 'readMoreBgHoverColor' => [
2408 'type' => 'object',
2409 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''],
2410 'style' => [
2411 (object)[
2412 'depends' => [
2413 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2414 ],
2415 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2416 ],
2417 ],
2418 ],
2419 'readMoreHoverBorder' => [
2420 'type' => 'object',
2421 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2422 'style' => [
2423 (object)[
2424 'depends' => [
2425 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2426 ],
2427 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2428 ],
2429 ],
2430 ],
2431 'readMoreHoverRadius' => [
2432 'type' => 'object',
2433 'default' => (object)['lg' =>'', 'unit' =>'px'],
2434 'style' => [
2435 (object)[
2436 'depends' => [
2437 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2438 ],
2439 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
2440 ],
2441 ],
2442 ],
2443 'readMoreSacing' => [
2444 'type' => 'object',
2445 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2446 'style' => [
2447 (object)[
2448 'depends' => [
2449 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2450 ],
2451 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
2452 ],
2453 ],
2454 ],
2455 'readMorePadding' => [
2456 'type' => 'object',
2457 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2458 'style' => [
2459 (object)[
2460 'depends' => [
2461 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2462 ],
2463 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
2464 ],
2465 ],
2466 ],
2467
2468 //--------------------------
2469 // Filter Setting/Style
2470 //--------------------------
2471 'filterBelowTitle' => [
2472 'type' => 'boolean',
2473 'default' => false,
2474 'style' => [
2475 (object)[
2476 'depends' => [
2477 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2478 ],
2479 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { position: relative; display: block; margin: auto 0 0 0; height: auto;}'
2480 ],
2481 ],
2482 ],
2483 'filterAlign' => [
2484 'type' => 'object',
2485 'default' => (object)['lg' =>''],
2486 'style' => [
2487 (object)[
2488 'depends' => [
2489 (object)['key'=>'filterBelowTitle','condition'=>'==','value'=>true],
2490 ],
2491 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { text-align:{{filterAlign}}; }'
2492 ],
2493 ],
2494 ],
2495 'filterType' => [
2496 'type' => 'string',
2497 'default' => 'category'
2498 ],
2499 'filterText' => [
2500 'type' => 'string',
2501 'default' => 'all'
2502 ],
2503 'filterValue' => [
2504 'type' => 'string',
2505 'default' => '[]',
2506 'style' => [
2507 (object)[
2508 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
2509 ],
2510 ],
2511 ],
2512 'fliterTypo' => [
2513 'type' => 'object',
2514 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>22, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
2515 'style' => [
2516 (object)[
2517 'depends' => [
2518 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2519 ],
2520 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a'
2521 ],
2522 ],
2523 ],
2524 'filterColor' => [
2525 'type' => 'string',
2526 'default' => '#0e1523',
2527 'style' => [
2528 (object)[
2529 'depends' => [
2530 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2531 ],
2532 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; }{{ULTP}} .flexMenu-viewMore a:before { border-color:{{filterColor}}}'
2533 ],
2534 ],
2535 ],
2536 'filterHoverColor' => [
2537 'type' => 'string',
2538 'default' => '#828282',
2539 'style' => [
2540 (object)[
2541 'depends' => [
2542 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2543 ],
2544 '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}} !important; } {{ULTP}} .ultp-flex-menu .flexMenu-viewMore a:hover::before { border-color:{{filterHoverColor}}}'
2545 ],
2546 ],
2547 ],
2548 'filterBgColor' => [
2549 'type' => 'string',
2550 'style' => [
2551 (object)[
2552 'depends' => [
2553 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2554 ],
2555 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
2556 ],
2557 ],
2558 ],
2559 'filterHoverBgColor' => [
2560 'type' => 'string',
2561 'style' => [
2562 (object)[
2563 'depends' => [
2564 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2565 ],
2566 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active, {{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore > a:hover { background:{{filterHoverBgColor}}; }'
2567 ],
2568 ],
2569 ],
2570 'filterBorder' => [
2571 'type' => 'object',
2572 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2573 'style' => [
2574 (object)[
2575 'depends' => [
2576 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2577 ],
2578 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a'
2579 ],
2580 ],
2581 ],
2582 'filterHoverBorder' => [
2583 'type' => 'object',
2584 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2585 'style' => [
2586 (object)[
2587 'depends' => [
2588 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2589 ],
2590 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover'
2591 ],
2592 ],
2593 ],
2594 'filterRadius' => [
2595 'type' => 'object',
2596 'default' => (object)['lg' =>'', 'unit' =>'px'],
2597 'style' => [
2598 (object)[
2599 'depends' => [
2600 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2601 ],
2602 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }'
2603 ],
2604 ],
2605 ],
2606 'fliterSpacing' => [
2607 'type' => 'object',
2608 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
2609 'style' => [
2610 (object)[
2611 'depends' => [
2612 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2613 ],
2614 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
2615 ],
2616 ],
2617 ],
2618 'fliterPadding' => [
2619 'type' => 'object',
2620 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2621 'style' => [
2622 (object)[
2623 'depends' => [
2624 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2625 ],
2626 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a, {{ULTP}} .ultp-filter-wrap .flexMenu-viewMore > a { padding:{{fliterPadding}}; }'
2627 ],
2628 ],
2629 ],
2630 'filterDropdownColor' => [
2631 'type' => 'string',
2632 'default' => '#0e1523',
2633 'style' => [
2634 (object)[
2635 'depends' => [
2636 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2637 ],
2638 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
2639 ],
2640 ],
2641 ],
2642 'filterDropdownHoverColor' => [
2643 'type' => 'string',
2644 'default' => '#037fff',
2645 'style' => [
2646 (object)[
2647 'depends' => [
2648 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2649 ],
2650 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }'
2651 ],
2652 ],
2653 ],
2654 'filterDropdownBg' => [
2655 'type' => 'string',
2656 'default' => '#fff',
2657 'style' => [
2658 (object)[
2659 'depends' => [
2660 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2661 ],
2662 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }'
2663 ],
2664 ],
2665 ],
2666 'filterDropdownRadius' => [
2667 'type' => 'object',
2668 'default' => (object)['lg'=>'0'],
2669 'style' => [
2670 (object)[
2671 'depends' => [
2672 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2673 ],
2674 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }'
2675 ],
2676 ],
2677 ],
2678 'filterDropdownPadding' => [
2679 'type' => 'object',
2680 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
2681 'style' => [
2682 (object)[
2683 'depends' => [
2684 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2685 ],
2686 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }'
2687 ],
2688 ],
2689 ],
2690 'filterMobile' => [
2691 'type' => 'boolean',
2692 'default' => true,
2693 ],
2694 'filterMobileText' => [
2695 'type' => 'string',
2696 'default' => 'More',
2697 'style' => [
2698 (object)[
2699 'depends' => [
2700 (object)['key'=>'filterMobile','condition'=>'==','value'=>true],
2701 ]
2702 ]
2703 ]
2704 ],
2705
2706 //--------------------------
2707 // Pagination Setting/Style
2708 //--------------------------
2709 'paginationType' => [
2710 'type' => 'string',
2711 'default' => 'navigation',
2712 ],
2713 'paginationNav' => [
2714 'type' => 'string',
2715 'default' => 'textArrow',
2716 'style' => [
2717 (object)[
2718 'depends' => [
2719 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
2720 ],
2721 ],
2722 ],
2723 ],
2724 'navPosition' => [
2725 'type' => 'string',
2726 'default' => 'topRight',
2727 'style' => [
2728 (object)[
2729 'depends' => [
2730 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2731 ],
2732 ],
2733 ],
2734 ],
2735 'pagiAlign' => [
2736 'type' => 'object',
2737 'default' => (object)['lg' =>'left'],
2738 'style' => [
2739 (object)[
2740 'depends' => [
2741 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2742 ],
2743 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
2744 ],
2745 ],
2746 ],
2747 'pagiTypo' => [
2748 'type' => 'object',
2749 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2750 'style' => [
2751 (object)[
2752 'depends' => [
2753 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2754 ],
2755 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-loadmore-action'
2756 ],
2757 ],
2758
2759 ],
2760 'pagiArrowSize' => [
2761 'type' => 'object',
2762 'default' => (object)['lg'=>'14'],
2763 'style' => [
2764 (object)[
2765 'depends' => [
2766 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2767 ],
2768 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }'
2769 ],
2770 ],
2771
2772 ],
2773 'pagiColor' => [
2774 'type' => 'string',
2775 'default' => '#fff',
2776 'style' => [
2777 (object)[
2778 'depends' => [
2779 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2780 ],
2781 'selector'=>'{{ULTP}} .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 { fill:{{pagiColor}}; }'
2782 ],
2783 ],
2784 ],
2785 'pagiBgColor' => [
2786 'type' => 'object',
2787 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
2788 'style' => [
2789 (object)[
2790 'depends' => [
2791 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2792 ],
2793 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
2794 ],
2795 ],
2796 ],
2797 'pagiBorder' => [
2798 'type' => 'object',
2799 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2800 'style' => [
2801 (object)[
2802 'depends' => [
2803 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2804 ],
2805 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2806 ],
2807 ],
2808 ],
2809 'pagiShadow' => [
2810 'type' => 'object',
2811 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2812 'style' => [
2813 (object)[
2814 'depends' => [
2815 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2816 ],
2817 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2818 ],
2819 ],
2820 ],
2821 'pagiRadius' => [
2822 'type' => 'object',
2823 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2824 'style' => [
2825 (object)[
2826 'depends' => [
2827 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2828 ],
2829 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }'
2830 ],
2831 ],
2832 ],
2833 'pagiHoverColor' => [
2834 'type' => 'string',
2835 'default' => '#fff',
2836 'style' => [
2837 (object)[
2838 'depends' => [
2839 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2840 ],
2841 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-block-wrapper .ultp-loadmore .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 { fill:{{pagiHoverColor}}; } @media (min-width: 768px) { {{ULTP}} .ultp-pagination li a:hover { color:{{pagiHoverColor}};}}'
2842 ],
2843 ],
2844 ],
2845 'pagiHoverbg' => [
2846 'type' => 'object',
2847 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1],
2848 'style' => [
2849 (object)[
2850 'depends' => [
2851 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2852 ],
2853 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .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}} }'
2854 ],
2855 ],
2856 ],
2857 'pagiHoverBorder' => [
2858 'type' => 'object',
2859 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2860 'style' => [
2861 (object)[
2862 'depends' => [
2863 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2864 ],
2865 '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'
2866 ],
2867 ],
2868 ],
2869 'pagiHoverShadow' => [
2870 'type' => 'object',
2871 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2872 'style' => [
2873 (object)[
2874 'depends' => [
2875 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2876 ],
2877 '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'
2878 ],
2879 ],
2880 ],
2881 'pagiHoverRadius' => [
2882 'type' => 'object',
2883 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2884 'style' => [
2885 (object)[
2886 'depends' => [
2887 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2888 ],
2889 '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}}; }'
2890 ],
2891 ],
2892 ],
2893 'pagiPadding' => [
2894 'type' => 'object',
2895 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
2896 'style' => [
2897 (object)[
2898 'depends' => [
2899 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2900 ],
2901 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
2902 ],
2903 ],
2904 ],
2905 'navMargin' => [
2906 'type' => 'object',
2907 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
2908 'style' => [
2909 (object)[
2910 'depends' => [
2911 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2912 ],
2913 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
2914 ],
2915 ],
2916 ],
2917
2918 //--------------------------
2919 // Wrapper Style
2920 //--------------------------
2921 'loadingColor' => [
2922 'type' => 'string',
2923 'default' => '#000',
2924 'style' => [
2925 (object)[
2926 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }'
2927 ],
2928 ],
2929 ],
2930 'wrapBg' => [
2931 'type' => 'object',
2932 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2933 'style' => [
2934 (object)[
2935 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2936 ],
2937 ],
2938 ],
2939 'wrapBorder' => [
2940 'type' => 'object',
2941 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2942 'style' => [
2943 (object)[
2944 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2945 ],
2946 ],
2947 ],
2948 'wrapShadow' => [
2949 'type' => 'object',
2950 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2951 'style' => [
2952 (object)[
2953 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2954 ],
2955 ],
2956 ],
2957 'wrapRadius' => [
2958 'type' => 'object',
2959 'default' => (object)['lg' =>'', 'unit' =>'px'],
2960 'style' => [
2961 (object)[
2962 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2963 ],
2964 ],
2965 ],
2966 'wrapHoverBackground' => [
2967 'type' => 'object',
2968 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2969 'style' => [
2970 (object)[
2971 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2972 ],
2973 ],
2974 ],
2975 'wrapHoverBorder' => [
2976 'type' => 'object',
2977 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2978 'style' => [
2979 (object)[
2980 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2981 ],
2982 ],
2983 ],
2984 'wrapHoverRadius' => [
2985 'type' => 'object',
2986 'default' => (object)['lg' =>'', 'unit' =>'px'],
2987 'style' => [
2988 (object)[
2989 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2990 ],
2991 ],
2992 ],
2993 'wrapHoverShadow' => [
2994 'type' => 'object',
2995 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2996 'style' => [
2997 (object)[
2998 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2999 ],
3000 ],
3001 ],
3002 'wrapMargin' => [
3003 'type' => 'object',
3004 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
3005 'style' => [
3006 (object)[
3007 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
3008 ],
3009 ],
3010 ],
3011 'wrapOuterPadding' => [
3012 'type' => 'object',
3013 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
3014 'style' => [
3015 (object)[
3016 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
3017 ],
3018 ],
3019 ],
3020 'wrapInnerPadding' => [
3021 'type' => 'object',
3022 'default' => (object)['lg' =>(object)['unit' =>'px']],
3023 'style' => [
3024 (object)[
3025 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
3026 ],
3027 ],
3028 ],
3029 'advanceId' => [
3030 'type' => 'string',
3031 'default' => '',
3032 ],
3033 'advanceZindex' => [
3034 'type' => 'string',
3035 'default' => '',
3036 'style' => [
3037 (object)[
3038 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}'
3039 ],
3040 ],
3041 ],
3042 'hideExtraLarge' => [
3043 'type' => 'boolean',
3044 'default' => false,
3045 'style' => [
3046 (object)[
3047 'selector' => '{{ULTP}} {display:none;}'
3048 ],
3049 ],
3050 ],
3051 'hideTablet' => [
3052 'type' => 'boolean',
3053 'default' => false,
3054 'style' => [
3055 (object)[
3056 'selector' => '{{ULTP}} {display:none;}'
3057 ],
3058 ],
3059 ],
3060 'hideMobile' => [
3061 'type' => 'boolean',
3062 'default' => false,
3063 'style' => [
3064 (object)[
3065 'selector' => '{{ULTP}} {display:none;}'
3066 ],
3067 ],
3068 ],
3069 'advanceCss' => [
3070 'type' => 'string',
3071 'default' => '',
3072 'style' => [(object)['selector' => '']],
3073 ]
3074 );
3075
3076 if ($default) {
3077 $temp = array();
3078 foreach ($attributes as $key => $value) {
3079 if (isset($value['default'])) {
3080 $temp[$key] = $value['default'];
3081 }
3082 }
3083 return $temp;
3084 } else {
3085 return $attributes;
3086 }
3087 }
3088
3089 public function register() {
3090 register_block_type( 'ultimate-post/post-module-1',
3091 array(
3092 'editor_script' => 'ultp-blocks-editor-script',
3093 'editor_style' => 'ultp-blocks-editor-css',
3094 'attributes' => $this->get_attributes(),
3095 'render_callback' => array($this, 'content')
3096 )
3097 );
3098 }
3099
3100 public function content($attr, $noAjax) {
3101 global $unique_ID;
3102 if (!$noAjax) {
3103 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
3104 $attr['paged'] = $paged ? $paged : 1;
3105 }
3106 if($attr['queryUnique'] && isset($attr['savedQueryUnique'])) {
3107 $unique_ID = $attr['savedQueryUnique'];
3108 }
3109
3110 $bigloop = '';
3111 $block_name = 'post-module-1';
3112 $page_post_id = ultimate_post()->get_ID();
3113 $wraper_before = $wraper_after = $post_loop = '';
3114 $attr['queryNumber'] = ultimate_post()->get_post_number(5, $attr['queryNumber'], $attr['queryNumPosts']);
3115 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
3116 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
3117 // Dummy Img Url
3118 $dummy_url = ULTP_URL.'assets/img/ultp-fallback-img.png';
3119
3120 // Loadmore and Unique content
3121 if($attr['queryUnique'] && isset($attr['loadMoreQueryUnique']) && $attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
3122 $unique_ID = $attr['loadMoreQueryUnique'];
3123 $current_unique_posts = $attr['ultp_current_unique_posts'];
3124 }
3125
3126 if ($recent_posts->have_posts()) {
3127
3128 $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"]:'').'">';
3129 $wraper_before .= '<div class="ultp-block-wrapper">';
3130
3131 // Loading
3132 $wraper_before .= ultimate_post()->loading();
3133
3134 if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
3135 $wraper_before .= '<div class="ultp-heading-filter">';
3136 $wraper_before .= '<div class="ultp-heading-filter-in">';
3137
3138 // Heading
3139 include ULTP_PATH.'blocks/template/heading.php';
3140
3141 if ($attr['filterShow'] || $attr['paginationShow']) {
3142 $wraper_before .= '<div class="ultp-filter-navigation">';
3143 // Filter
3144 if($attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts') {
3145 include ULTP_PATH.'blocks/template/filter.php';
3146 }
3147 // Navigation
3148 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
3149 include ULTP_PATH.'blocks/template/navigation-before.php';
3150 }
3151 $wraper_before .= '</div>';
3152 }
3153
3154 $wraper_before .= '</div>';
3155 $wraper_before .= '</div>';
3156 }
3157
3158 $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-post-module1 ultp-block-content-'.$attr['varticalAlign'].' ultp-block-content-'.($attr['columnFlip'] ? 'true' : 'false').' ultp-'.$attr['layout'].'">';
3159 $idx = 0; // $idx = $noAjax ? 1 : 0;
3160 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
3161
3162 include ULTP_PATH.'blocks/template/data.php';
3163
3164 include ULTP_PATH.'blocks/template/category.php';
3165
3166 if ($attr['queryUnique']) {
3167 $unique_ID[$attr['queryUnique']][] = $post_id;
3168 $current_unique_posts[] = $post_id;
3169 }
3170
3171 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">';
3172
3173 $post_loop .= '<div class="ultp-block-content-wrap">';
3174 if(($post_thumb_id || $attr['fallbackEnable']) && $attr['showImage'] && ($idx == 0 || $attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5')) {
3175 $post_loop .= '<div class="ultp-block-image ultp-block-image-'.$attr['imgAnimation'].($attr["imgOverlay"] ? ' ultp-block-image-overlay ultp-block-image-'.$attr["imgOverlayType"].' ultp-block-image-'.$attr["imgOverlayType"].$idx : '' ).'">';
3176 if ($idx == 0) {
3177 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>';
3178 // Post Image Id
3179 $block_img_id = $post_thumb_id ? $post_thumb_id : ($attr['fallbackEnable'] && isset($attr['fallbackImg']['id']) ? $attr['fallbackImg']['id'] : '');
3180 // Post Image
3181 if($post_thumb_id || ($attr['fallbackEnable'] && $block_img_id)) {
3182 $post_loop .= ultimate_post()->get_image($block_img_id, $attr['imgCrop'], '', $title, $attr['imgSrcset'], $attr['imgLazy']);
3183 } else {
3184 $post_loop .= '<img src="'.$dummy_url.'" alt="dummy-img" />';
3185 }
3186 $post_loop .= '</a>';
3187 if($post_video){
3188 $post_loop .= '<div enableAutoPlay="'.$attr['popupAutoPlay'].'" class="ultp-video-icon">'.ultimate_post()->svg_icon('videoplay').'</div>';
3189 }
3190 } else {
3191 if ($attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5') {
3192 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>';
3193 // Post Image Id
3194 $block_img_id = $post_thumb_id ? $post_thumb_id : ($attr['fallbackEnable'] && isset($attr['fallbackImg']['id']) ? $attr['fallbackImg']['id'] : '');
3195 // Post Image
3196 if($post_thumb_id || ($attr['fallbackEnable'] && $block_img_id)) {
3197 $post_loop .= ultimate_post()->get_image($block_img_id, $attr['imgCropSmall'], '', $title, $attr['imgSrcset'], $attr['imgLazy']);
3198 } else {
3199 $post_loop .= '<img src="'.$dummy_url.'" alt="dummy-img" />';
3200 }
3201 $post_loop .= '</a>';
3202 if($post_video){
3203 $post_loop .= '<div enableAutoPlay="'.$attr['popupAutoPlay'].'" class="ultp-video-icon">'.ultimate_post()->svg_icon('videoplay').'</div>';
3204 }
3205 }
3206 }
3207 if (($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) {
3208 $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
3209 }
3210 $post_loop .= '</div>';
3211 }
3212 $post_loop .= '<div class="ultp-block-content">';
3213 // Category
3214 if (($attr['catPosition'] == 'aboveTitle') && ($idx == 0 || $attr['showSmallCat'] ) && $attr['catShow']) {
3215 $post_loop .= $category;
3216 }
3217 // Title
3218 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) {
3219 include ULTP_PATH.'blocks/template/title.php';
3220 }
3221 // Meta
3222 if ($attr['metaPosition'] =='top' ) {
3223 include ULTP_PATH.'blocks/template/meta.php';
3224 }
3225 // Title
3226 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) {
3227 include ULTP_PATH.'blocks/template/title.php';
3228 }
3229 // Excerpt
3230 if (($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) {
3231 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>';
3232 }
3233
3234 // Read More
3235 if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) {
3236 $post_loop .= '<div class="ultp-block-readmore"><a aria-label="'.$title.'" href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.($attr['readMoreText'] ? $attr['readMoreText'] : esc_html__( "Read More", "ultimate-post" )).ultimate_post()->svg_icon($attr['readMoreIcon']).'</a></div>';
3237 }
3238 // Bottom
3239 if ($attr['metaPosition'] =='bottom' ) {
3240 include ULTP_PATH.'blocks/template/meta.php';
3241 }
3242 $post_loop .= '</div>';
3243 $post_loop .= '</div>';
3244 if($post_video && $attr['enablePopup'] && ($attr['layout'] != 'layout1' && $attr['layout'] != 'layout4' || $idx == 0)) {
3245 include ULTP_PATH.'blocks/template/video_popup.php';
3246 }
3247 $post_loop .= '</'.$attr['contentTag'].'>';
3248
3249 if ($idx == 0) {
3250 $bigloop = $post_loop;
3251 $post_loop = '';
3252 }
3253
3254 $idx ++;
3255 endwhile;
3256 if($attr['queryUnique']) {
3257 $post_loop .= "<span style='display: none;' class='ultp-current-unique-posts' data-ultp-unique-ids= ".json_encode($unique_ID)." data-current-unique-posts= ".json_encode($current_unique_posts)."> </span>";
3258 }
3259 $bigloop = '<div class="ultp-big-post-module1">'.$bigloop.'</div>';
3260 $post_loop = $bigloop.'<div class="ultp-small-post-module1">'.$post_loop.'</div>';
3261
3262 $wraper_after .= '</div>';//ultp-block-items-wrap
3263
3264 // Navigation
3265 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] != 'topRight')) {
3266 include ULTP_PATH.'blocks/template/navigation-after.php';
3267 }
3268
3269 $wraper_after .= '</div>';
3270 $wraper_after .= '</div>';
3271
3272 wp_reset_query();
3273 }else {
3274 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
3275 }
3276
3277 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
3278 }
3279
3280 }