PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.2
Post Grid Gutenberg Blocks – PostX v2.5.2
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / blocks / Post_Module_1.php

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

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