PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.4.21
Post Grid Gutenberg Blocks – PostX v2.4.21
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.4.21, at blocks/Post_Module_1.php

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