PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.7.8
Post Grid Gutenberg Blocks – PostX v2.7.8
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.7.8, at blocks/Post_Module_2.php

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