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

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