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

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