PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.4
Post Grid Gutenberg Blocks – PostX v2.5.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_1.php

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

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