PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.4.18
Post Grid Gutenberg Blocks – PostX v2.4.18
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.4.18, at blocks/Post_Module_2.php

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