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

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

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