PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.9.7
Post Grid Gutenberg Blocks – PostX v2.9.7
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_2.php

Post_Module_2.php in Post Grid Gutenberg Blocks – PostX 2.9.7, at blocks/Post_Module_2.php

3,293 lines 156.8 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_2{
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')]
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-module2 { margin: 0 -{{columnGridGap}};} {{ULTP}} .ultp-block-post-module2 .ultp-big-post-module2, {{ULTP}} .ultp-block-post-module2 .ultp-small-post-module2 { padding: 0 {{columnGridGap}};} {{ULTP}} .ultp-block-row {grid-column-gap: {{columnGridGap}}; }'
464 ],
465 ],
466 ],
467 'largeHeight' => [
468 'type' => 'object',
469 'default' => (object)['lg' =>'450', 'unit' =>'px'],
470 'style' => [
471 (object)[
472 'selector'=>'{{ULTP}} .ultp-big-post-module2 .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 #2',
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' =>(object)['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 'subHeadingShow' => [
983 'type' => 'boolean',
984 'default' => false,
985 ],
986 'subHeadingText' => [
987 'type' => 'string',
988 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
989 'style' => [
990 (object)[
991 'depends' => [
992 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
993 ],
994 ],
995 ],
996 ],
997 'subHeadingTypo' => [
998 'type' => 'object',
999 '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'],
1000 'style' => [
1001 (object)[
1002 'depends' => [
1003 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1004 ],
1005 'selector'=>'{{ULTP}} .ultp-sub-heading div'
1006 ],
1007 ],
1008 ],
1009 'subHeadingColor' => [
1010 'type' => 'string',
1011 'default' => '#989898',
1012 'style' => [
1013 (object)[
1014 'depends' => [
1015 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1016 ],
1017 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
1018 ],
1019 ],
1020 ],
1021 'subHeadingSpacing' => [
1022 'type' => 'object',
1023 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']],
1024 'style' => [
1025 (object)[
1026 'depends' => [
1027 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1028 ],
1029 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
1030 ],
1031 ],
1032 ],
1033
1034
1035 //--------------------------
1036 // Title Setting/Style
1037 //--------------------------
1038 'titleTag' => [
1039 'type' => 'string',
1040 'default' => 'h3',
1041 ],
1042 'titlePosition' => [
1043 'type' => 'boolean',
1044 'default' => true,
1045 ],
1046 'titleColor' => [
1047 'type' => 'string',
1048 'default' => '#0e1523',
1049 'style' => [
1050 (object)[
1051 'depends' => [
1052 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1053 ],
1054 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-content .ultp-block-title a { color:{{titleColor}} !important; }'
1055 ],
1056 ],
1057 ],
1058 'titleHoverColor' => [
1059 'type' => 'string',
1060 'default' => '#828282',
1061 'style' => [
1062 (object)[
1063 'depends' => [
1064 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1065 ],
1066 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }'
1067 ],
1068 ],
1069 ],
1070 'titleLgTypo' => [
1071 'type' => 'object',
1072 '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'],
1073 'style' => [
1074 (object)[
1075 'depends' => [
1076 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1077 ],
1078 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-big-post-module2 .ultp-block-item:first-child .ultp-block-title a'
1079 ],
1080 ],
1081 ],
1082 'lgTitleColor' => [
1083 'type' => 'string',
1084 'default' => '#fff',
1085 'style' => [
1086 (object)[
1087 'depends' => [
1088 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1089 ],
1090 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-content
1091 .ultp-block-title a { color: {{lgTitleColor}} !important }'
1092 ],
1093 ],
1094 ],
1095 'titleTypo' => [
1096 'type' => 'object',
1097 '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'],
1098 'style' => [
1099 (object)[
1100 'depends' => [
1101 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1102 ],
1103 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-title, {{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-title a'
1104 ],
1105 ],
1106 ],
1107 'titlePadding' => [
1108 'type' => 'object',
1109 'default' => (object)['lg'=>(object)['top'=>5,'bottom'=>5, 'unit'=>'px']],
1110 'style' => [
1111 (object)[
1112 'depends' => [
1113 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1114 ],
1115 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
1116 ],
1117 ],
1118 ],
1119 'titleLength' => [
1120 'type' => 'string',
1121 'default' => 0,
1122 ],
1123 'titleBackground' => [
1124 'type' => 'string',
1125 'default' => '',
1126 'style' => [
1127 (object)[
1128 'depends' => [
1129 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1130 ],
1131 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-title a{ padding: 2px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-color:{{titleBackground}}; }'
1132 ],
1133 ],
1134 ],
1135
1136 //--------------------------
1137 // Content Setting/Style
1138 //--------------------------
1139
1140 'varticalAlign' => [
1141 'type' => 'string',
1142 'default' => 'middle',
1143 'style' => [
1144 (object)[
1145 'depends' => [
1146 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'top'],
1147 ],
1148 '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; }'
1149 ],
1150 (object)[
1151 'depends' => [
1152 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'middle'],
1153 ],
1154 'selector'=>'{{ULTP}} .ultp-block-content-middle .ultp-block-content { -ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center; }'
1155 ],
1156 (object)[
1157 'depends' => [
1158 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'bottom'],
1159 ],
1160 '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; }'
1161 ],
1162 ],
1163 ],
1164 'showSeoMeta' => [
1165 'type' => 'boolean',
1166 'default'=> false
1167 ],
1168 'showSmallExcerpt' => [
1169 'type' => 'boolean',
1170 'default'=> false,
1171 ],
1172 'showFullExcerpt' => [
1173 'type' => 'boolean',
1174 'default' => false,
1175 ],
1176 'excerptLimit' => [
1177 'type' => 'string',
1178 'default' => 20,
1179 'style' => [
1180 (object)[
1181 'depends' => [
1182 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false]
1183 ],
1184 ],
1185 ],
1186 ],
1187 'excerptColor' => [
1188 'type' => 'string',
1189 'default' => '#777',
1190 'style' => [
1191 (object)[
1192 'depends' => [
1193 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1194 ],
1195 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
1196 ],
1197 ],
1198 ],
1199 'excerptTypo' => [
1200 'type' => 'object',
1201 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1202 'style' => [
1203 (object)[
1204 'depends' => [
1205 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1206 ],
1207 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p'
1208 ],
1209 ],
1210 ],
1211 'excerptPadding' => [
1212 'type' => 'object',
1213 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => '', 'unit' =>'px']],
1214 'style' => [
1215 (object)[
1216 'depends' => [
1217 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1218 ],
1219 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
1220 ],
1221 ],
1222 ],
1223
1224 //--------------------------
1225 // Count Style Setting/Style
1226 //--------------------------
1227 'counterTypo' => [
1228 'type' => 'object',
1229 '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'=>'' ],
1230 'style' => [
1231 (object)[
1232 'depends' => [
1233 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1234 ],
1235 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before'
1236 ],
1237 ],
1238 ],
1239 'counterColor' => [
1240 'type' => 'string',
1241 'default' => '#828282',
1242 'style' => [
1243 (object)[
1244 'depends' => [
1245 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1246 ],
1247 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { color:{{counterColor}}; }'
1248 ],
1249 ]
1250 ],
1251 'counterBgColor' => [
1252 'type' => 'object',
1253 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1254 'style' => [
1255 (object)[
1256 'depends' => [
1257 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1258 ],
1259 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before'
1260 ],
1261 ],
1262 ],
1263 'counterWidth' => [
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-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { width:{{counterWidth}}px; }'
1272 ],
1273 ]
1274 ],
1275 'counterHeight' => [
1276 'type' => 'string',
1277 'default' => '',
1278 'style' => [
1279 (object)[
1280 'depends' => [
1281 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1282 ],
1283 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { height:{{counterHeight}}px; }'
1284 ],
1285 ]
1286 ],
1287 'counterBorder' => [
1288 'type' => 'object',
1289 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1290 'style' => [
1291 (object)[
1292 'depends' => [
1293 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1294 ],
1295 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before'
1296 ],
1297 ],
1298 ],
1299 'counterRadius' => [
1300 'type' => 'object',
1301 'default' => (object)['lg' =>'', 'unit' =>'px'],
1302 'style' => [
1303 (object)[
1304 'depends' => [
1305 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1306 ],
1307 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { border-radius:{{counterRadius}}; }'
1308 ],
1309 ],
1310 ],
1311
1312 //--------------------------
1313 // Category Setting/Style
1314 //--------------------------
1315 'maxTaxonomy'=> [
1316 'type' => 'string',
1317 'default' => '30',
1318 ],
1319 'taxonomy' => [
1320 'type' => 'string',
1321 'default' => 'category'
1322 ],
1323 'showSmallCat' => [
1324 'type' => 'boolean',
1325 'default' => false,
1326 ],
1327 'catStyle' => [
1328 'type' => 'string',
1329 'default' => 'classic',
1330 ],
1331 'catPosition' => [
1332 'type' => 'string',
1333 'default' => 'aboveTitle',
1334 ],
1335 'customCatColor' => [
1336 'type' => 'boolean',
1337 'default' => false,
1338 ],
1339 'seperatorLink' => [
1340 'type' => 'string',
1341 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
1342 'style' => [
1343 (object)[
1344 'depends' => [
1345 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1346 ]
1347 ]
1348 ]
1349 ],
1350 'onlyCatColor' => [
1351 'type' => 'boolean',
1352 'default' => false,
1353 'style' => [
1354 (object)[
1355 'depends' => [
1356 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1357 ]
1358 ]
1359 ]
1360 ],
1361 'catLineWidth' => [
1362 'type' => 'object',
1363 'default' => (object)['lg'=>'20'],
1364 'style' => [
1365 (object)[
1366 'depends' => [
1367 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1368 ],
1369 '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; }'
1370 ],
1371 ]
1372 ],
1373 'catLineSpacing' => [
1374 'type' => 'object',
1375 'default' => (object)['lg'=>'30'],
1376 'style' => [
1377 (object)[
1378 'depends' => [
1379 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1380 ],
1381 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1382 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1383 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1384 ],
1385 ]
1386 ],
1387 'catLineColor' => [
1388 'type' => 'string',
1389 'default' => '#828282',
1390 'style' => [
1391 (object)[
1392 'depends' => [
1393 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1394 ],
1395 '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}}; }'
1396 ],
1397 ]
1398 ],
1399 'catLineHoverColor' => [
1400 'type' => 'string',
1401 'default' => '#037fff',
1402 'style' => [
1403 (object)[
1404 'depends' => [
1405 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1406 ],
1407 '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}}; }'
1408 ],
1409 ]
1410 ],
1411 'catTypo' => [
1412 'type' => 'object',
1413 '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'=>'' ],
1414 'style' => [
1415 (object)[
1416 'depends' => [
1417 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1418 ],
1419 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
1420 ],
1421 ],
1422 ],
1423 'catColor' => [
1424 'type' => 'string',
1425 'default' => '#037fff',
1426 'style' => [
1427 (object)[
1428 'depends' => [
1429 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1430 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1431 ],
1432 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1433 ],
1434 ],
1435 ],
1436 'catBgColor' => [
1437 'type' => 'object',
1438 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1439 'style' => [
1440 (object)[
1441 'depends' => [
1442 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1443 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1444 ],
1445 'selector'=>'{{ULTP}} .ultp-category-grid a'
1446 ],
1447 ],
1448 ],
1449 'catBorder' => [
1450 'type' => 'object',
1451 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1452 'style' => [
1453 (object)[
1454 'depends' => [
1455 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1456 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1457 ],
1458 'selector'=>'{{ULTP}} .ultp-category-grid a'
1459 ],
1460 ],
1461 ],
1462 'catRadius' => [
1463 'type' => 'object',
1464 'default' => (object)['lg' =>'', 'unit' =>'px'],
1465 'style' => [
1466 (object)[
1467 'depends' => [
1468 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1469 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1470 ],
1471 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1472 ],
1473 ],
1474 ],
1475 'catHoverColor' => [
1476 'type' => 'string',
1477 'default' => '#828282',
1478 'style' => [
1479 (object)[
1480 'depends' => [
1481 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1482 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1483 ],
1484 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1485 ],
1486 ],
1487 ],
1488 'catBgHoverColor' => [
1489 'type' => 'object',
1490 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => ''],
1491 'style' => [
1492 (object)[
1493 'depends' => [
1494 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1495 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1496 ],
1497 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1498 ],
1499 ],
1500 ],
1501 'catHoverBorder' => [
1502 'type' => 'object',
1503 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1504 'style' => [
1505 (object)[
1506 'depends' => [
1507 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1508 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1509 ],
1510 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1511 ],
1512 ],
1513 ],
1514 'catSacing' => [
1515 'type' => 'object',
1516 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1517 'style' => [
1518 (object)[
1519 'depends' => [
1520 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1521 ],
1522 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1523 ],
1524 ],
1525 ],
1526 'catPadding' => [
1527 'type' => 'object',
1528 'default' => (object)['lg' =>(object)['unit' =>'px']],
1529 'style' => [
1530 (object)[
1531 'depends' => [
1532 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1533 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1534 ],
1535 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1536 ],
1537 ],
1538 ],
1539
1540 //--------------------------
1541 // Meta Setting/Style
1542 //--------------------------
1543 'showSmallMeta' => [
1544 'type' => 'boolean',
1545 'default' => true,
1546 ],
1547 'metaPosition' => [
1548 'type' => 'string',
1549 'default' => 'top',
1550 ],
1551 'metaStyle' => [
1552 'type' => 'string',
1553 'default' => 'icon',
1554 ],
1555 'authorLink' => [
1556 'type' => 'boolean',
1557 'default' => true,
1558 ],
1559 'metaSeparator' => [
1560 'type' => 'string',
1561 'default' => 'dot',
1562 ],
1563 'metaList' => [
1564 'type' => 'string',
1565 'default' => '["metaAuthor","metaDate","metaRead"]',
1566 ],
1567 'metaMinText' => [
1568 'type' => 'string',
1569 'default' => 'min read',
1570 ],
1571 'metaAuthorPrefix' => [
1572 'type' => 'string',
1573 'default' => 'By',
1574 ],
1575 'metaDateFormat' => [
1576 'type' => 'string',
1577 'default' => 'M j, Y',
1578 ],
1579 'metaListSmall' => [
1580 'type' => 'string',
1581 'default' => '["metaAuthor","metaDate"]',
1582 ],
1583 'metaTypo' => [
1584 'type' => 'object',
1585 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1586 'style' => [
1587 (object)[
1588 'depends' => [
1589 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1590 ],
1591 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1592 ],
1593 ],
1594 ],
1595 'metaColor' => [
1596 'type' => 'string',
1597 'default' => '#989898',
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 { 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}}; }'
1604 ],
1605 ],
1606 ],
1607 'LargeMetaColor' => [
1608 'type' => 'string',
1609 'default' => '#fff',
1610 'style' => [
1611 (object)[
1612 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-big-post-module2 .ultp-block-meta span { color: {{LargeMetaColor}} !important; } {{ULTP}} .ultp-block-items-wrap .ultp-big-post-module2 .ultp-block-meta span svg { fill: {{LargeMetaColor}} !important; } {{ULTP}} .ultp-block-items-wrap .ultp-big-post-module2 .ultp-block-meta span a { color: {{LargeMetaColor}} !important; }{{ULTP}} .ultp-big-post-module2 .ultp-block-meta-dot span:after { background:{{LargeMetaColor}} !important; } {{ULTP}} .ultp-big-post-module2 .ultp-block-meta span:after { color:{{LargeMetaColor}} !important !important; }'
1613 ],
1614 ],
1615 ],
1616 'metaHoverColor' => [
1617 'type' => 'string',
1618 'default' => '#000',
1619 'style' => [
1620 (object)[
1621 'depends' => [
1622 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1623 ],
1624 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover , {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover a { color: {{metaHoverColor}}!important; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover svg { fill: {{metaHoverColor}}; }'
1625 ],
1626 ],
1627 ],
1628 'metaSpacing' => [
1629 'type' => 'object',
1630 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1631 'style' => [
1632 (object)[
1633 'depends' => [
1634 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1635 ],
1636 '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}}; }'
1637 ],
1638 (object)[
1639 'depends' => [
1640 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1641 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1642 ],
1643 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}'
1644 ],
1645 ],
1646 ],
1647 'metaMargin' => [
1648 'type' => 'object',
1649 'default' => (object)['lg' =>(object)['top' => '','bottom' => '0', 'left'=>'','right'=>'', 'unit' =>'px']],
1650 'style' => [
1651 (object)[
1652 'depends' => [
1653 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1654 ],
1655 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1656 ],
1657 ],
1658 ],
1659 'metaPadding' => [
1660 'type' => 'object',
1661 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1662 'style' => [
1663 (object)[
1664 'depends' => [
1665 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1666 ],
1667 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1668 ],
1669 ],
1670 ],
1671 'metaBorder' => [
1672 'type' => 'object',
1673 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1674 'style' => [
1675 (object)[
1676 'depends' => [
1677 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1678 ],
1679 'selector'=>'{{ULTP}} .ultp-block-meta'
1680 ],
1681 ],
1682 ],
1683 'metaBg' => [
1684 'type' => 'string',
1685 'default' => '',
1686 'style' => [
1687 (object)[
1688 'depends' => [
1689 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1690 ],
1691 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1692 ],
1693 ],
1694 ],
1695
1696
1697 //--------------------------
1698 // Inner Content Setting/Style
1699 //--------------------------
1700 'contentAlign' => [
1701 'type' => 'string',
1702 'default' => "left",
1703 'style' => [
1704 (object)[
1705 'depends' => [
1706 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
1707 ],
1708 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
1709 ],
1710 (object)[
1711 'depends' => [
1712 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
1713 ],
1714 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
1715 ],
1716 (object)[
1717 'depends' => [
1718 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1719 ],
1720 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;}'
1721 ],
1722 (object)[
1723 'depends' => [
1724 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1725 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1726 ],
1727 'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}'
1728 ],
1729 ],
1730 ],
1731 'contentWrapBg' => [
1732 'type' => 'string',
1733 'default' => '',
1734 'style' => [
1735 (object)[
1736 'selector'=>'{{ULTP}} .ultp-block-content-wrap { background:{{contentWrapBg}}; }'
1737 ],
1738 ],
1739 ],
1740 'contentWrapHoverBg' => [
1741 'type' => 'string',
1742 'style' => [
1743 (object)[
1744 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { background:{{contentWrapHoverBg}}; }'
1745 ],
1746 ],
1747 ],
1748 'contentWrapBorder' => [
1749 'type' => 'object',
1750 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1751 'style' => [
1752 (object)[
1753 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1754 ],
1755 ],
1756 ],
1757 'contentWrapHoverBorder' => [
1758 'type' => 'object',
1759 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1760 'style' => [
1761 (object)[
1762 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1763 ],
1764 ],
1765 ],
1766 'contentWrapRadius' => [
1767 'type' => 'object',
1768 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1769 'style' => [
1770 (object)[
1771 'selector'=>'{{ULTP}} .ultp-block-content-wrap { border-radius: {{contentWrapRadius}}; }'
1772 ],
1773 ],
1774 ],
1775 'contentWrapHoverRadius' => [
1776 'type' => 'object',
1777 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1778 'style' => [
1779 (object)[
1780 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { border-radius: {{contentWrapHoverRadius}}; }'
1781 ],
1782 ],
1783 ],
1784 'contentWrapShadow' => [
1785 'type' => 'object',
1786 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1787 'style' => [
1788 (object)[
1789 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1790 ],
1791 ],
1792 ],
1793 'contentWrapHoverShadow' => [
1794 'type' => 'object',
1795 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1796 'style' => [
1797 (object)[
1798 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1799 ],
1800 ],
1801 ],
1802
1803 'contentWrapInnerPadding' => [
1804 'type' => 'object',
1805 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1806 'style' => [
1807 (object)[
1808 'selector'=>'{{ULTP}} .ultp-block-content { padding: {{contentWrapInnerPadding}}; }'
1809 ],
1810 ],
1811 ],
1812 'contentWrapPadding' => [
1813 'type' => 'object',
1814 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1815 'style' => [
1816 (object)[
1817 'selector'=>'{{ULTP}} .ultp-block-content-wrap { padding: {{contentWrapPadding}}; }'
1818 ],
1819 ],
1820 ],
1821
1822
1823 //--------------------------
1824 // Image Setting/Style
1825 //--------------------------
1826 'columnFlip' => [
1827 'type' => 'boolean',
1828 'default' => false,
1829 ],
1830 'imgCrop' => [
1831 'type' => 'string',
1832 'default' => 'full',
1833 'depends' => [
1834 (object)['key' => 'showImage','condition' => '==','value' => true]
1835 ]
1836 ],
1837 'imgCropSmall' => [
1838 'type' => 'string',
1839 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'),
1840 'style' => [
1841 (object)[
1842 'depends' => [
1843 (object)['key' => 'showImage','condition' => '==','value' => true],
1844 (object)['key' => 'layout','condition' => '!=','value' => 'layout1']
1845 ]
1846 ],
1847 ],
1848 ],
1849 'imgWidth' => [
1850 'type' => 'object',
1851 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'ulg' =>'px', 'usm' =>'px'],
1852 'style' => [
1853 (object)[
1854 'depends' => [
1855 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1856 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"]
1857 ],
1858 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }'
1859 ],
1860 ],
1861 ],
1862 'imgHeight' => [
1863 'type' => 'object',
1864 'default' => (object)['lg' =>'', 'unit' =>'px'],
1865 'style' => [
1866 (object)[
1867 'depends' => [
1868 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1869 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"]
1870 ],
1871 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image img {height: {{imgHeight}}; }'
1872 ],
1873 ],
1874 ],
1875 'imageScale' => [
1876 'type' => 'string',
1877 'default' => 'cover',
1878 'style' => [
1879 (object)[
1880 'depends' => [
1881 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1882 (object)['key' => 'layout','condition' => '!=','value' => 'layout1']
1883 ],
1884 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image img {object-fit: {{imageScale}};}'
1885 ],
1886 ],
1887 ],
1888 'imgAnimation' => [
1889 'type' => 'string',
1890 'default' => 'opacity',
1891 ],
1892 'imgGrayScale' => [
1893 'type' => 'object',
1894 'default' => (object)['lg' =>'0', 'ulg' =>'%', 'unit' =>'%'],
1895 'style' => [
1896 (object)[
1897 'depends' => [
1898 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1899 ],
1900 'selector'=>'{{ULTP}} .ultp-block-image { filter: grayscale({{imgGrayScale}}); }'
1901 ],
1902 ],
1903 ],
1904 'imgHoverGrayScale' => [
1905 'type' => 'object',
1906 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1907 'style' => [
1908 (object)[
1909 'depends' => [
1910 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1911 ],
1912 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { filter: grayscale({{imgHoverGrayScale}}); }'
1913 ],
1914 ],
1915 ],
1916 'imgRadius' => [
1917 'type' => 'object',
1918 'default' => (object)['lg' =>'', 'unit' =>'px'],
1919 'style' => [
1920 (object)[
1921 'depends' => [
1922 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1923 ],
1924 'selector'=>'{{ULTP}} .ultp-big-post-module2 .ultp-block-image, {{ULTP}} .ultp-small-post-module2 .ultp-block-image, {{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}}; }'
1925 ],
1926 ],
1927 ],
1928 'imgHoverRadius' => [
1929 'type' => 'object',
1930 'default' => (object)['lg' =>'', 'unit' =>'px'],
1931 'style' => [
1932 (object)[
1933 'depends' => [
1934 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1935 ],
1936 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image, {{ULTP}} .ultp-block-item:hover .ultp-block-image img, {{ULTP}}
1937 .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{ border-radius:{{imgHoverRadius}}; }'
1938 ],
1939 ],
1940 ],
1941 'imgShadow' => [
1942 'type' => 'object',
1943 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1944 'style' => [
1945 (object)[
1946 'depends' => [
1947 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1948 ],
1949 'selector'=>'{{ULTP}} .ultp-block-image'
1950 ],
1951 ],
1952 ],
1953 'imgHoverShadow' => [
1954 'type' => 'object',
1955 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1956 'style' => [
1957 (object)[
1958 'depends' => [
1959 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1960 ],
1961 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1962 ],
1963 ],
1964 ],
1965 'imgSpacing' => [
1966 'type' => 'object',
1967 'default' => (object)['lg'=>'20'],
1968 'style' => [
1969 (object)[
1970 'depends' => [
1971 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1972 (object)['key'=>'layout','condition'=>'!=','value'=>'layout2'],
1973 (object)['key'=>'layout','condition'=>'!=','value'=>'layout1'],
1974 ],
1975 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-right: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-right: 0; margin-left: {{imgSpacing}}px; }'
1976 ],
1977 (object)[
1978 'depends' => [
1979 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1980 (object)['key'=>'layout','condition'=>'==','value'=>'layout2'],
1981 ],
1982 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-left: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-left: 0; margin-right: {{imgSpacing}}px; }'
1983 ],
1984 ],
1985 ],
1986 'imgOverlay' => [
1987 'type' => 'boolean',
1988 'default' => false,
1989 ],
1990 'imgOverlayType' => [
1991 'type' => 'string',
1992 'default' => 'default',
1993 'style' => [
1994 (object)[
1995 'depends' => [
1996 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1997 ]
1998 ],
1999 ]
2000 ],
2001 'overlayColor' => [
2002 'type' => 'object',
2003 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
2004 'style' => [
2005 (object)[
2006 'depends' => [
2007 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
2008 ],
2009 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
2010 ],
2011 ],
2012
2013 ],
2014 'imgOpacity' => [
2015 'type' => 'string',
2016 'default' => .7,
2017 'style' => [
2018 (object)[
2019 'depends' => [
2020 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
2021 ],
2022 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
2023 ],
2024 ],
2025 ],
2026 'fallbackEnable' => [
2027 'type' => 'boolean',
2028 'default' => true,
2029 'style' => [
2030 (object)[
2031 'depends' => [
2032 (object)['key'=>'showImage','condition'=>'==','value'=> true],
2033 ],
2034 ],
2035 ],
2036 ],
2037 'fallbackImg' => [
2038 'type' => 'object',
2039 'default' => '',
2040 'style' => [
2041 (object)[
2042 'depends' => [
2043 (object)['key'=>'showImage','condition'=>'==','value'=> true],
2044 (object)['key'=>'fallbackEnable','condition'=>'==','value'=> true],
2045 ],
2046 ],
2047 ],
2048 ],
2049 'imgSrcset' => [
2050 'type' => 'boolean',
2051 'default' => false,
2052 ],
2053 'imgLazy' => [
2054 'type' => 'boolean',
2055 'default' => false,
2056 ],
2057
2058 //--------------------------
2059 // Video Setting/Style
2060 //--------------------------
2061 'vidIconEnable' => [
2062 'type' => 'boolean',
2063 'default' => true,
2064 ],
2065 'popupAutoPlay' => [
2066 'type' => 'boolean',
2067 'default' => true,
2068 'style' => [
2069 (object)[
2070 'depends' => [
2071 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2072 ],
2073 ],
2074 ],
2075 ],
2076 'vidIconPosition' => [
2077 'type' => 'string',
2078 'default' => 'center',
2079 'style' => [
2080 (object)[
2081 'depends' => [
2082 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2083 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomRight']
2084 ],
2085 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; right: 20px; }'
2086 ],
2087 (object)[
2088 'depends' => [
2089 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2090 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'center']
2091 ],
2092 'selector'=>'{{ULTP}} .ultp-video-icon {
2093 margin: 0 auto;
2094 position: absolute;
2095 top: 50%;
2096 left: 50%;
2097 transform: translate(-50%,-60%);
2098 -o-transform: translate(-50%,-60%);
2099 -ms-transform: translate(-50%,-60%);
2100 -moz-transform: translate(-50%,-60%);
2101 -webkit-transform: translate(-50%,-50%);
2102 z-index: 998;}'
2103 ],
2104 (object)[
2105 'depends' => [
2106 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2107 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomLeft']
2108 ],
2109 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; left: 20px; }'
2110 ],
2111 (object)[
2112 'depends' => [
2113 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2114 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topRight']
2115 ],
2116 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; right: 20px; }'
2117 ],
2118 (object)[
2119 'depends' => [
2120 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2121 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topLeft']
2122 ],
2123 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; left: 20px; }'
2124 ],
2125 (object)[
2126 'depends' => [
2127 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2128 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'rightMiddle']
2129 ],
2130 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-end; align-items: center; height: 100%; width: 100%; top:0px;}'
2131 ],
2132 (object)[
2133 'depends' => [
2134 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2135 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'leftMiddle']
2136 ],
2137 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-start; align-items: center; height: 100%; width: 100%; top: 0px;}'
2138 ]
2139 ],
2140 ],
2141 'popupIconColor' => [
2142 'type' => 'string',
2143 'default' => '#fff',
2144 'style' => [
2145 (object) [
2146 'depends' => [
2147 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2148 ],
2149 'selector'=>'{{ULTP}} .ultp-video-icon svg { fill: {{popupIconColor}}; } {{ULTP}} .ultp-video-icon svg circle { stroke: {{popupIconColor}}; }'
2150 ]
2151 ],
2152 ],
2153 'popupHovColor' => [
2154 'type' => 'string',
2155 'default' => '#d2d2d2',
2156 'style' => [
2157 (object)[
2158 'depends' => [
2159 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2160 ],
2161 'selector'=>'{{ULTP}} .ultp-video-icon svg:hover { fill: {{popupHovColor}}; } {{ULTP}} .ultp-video-icon svg:hover circle { stroke: {{popupHovColor}};}'
2162 ]
2163 ],
2164 ],
2165 'iconSize' => [
2166 'type' => 'object',
2167 'default' => (object)['lg'=>'40', 'sm'=> '30', 'xs'=> '30', 'unit' => 'px'],
2168 'style' => [
2169 (object)[
2170 'depends' => [
2171 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2172 ],
2173 'selector'=>'{{ULTP}} .ultp-video-icon svg { height:{{iconSize}}; width: {{iconSize}};}'
2174 ],
2175 ],
2176 ],
2177 // by default should be off
2178 'enablePopup' => [
2179 'type' => 'boolean',
2180 'default' => false,
2181 'style' => [
2182 (object)[
2183 'depends' => [
2184 (object)['key' => 'vidIconEnable','condition' => '==','value' => true]
2185 ],
2186 ],
2187 ],
2188 ],
2189 'popupWidth' => [
2190 'type' => 'object',
2191 'default' => (object)['lg'=>'70'],
2192 'style' => [
2193 (object)[
2194 'depends' => [
2195 (object)['key' => 'enablePopup','condition' => '==','value' => true]
2196 ],
2197 'selector'=>'{{ULTP}} .ultp-video-modal .ultp-video-modal__Wrapper {width:{{popupWidth}}% !important;}'
2198 ],
2199 ],
2200 ],
2201 'enablePopupTitle' => [
2202 'type' => 'boolean',
2203 'default' => true,
2204 'style' => [
2205 (object)[
2206 'depends' => [
2207 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2208 ],
2209 ]
2210 ],
2211 ],
2212 'popupTitleColor' => [
2213 'type' => 'string',
2214 'default' => '#fff',
2215 'style' => [
2216 (object)[
2217 'depends' => [
2218 (object)['key' => 'enablePopupTitle','condition' => '==','value' => true],
2219 (object)['key' => 'enablePopup','condition' => '==','value' => true]
2220 ],
2221 'selector'=>'{{ULTP}} .ultp-video-modal__Wrapper a { color:{{popupTitleColor}} !important; }'
2222 ]
2223 ],
2224 ],
2225 'closeIconSep' => [
2226 'type' => 'string',
2227 'default' => '#fff',
2228 'style' => [
2229 (object)[
2230 'depends' => [
2231 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2232 ],
2233 ]
2234 ],
2235 ],
2236 'closeIconColor' => [
2237 'type' => 'string',
2238 'default' => '#fff',
2239 'style' => [
2240 (object)[
2241 'depends' => [
2242 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2243 ],
2244 'selector'=>'{{ULTP}} .ultp-video-close { color:{{closeIconColor}}; }'
2245 ]
2246 ],
2247 ],
2248 'closeHovColor' => [
2249 'type' => 'string',
2250 'default' => '#8f8f8f',
2251 'style' => [
2252 (object)[
2253 'depends' => [
2254 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2255 ],
2256 'selector'=>'{{ULTP}} .ultp-video-close:hover { color:{{closeHovColor}}; }'
2257 ]
2258 ],
2259 ],
2260 'closeSize' => [
2261 'type' => 'object',
2262 'default' => (object)['lg'=>'70', 'unit' => 'px'],
2263 'style' => [
2264 (object)[
2265 'depends' => [
2266 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2267 ],
2268 'selector'=>'{{ULTP}} .ultp-video-close { font-size:{{closeSize}}; }'
2269 ],
2270 ],
2271 ],
2272
2273 //--------------------------
2274 // Separator
2275 //--------------------------
2276 'separatorShow' => [
2277 'type' => 'boolean',
2278 'default' => false,
2279 ],
2280 'septColor' => [
2281 'type' => 'string',
2282 'default' => '#e5e5e5',
2283 'style' => [
2284 (object)[
2285 'depends' => [
2286 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2287 ],
2288 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { border-bottom-color:{{septColor}}; }'
2289 ],
2290 ],
2291 ],
2292 'septStyle' => [
2293 'type' => 'string',
2294 'default' => 'dashed',
2295 'style' => [
2296 (object)[
2297 'depends' => [
2298 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2299 ],
2300 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { border-bottom-style:{{septStyle}}; }'
2301 ],
2302 ],
2303 ],
2304 'septSize' => [
2305 'type' => 'string',
2306 'default' => (object)['lg'=>'1'],
2307 'style' => [
2308 (object)[
2309 'depends' => [
2310 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2311 ],
2312 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { border-bottom-width: {{septSize}}px; }'
2313 ],
2314 ],
2315 ],
2316 'septSpace' => [
2317 'type' => 'object',
2318 'default' => (object)['lg'=>'15'],
2319 'style' => [
2320 (object)[
2321 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { padding-bottom: {{septSpace}}px; } {{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { margin-bottom: {{septSpace}}px; }'
2322 ],
2323 ],
2324 ],
2325
2326 //--------------------------
2327 // Read more Setting/Style
2328 //--------------------------
2329 'showSmallBtn' => [
2330 'type' => 'boolean',
2331 'default' => false,
2332 ],
2333 'readMoreText' => [
2334 'type' => 'string',
2335 'default' => ''
2336 ],
2337 'readMoreIcon' => [
2338 'type' => 'string',
2339 'default' => 'rightArrowLg',
2340 ],
2341 'readMoreTypo' => [
2342 'type' => 'object',
2343 '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'=>'' ],
2344 'style' => [
2345 (object)[
2346 'depends' => [
2347 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2348 ],
2349 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
2350 ],
2351 ],
2352 ],
2353 'readMoreIconSize' => [
2354 'type' => 'object',
2355 'default' => (object)['lg' =>'', 'unit' =>'px'],
2356 'style' => [
2357 (object)[
2358 'depends' => [
2359 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2360 ],
2361 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
2362 ],
2363 ]
2364 ],
2365 'readMoreColor' => [
2366 'type' => 'string',
2367 'default' => '#0d1523',
2368 'style' => [
2369 (object)[
2370 'depends' => [
2371 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2372 ],
2373 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
2374 ],
2375 ],
2376 ],
2377 'readMoreBgColor' => [
2378 'type' => 'object',
2379 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''],
2380 'style' => [
2381 (object)[
2382 'depends' => [
2383 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2384 ],
2385 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2386 ],
2387 ],
2388 ],
2389 'readMoreBorder' => [
2390 'type' => 'object',
2391 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2392 'style' => [
2393 (object)[
2394 'depends' => [
2395 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2396 ],
2397 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2398 ],
2399 ],
2400 ],
2401 'readMoreRadius' => [
2402 'type' => 'object',
2403 'default' => (object)['lg' =>'', 'unit' =>'px'],
2404 'style' => [
2405 (object)[
2406 'depends' => [
2407 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2408 ],
2409 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
2410 ],
2411 ],
2412 ],
2413 'readMoreHoverColor' => [
2414 'type' => 'string',
2415 'default' => '#0c32d8',
2416 'style' => [
2417 (object)[
2418 'depends' => [
2419 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2420 ],
2421 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
2422 ],
2423 ],
2424 ],
2425 'readMoreBgHoverColor' => [
2426 'type' => 'object',
2427 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''],
2428 'style' => [
2429 (object)[
2430 'depends' => [
2431 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2432 ],
2433 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2434 ],
2435 ],
2436 ],
2437 'readMoreHoverBorder' => [
2438 'type' => 'object',
2439 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2440 'style' => [
2441 (object)[
2442 'depends' => [
2443 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2444 ],
2445 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2446 ],
2447 ],
2448 ],
2449 'readMoreHoverRadius' => [
2450 'type' => 'object',
2451 'default' => (object)['lg' =>'', 'unit' =>'px'],
2452 'style' => [
2453 (object)[
2454 'depends' => [
2455 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2456 ],
2457 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
2458 ],
2459 ],
2460 ],
2461 'readMoreSacing' => [
2462 'type' => 'object',
2463 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2464 'style' => [
2465 (object)[
2466 'depends' => [
2467 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2468 ],
2469 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
2470 ],
2471 ],
2472 ],
2473 'readMorePadding' => [
2474 'type' => 'object',
2475 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2476 'style' => [
2477 (object)[
2478 'depends' => [
2479 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2480 ],
2481 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
2482 ],
2483 ],
2484 ],
2485
2486 //--------------------------
2487 // Filter Setting/Style
2488 //--------------------------
2489 'filterBelowTitle' => [
2490 'type' => 'boolean',
2491 'default' => false,
2492 'style' => [
2493 (object)[
2494 'depends' => [
2495 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2496 ],
2497 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { position: relative; display: block; margin: auto 0 0 0; height: auto;}'
2498 ],
2499 ],
2500 ],
2501 'filterAlign' => [
2502 'type' => 'object',
2503 'default' => (object)['lg' =>''],
2504 'style' => [
2505 (object)[
2506 'depends' => [
2507 (object)['key'=>'filterBelowTitle','condition'=>'==','value'=>true],
2508 ],
2509 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { text-align:{{filterAlign}}; }'
2510 ],
2511 ],
2512 ],
2513 'filterType' => [
2514 'type' => 'string',
2515 'default' => 'category'
2516 ],
2517 'filterText' => [
2518 'type' => 'string',
2519 'default' => 'all'
2520 ],
2521 'filterValue' => [
2522 'type' => 'string',
2523 'default' => '[]',
2524 'style' => [
2525 (object)[
2526 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
2527 ],
2528 ],
2529 ],
2530 'fliterTypo' => [
2531 'type' => 'object',
2532 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>22, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
2533 'style' => [
2534 (object)[
2535 'depends' => [
2536 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2537 ],
2538 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a'
2539 ],
2540 ],
2541 ],
2542 'filterColor' => [
2543 'type' => 'string',
2544 'default' => '#0e1523',
2545 'style' => [
2546 (object)[
2547 'depends' => [
2548 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2549 ],
2550 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; }{{ULTP}} .flexMenu-viewMore a:before { border-color:{{filterColor}}}'
2551 ],
2552 ],
2553 ],
2554 'filterHoverColor' => [
2555 'type' => 'string',
2556 'default' => '#828282',
2557 'style' => [
2558 (object)[
2559 'depends' => [
2560 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2561 ],
2562 '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}}}'
2563 ],
2564 ],
2565 ],
2566 'filterBgColor' => [
2567 'type' => 'string',
2568 'style' => [
2569 (object)[
2570 'depends' => [
2571 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2572 ],
2573 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
2574 ],
2575 ],
2576 ],
2577 'filterHoverBgColor' => [
2578 'type' => 'string',
2579 'style' => [
2580 (object)[
2581 'depends' => [
2582 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2583 ],
2584 '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}}; }'
2585 ],
2586 ],
2587 ],
2588 'filterBorder' => [
2589 'type' => 'object',
2590 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2591 'style' => [
2592 (object)[
2593 'depends' => [
2594 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2595 ],
2596 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a'
2597 ],
2598 ],
2599 ],
2600 'filterHoverBorder' => [
2601 'type' => 'object',
2602 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2603 'style' => [
2604 (object)[
2605 'depends' => [
2606 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2607 ],
2608 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover'
2609 ],
2610 ],
2611 ],
2612 'filterRadius' => [
2613 'type' => 'object',
2614 'default' => (object)['lg' =>'', 'unit' =>'px'],
2615 'style' => [
2616 (object)[
2617 'depends' => [
2618 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2619 ],
2620 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }'
2621 ],
2622 ],
2623 ],
2624 'fliterSpacing' => [
2625 'type' => 'object',
2626 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
2627 'style' => [
2628 (object)[
2629 'depends' => [
2630 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2631 ],
2632 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
2633 ],
2634 ],
2635 ],
2636 'fliterPadding' => [
2637 'type' => 'object',
2638 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2639 'style' => [
2640 (object)[
2641 'depends' => [
2642 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2643 ],
2644 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a, {{ULTP}} .ultp-filter-wrap .flexMenu-viewMore > a { padding:{{fliterPadding}}; }'
2645 ],
2646 ],
2647 ],
2648 'filterDropdownColor' => [
2649 'type' => 'string',
2650 'default' => '#0e1523',
2651 'style' => [
2652 (object)[
2653 'depends' => [
2654 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2655 ],
2656 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
2657 ],
2658 ],
2659 ],
2660 'filterDropdownHoverColor' => [
2661 'type' => 'string',
2662 'default' => '#037fff',
2663 'style' => [
2664 (object)[
2665 'depends' => [
2666 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2667 ],
2668 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }'
2669 ],
2670 ],
2671 ],
2672 'filterDropdownBg' => [
2673 'type' => 'string',
2674 'default' => '#fff',
2675 'style' => [
2676 (object)[
2677 'depends' => [
2678 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2679 ],
2680 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }'
2681 ],
2682 ],
2683 ],
2684 'filterDropdownRadius' => [
2685 'type' => 'object',
2686 'default' => (object)['lg'=>'0'],
2687 'style' => [
2688 (object)[
2689 'depends' => [
2690 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2691 ],
2692 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }'
2693 ],
2694 ],
2695 ],
2696 'filterDropdownPadding' => [
2697 'type' => 'object',
2698 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
2699 'style' => [
2700 (object)[
2701 'depends' => [
2702 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2703 ],
2704 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }'
2705 ],
2706 ],
2707 ],
2708 'filterMobile' => [
2709 'type' => 'boolean',
2710 'default' => true,
2711 ],
2712 'filterMobileText' => [
2713 'type' => 'string',
2714 'default' => 'More',
2715 'style' => [
2716 (object)[
2717 'depends' => [
2718 (object)['key'=>'filterMobile','condition'=>'==','value'=>true],
2719 ]
2720 ]
2721 ]
2722 ],
2723
2724
2725 //--------------------------
2726 // Pagination Setting/Style
2727 //--------------------------
2728 'paginationType' => [
2729 'type' => 'string',
2730 'default' => 'navigation',
2731 ],
2732 'paginationNav' => [
2733 'type' => 'string',
2734 'default' => 'textArrow',
2735 'style' => [
2736 (object)[
2737 'depends' => [
2738 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
2739 ],
2740 ],
2741 ],
2742 ],
2743 'navPosition' => [
2744 'type' => 'string',
2745 'default' => 'topRight',
2746 'style' => [
2747 (object)[
2748 'depends' => [
2749 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2750 ],
2751 ],
2752 ],
2753 ],
2754 'pagiAlign' => [
2755 'type' => 'object',
2756 'default' => (object)['lg' =>'left'],
2757 'style' => [
2758 (object)[
2759 'depends' => [
2760 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2761 ],
2762 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
2763 ],
2764 ],
2765 ],
2766 'pagiTypo' => [
2767 'type' => 'object',
2768 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2769 'style' => [
2770 (object)[
2771 'depends' => [
2772 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2773 ],
2774 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-loadmore-action'
2775 ],
2776 ],
2777
2778 ],
2779 'pagiArrowSize' => [
2780 'type' => 'object',
2781 'default' => (object)['lg'=>'14'],
2782 'style' => [
2783 (object)[
2784 'depends' => [
2785 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2786 ],
2787 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }'
2788 ],
2789 ],
2790 ],
2791 'pagiColor' => [
2792 'type' => 'string',
2793 'default' => '#fff',
2794 'style' => [
2795 (object)[
2796 'depends' => [
2797 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2798 ],
2799 '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}}; }'
2800 ],
2801 ],
2802 ],
2803 'pagiBgColor' => [
2804 'type' => 'object',
2805 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
2806 'style' => [
2807 (object)[
2808 'depends' => [
2809 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2810 ],
2811 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
2812 ],
2813 ],
2814 ],
2815 'pagiBorder' => [
2816 'type' => 'object',
2817 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2818 'style' => [
2819 (object)[
2820 'depends' => [
2821 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2822 ],
2823 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2824 ],
2825 ],
2826 ],
2827 'pagiShadow' => [
2828 'type' => 'object',
2829 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2830 'style' => [
2831 (object)[
2832 'depends' => [
2833 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2834 ],
2835 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2836 ],
2837 ],
2838 ],
2839 'pagiRadius' => [
2840 'type' => 'object',
2841 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2842 'style' => [
2843 (object)[
2844 'depends' => [
2845 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2846 ],
2847 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }'
2848 ],
2849 ],
2850 ],
2851 'pagiHoverColor' => [
2852 'type' => 'string',
2853 'default' => '#fff',
2854 'style' => [
2855 (object)[
2856 'depends' => [
2857 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2858 ],
2859 '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}};}}'
2860 ],
2861 ],
2862 ],
2863 'pagiHoverbg' => [
2864 'type' => 'object',
2865 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1],
2866 'style' => [
2867 (object)[
2868 'depends' => [
2869 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2870 ],
2871 '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}} }'
2872 ],
2873 ],
2874 ],
2875 'pagiHoverBorder' => [
2876 'type' => 'object',
2877 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2878 'style' => [
2879 (object)[
2880 'depends' => [
2881 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2882 ],
2883 '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'
2884 ],
2885 ],
2886 ],
2887 'pagiHoverShadow' => [
2888 'type' => 'object',
2889 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2890 'style' => [
2891 (object)[
2892 'depends' => [
2893 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2894 ],
2895 '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'
2896 ],
2897 ],
2898 ],
2899 'pagiHoverRadius' => [
2900 'type' => 'object',
2901 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2902 'style' => [
2903 (object)[
2904 'depends' => [
2905 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2906 ],
2907 '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}}; }'
2908 ],
2909 ],
2910 ],
2911 'pagiPadding' => [
2912 'type' => 'object',
2913 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
2914 'style' => [
2915 (object)[
2916 'depends' => [
2917 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2918 ],
2919 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
2920 ],
2921 ],
2922 ],
2923 'navMargin' => [
2924 'type' => 'object',
2925 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
2926 'style' => [
2927 (object)[
2928 'depends' => [
2929 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2930 ],
2931 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
2932 ],
2933 ],
2934 ],
2935
2936
2937 //--------------------------
2938 // Wrapper Style
2939 //--------------------------
2940 'loadingColor' => [
2941 'type' => 'string',
2942 'default' => '#000',
2943 'style' => [
2944 (object)[
2945 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }'
2946 ],
2947 ],
2948 ],
2949 'wrapBg' => [
2950 'type' => 'object',
2951 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2952 'style' => [
2953 (object)[
2954 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2955 ],
2956 ],
2957 ],
2958 'wrapBorder' => [
2959 'type' => 'object',
2960 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2961 'style' => [
2962 (object)[
2963 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2964 ],
2965 ],
2966 ],
2967 'wrapShadow' => [
2968 'type' => 'object',
2969 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2970 'style' => [
2971 (object)[
2972 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2973 ],
2974 ],
2975 ],
2976 'wrapRadius' => [
2977 'type' => 'object',
2978 'default' => (object)['lg' =>'', 'unit' =>'px'],
2979 'style' => [
2980 (object)[
2981 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2982 ],
2983 ],
2984 ],
2985 'wrapHoverBackground' => [
2986 'type' => 'object',
2987 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2988 'style' => [
2989 (object)[
2990 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2991 ],
2992 ],
2993 ],
2994 'wrapHoverBorder' => [
2995 'type' => 'object',
2996 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2997 'style' => [
2998 (object)[
2999 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
3000 ],
3001 ],
3002 ],
3003 'wrapHoverRadius' => [
3004 'type' => 'object',
3005 'default' => (object)['lg' =>'', 'unit' =>'px'],
3006 'style' => [
3007 (object)[
3008 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
3009 ],
3010 ],
3011 ],
3012 'wrapHoverShadow' => [
3013 'type' => 'object',
3014 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
3015 'style' => [
3016 (object)[
3017 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
3018 ],
3019 ],
3020 ],
3021 'wrapMargin' => [
3022 'type' => 'object',
3023 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
3024 'style' => [
3025 (object)[
3026 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
3027 ],
3028 ],
3029 ],
3030 'wrapOuterPadding' => [
3031 'type' => 'object',
3032 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
3033 'style' => [
3034 (object)[
3035 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
3036 ],
3037 ],
3038 ],
3039 'wrapInnerPadding' => [
3040 'type' => 'object',
3041 'default' => (object)['lg' =>(object)['unit' =>'px']],
3042 'style' => [
3043 (object)[
3044 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
3045 ],
3046 ],
3047 ],
3048 'advanceId' => [
3049 'type' => 'string',
3050 'default' => '',
3051 ],
3052 'advanceZindex' => [
3053 'type' => 'string',
3054 'default' => '',
3055 'style' => [
3056 (object)[
3057 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}'
3058 ],
3059 ],
3060 ],
3061 'hideExtraLarge' => [
3062 'type' => 'boolean',
3063 'default' => false,
3064 'style' => [
3065 (object)[
3066 'selector' => '{{ULTP}} {display:none;}'
3067 ],
3068 ],
3069 ],
3070 'hideTablet' => [
3071 'type' => 'boolean',
3072 'default' => false,
3073 'style' => [
3074 (object)[
3075 'selector' => '{{ULTP}} {display:none;}'
3076 ],
3077 ],
3078 ],
3079 'hideMobile' => [
3080 'type' => 'boolean',
3081 'default' => false,
3082 'style' => [
3083 (object)[
3084 'selector' => '{{ULTP}} {display:none;}'
3085 ],
3086 ],
3087 ],
3088 'advanceCss' => [
3089 'type' => 'string',
3090 'default' => '',
3091 'style' => [(object)['selector' => '']],
3092 ]
3093 );
3094
3095 if ($default) {
3096 $temp = array();
3097 foreach ($attributes as $key => $value) {
3098 if (isset($value['default'])) {
3099 $temp[$key] = $value['default'];
3100 }
3101 }
3102 return $temp;
3103 } else {
3104 return $attributes;
3105 }
3106 }
3107
3108 public function register() {
3109 register_block_type( 'ultimate-post/post-module-2',
3110 array(
3111 'editor_script' => 'ultp-blocks-editor-script',
3112 'editor_style' => 'ultp-blocks-editor-css',
3113 'attributes' => $this->get_attributes(),
3114 'render_callback' => array($this, 'content')
3115 )
3116 );
3117 }
3118
3119 public function content($attr, $noAjax) {
3120 global $unique_ID;
3121 if (!$noAjax) {
3122 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
3123 $attr['paged'] = $paged ? $paged : 1;
3124 }
3125 if($attr['queryUnique'] && isset($attr['savedQueryUnique'])) {
3126 $unique_ID = $attr['savedQueryUnique'];
3127 }
3128
3129 $block_name = 'post-module-2';
3130 $page_post_id = ultimate_post()->get_ID();
3131 $wraper_before = $wraper_after = $post_loop = '';
3132 $attr['queryNumber'] = ultimate_post()->get_post_number(5, $attr['queryNumber'], $attr['queryNumPosts']);
3133 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
3134 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
3135 // Dummy Img Url
3136 $dummy_url = ULTP_URL.'assets/img/ultp-fallback-img.png';
3137
3138 // Loadmore and Unique content
3139 if($attr['queryUnique'] && isset($attr['loadMoreQueryUnique']) && $attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
3140 $unique_ID = $attr['loadMoreQueryUnique'];
3141 $current_unique_posts = $attr['ultp_current_unique_posts'];
3142 }
3143
3144 if ($recent_posts->have_posts()) {
3145
3146 $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"]:'').'">';
3147 $wraper_before .= '<div class="ultp-block-wrapper">';
3148
3149 // Loading
3150 $wraper_before .= ultimate_post()->loading();
3151
3152 if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
3153 $wraper_before .= '<div class="ultp-heading-filter">';
3154 $wraper_before .= '<div class="ultp-heading-filter-in">';
3155
3156 // Heading
3157 include ULTP_PATH.'blocks/template/heading.php';
3158
3159 if ($attr['filterShow'] || $attr['paginationShow']) {
3160 $wraper_before .= '<div class="ultp-filter-navigation">';
3161 // Filter
3162 if($attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts') {
3163 include ULTP_PATH.'blocks/template/filter.php';
3164 }
3165 // Navigation
3166 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
3167 include ULTP_PATH.'blocks/template/navigation-before.php';
3168 }
3169 $wraper_before .= '</div>';
3170 }
3171
3172 $wraper_before .= '</div>';
3173 $wraper_before .= '</div>';
3174 }
3175
3176 $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-post-module2 ultp-block-content-'.$attr['varticalAlign'].' ultp-block-content-'.($attr['columnFlip'] ? 'true' : 'false').' ultp-'.$attr['layout'].'">';
3177 $idx = 0; // $idx = $noAjax ? 1 : 0;
3178 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
3179
3180 include ULTP_PATH.'blocks/template/data.php';
3181
3182 include ULTP_PATH.'blocks/template/category.php';
3183
3184 if ($attr['queryUnique']) {
3185 $unique_ID[$attr['queryUnique']][] = $post_id;
3186 $current_unique_posts[] = $post_id;
3187 }
3188
3189 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">';
3190
3191 $post_loop .= '<div class="ultp-block-content-wrap">';
3192 if (($post_thumb_id || $attr['fallbackEnable']) && $attr['showImage'] && ($idx == 0 || ($attr['layout'] == 'layout2') || ($attr['layout'] == 'layout3') || ($attr['layout'] == 'layout5') )) {
3193 $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 : '' ).'">';
3194 if ($idx == 0) {
3195 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>';
3196 // Post Image Id
3197 $block_img_id = $post_thumb_id ? $post_thumb_id : ($attr['fallbackEnable'] && isset($attr['fallbackImg']['id']) ? $attr['fallbackImg']['id'] : '');
3198 // Post Image
3199 if($post_thumb_id || ($attr['fallbackEnable'] && $block_img_id)) {
3200 $post_loop .= ultimate_post()->get_image($block_img_id, $attr['imgCrop'], '', $title, $attr['imgSrcset'], $attr['imgLazy']);
3201 } else {
3202 $post_loop .= '<img src="'.$dummy_url.'" alt="dummy-img" />';
3203 }
3204 $post_loop .= '</a>';
3205 } else {
3206 if (($attr['layout'] == 'layout2') || ($attr['layout'] === 'layout3') || ($attr['layout'] === 'layout5')) {
3207 // Image
3208 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>';
3209 // Post Image Id
3210 $block_img_id = $post_thumb_id ? $post_thumb_id : ($attr['fallbackEnable'] && isset($attr['fallbackImg']['id']) ? $attr['fallbackImg']['id'] : '');
3211 // Post Image
3212 if($post_thumb_id || ($attr['fallbackEnable'] && $block_img_id)) {
3213 $post_loop .= ultimate_post()->get_image($block_img_id, $attr['imgCropSmall'], '', $title, $attr['imgSrcset'], $attr['imgLazy']);
3214 } else {
3215 $post_loop .= '<img src="'.$dummy_url.'" alt="dummy-img" />';
3216 }
3217 $post_loop .= '</a>';
3218 }
3219 if($post_video){
3220 $post_loop .= '<div enableAutoPlay="'.$attr['popupAutoPlay'].'" class="ultp-video-icon">'.ultimate_post()->svg_icon('play_line').'</div>';
3221 }
3222 }
3223 if (($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) {
3224 $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
3225 }
3226 $post_loop .= '</div>';
3227 if($post_video && $idx == 0){
3228 $post_loop .= '<div enableAutoPlay="'.$attr['popupAutoPlay'].'" class="ultp-video-icon">'.ultimate_post()->svg_icon('play_line').'</div>';
3229 }
3230 }
3231 $post_loop .= '<div class="ultp-block-content">';
3232 // Category
3233 if (($attr['catPosition'] == 'aboveTitle') && ($idx == 0 || $attr['showSmallCat'] ) && $attr['catShow']) {
3234 $post_loop .= $category;
3235 }
3236 // Title
3237 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) {
3238 include ULTP_PATH.'blocks/template/title.php';
3239 }
3240 // Meta
3241 if ($attr['metaPosition'] =='top' ) {
3242 include ULTP_PATH.'blocks/template/meta.php';
3243 }
3244 // Title
3245 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) {
3246 include ULTP_PATH.'blocks/template/title.php';
3247 }
3248 // Excerpt
3249 if (($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) {
3250 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>';
3251 }
3252
3253 // Read More
3254 if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) {
3255 $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>';
3256 }
3257 // Bottom
3258 if ($attr['metaPosition'] =='bottom' ) {
3259 include ULTP_PATH.'blocks/template/meta.php';
3260 }
3261 $post_loop .= '</div>';
3262 $post_loop .= '</div>';
3263 if($post_video && $attr['enablePopup'] && ($attr['layout'] != 'layout1' && $attr['layout'] != 'layout4' || $idx == 0)) {
3264 include ULTP_PATH.'blocks/template/video_popup.php';
3265 }
3266 $post_loop .= '</'.$attr['contentTag'].'>';
3267
3268 if ($idx == 0) {
3269 $bigloop = $post_loop;
3270 $post_loop = '';
3271 }
3272
3273 $idx ++;
3274 endwhile;
3275 if($attr['queryUnique']) {
3276 $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>";
3277 }
3278 $bigloop = '<div class="ultp-big-post-module2">'.$bigloop.'</div>';
3279 $post_loop = $bigloop.'<div class="ultp-small-post-module2">'.$post_loop.'</div>';
3280
3281 $wraper_after .= '</div>';//ultp-block-items-wrap
3282 $wraper_after .= '</div>';
3283 $wraper_after .= '</div>';
3284
3285 wp_reset_query();
3286 }else {
3287 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
3288 }
3289
3290 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
3291 }
3292
3293 }