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

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

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