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_1.php

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

2,990 lines 141.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ULTP\blocks;
3
4 defined('ABSPATH') || exit;
5
6 class Post_Module_1{
7
8 public function __construct() {
9 add_action('init', array($this, 'register'));
10 }
11
12 public function get_attributes($default = false) {
13
14 $attributes = array(
15 'blockId' => [
16 'type' => 'string',
17 'default' => '',
18 ],
19 'previewImg' => [
20 'type' => 'string',
21 'default' => '',
22 ],
23 //--------------------------
24 // Layout
25 //--------------------------
26 'layout' => [
27 'type' => 'string',
28 'default' => 'layout1',
29 ],
30
31 //--------------------------
32 // Query Setting
33 //--------------------------
34 'queryQuick' => [
35 'type' => 'string',
36 'default' => '',
37 'style' => [
38 (object)[
39 'depends' => [
40 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', '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-module1 { margin: 0 -{{columnGridGap}};} {{ULTP}} .ultp-block-post-module1 .ultp-big-post-module1, {{ULTP}} .ultp-block-post-module1 .ultp-small-post-module1 { padding: 0 {{columnGridGap}};} {{ULTP}} .ultp-block-row {grid-column-gap: {{columnGridGap}}; }'
464 ],
465 ],
466 ],
467 'largeHeight' => [
468 'type' => 'object',
469 'default' => (object)['lg' =>'245', 'unit' =>'px'],
470 'style' => [
471 (object)[
472 'selector'=>'{{ULTP}} .ultp-big-post-module1 .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 #1',
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'=>'', '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 ],
979 'subHeadingShow' => [
980 'type' => 'boolean',
981 'default' => false,
982 ],
983 'subHeadingText' => [
984 'type' => 'string',
985 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
986 'style' => [
987 (object)[
988 'depends' => [
989 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
990 ],
991 ],
992 ],
993 ],
994 'subHeadingTypo' => [
995 'type' => 'object',
996 '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'],
997 'style' => [
998 (object)[
999 'depends' => [
1000 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1001 ],
1002 'selector'=>'{{ULTP}} .ultp-sub-heading div'
1003 ],
1004 ],
1005 ],
1006 'subHeadingColor' => [
1007 'type' => 'string',
1008 'default' => '#989898',
1009 'style' => [
1010 (object)[
1011 'depends' => [
1012 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1013 ],
1014 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
1015 ],
1016 ],
1017 ],
1018 'subHeadingSpacing' => [
1019 'type' => 'object',
1020 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']],
1021 'style' => [
1022 (object)[
1023 'depends' => [
1024 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1025 ],
1026 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
1027 ],
1028 ],
1029 ],
1030
1031
1032 //--------------------------
1033 // Title Setting/Style
1034 //--------------------------
1035 'titleTag' => [
1036 'type' => 'string',
1037 'default' => 'h3',
1038 ],
1039 'titlePosition' => [
1040 'type' => 'boolean',
1041 'default' => true,
1042 ],
1043 'titleColor' => [
1044 'type' => 'string',
1045 'default' => '#0e1523',
1046 'style' => [
1047 (object)[
1048 'depends' => [
1049 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1050 ],
1051 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}} !important; }'
1052 ],
1053 ],
1054 ],
1055 'titleHoverColor' => [
1056 'type' => 'string',
1057 'default' => '#828282',
1058 'style' => [
1059 (object)[
1060 'depends' => [
1061 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1062 ],
1063 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }'
1064 ],
1065 ],
1066 ],
1067 'titleLgTypo' => [
1068 'type' => 'object',
1069 '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'],
1070 'style' => [
1071 (object)[
1072 'depends' => [
1073 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1074 ],
1075 'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-big-post-module1 .ultp-block-item:first-child .ultp-block-title a'
1076 ],
1077 ],
1078 ],
1079 'titleTypo' => [
1080 'type' => 'object',
1081 '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'],
1082 'style' => [
1083 (object)[
1084 'depends' => [
1085 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1086 ],
1087 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-title, {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-title a'
1088 ],
1089 ],
1090 ],
1091 'titlePadding' => [
1092 'type' => 'object',
1093 'default' => (object)['lg'=>(object)['top'=>0,'bottom'=>5, 'unit'=>'px']],
1094 'style' => [
1095 (object)[
1096 'depends' => [
1097 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1098 ],
1099 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
1100 ],
1101 ],
1102 ],
1103 'titleLgPadding' => [
1104 'type' => 'object',
1105 'default' => (object)['lg'=>(object)['top'=>10,'bottom'=>8, 'unit'=>'px']],
1106 'style' => [
1107 (object)[
1108 'depends' => [
1109 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1110 ],
1111 'selector'=>'{{ULTP}} .ultp-big-post-module1 .ultp-block-content .ultp-block-title { padding:{{titleLgPadding}}; }'
1112 ],
1113 ],
1114 ],
1115 'titleLength' => [
1116 'type' => 'string',
1117 'default' => 0,
1118 ],
1119
1120 //--------------------------
1121 // Content Setting/Style
1122 //--------------------------
1123
1124 'varticalAlign' => [
1125 'type' => 'string',
1126 'default' => 'middle',
1127 'style' => [
1128 (object)[
1129 'depends' => [
1130 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'top'],
1131 ],
1132 '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; }'
1133 ],
1134 (object)[
1135 'depends' => [
1136 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'middle'],
1137 ],
1138 'selector'=>'{{ULTP}} .ultp-block-content-middle .ultp-block-content { -ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center; }'
1139 ],
1140 (object)[
1141 'depends' => [
1142 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'bottom'],
1143 ],
1144 '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; }'
1145 ],
1146 ],
1147 ],
1148 'showSeoMeta' => [
1149 'type' => 'boolean',
1150 'default'=> false
1151 ],
1152 'showSmallExcerpt' => [
1153 'type' => 'boolean',
1154 'default'=> false,
1155 ],
1156 'showFullExcerpt' => [
1157 'type' => 'boolean',
1158 'default' => false,
1159 ],
1160 'excerptLimit' => [
1161 'type' => 'string',
1162 'default' => 20,
1163 'style' => [
1164 (object)[
1165 'depends' => [
1166 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false]
1167 ],
1168 ],
1169 ],
1170 ],
1171 'excerptColor' => [
1172 'type' => 'string',
1173 'default' => '#777',
1174 'style' => [
1175 (object)[
1176 'depends' => [
1177 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1178 ],
1179 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
1180 ],
1181 ],
1182 ],
1183 'excerptTypo' => [
1184 'type' => 'object',
1185 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1186 'style' => [
1187 (object)[
1188 'depends' => [
1189 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1190 ],
1191 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p'
1192 ],
1193 ],
1194 ],
1195 'excerptPadding' => [
1196 'type' => 'object',
1197 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => '', 'unit' =>'px']],
1198 'style' => [
1199 (object)[
1200 'depends' => [
1201 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1202 ],
1203 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
1204 ],
1205 ],
1206 ],
1207
1208 //--------------------------
1209 // Count Style Setting/Style
1210 //--------------------------
1211 'counterTypo' => [
1212 'type' => 'object',
1213 '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'=>'' ],
1214 'style' => [
1215 (object)[
1216 'depends' => [
1217 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1218 ],
1219 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before'
1220 ],
1221 ],
1222 ],
1223 'counterColor' => [
1224 'type' => 'string',
1225 'default' => '#828282',
1226 'style' => [
1227 (object)[
1228 'depends' => [
1229 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1230 ],
1231 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { color:{{counterColor}}; }'
1232 ],
1233 ]
1234 ],
1235 'counterBgColor' => [
1236 'type' => 'object',
1237 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1238 'style' => [
1239 (object)[
1240 'depends' => [
1241 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1242 ],
1243 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before'
1244 ],
1245 ],
1246 ],
1247 'counterWidth' => [
1248 'type' => 'string',
1249 'default' => '',
1250 'style' => [
1251 (object)[
1252 'depends' => [
1253 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1254 ],
1255 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { width:{{counterWidth}}px; }'
1256 ],
1257 ]
1258 ],
1259 'counterHeight' => [
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-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { height:{{counterHeight}}px; }'
1268 ],
1269 ]
1270 ],
1271 'counterBorder' => [
1272 'type' => 'object',
1273 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1274 'style' => [
1275 (object)[
1276 'depends' => [
1277 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1278 ],
1279 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before'
1280 ],
1281 ],
1282 ],
1283 'counterRadius' => [
1284 'type' => 'object',
1285 'default' => (object)['lg' =>'', 'unit' =>'px'],
1286 'style' => [
1287 (object)[
1288 'depends' => [
1289 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
1290 ],
1291 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout4 .ultp-small-post-module1 .ultp-block-content::before, {{ULTP}}.wp-block-ultimate-post-post-module-1 .ultp-layout5 .ultp-small-post-module1 .ultp-block-item::before { border-radius:{{counterRadius}}; }'
1292 ],
1293 ],
1294 ],
1295
1296 //--------------------------
1297 // Category Setting/Style
1298 //--------------------------
1299 'taxonomy' => [
1300 'type' => 'string',
1301 'default' => 'category'
1302 ],
1303 'showSmallCat' => [
1304 'type' => 'boolean',
1305 'default' => false,
1306 ],
1307 'catStyle' => [
1308 'type' => 'string',
1309 'default' => 'classic',
1310 ],
1311 'catPosition' => [
1312 'type' => 'string',
1313 'default' => 'aboveTitle',
1314 ],
1315 'customCatColor' => [
1316 'type' => 'boolean',
1317 'default' => false,
1318 ],
1319 'seperatorLink' => [
1320 'type' => 'string',
1321 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
1322 'style' => [
1323 (object)[
1324 'depends' => [
1325 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1326 ]
1327 ]
1328 ]
1329 ],
1330 'onlyCatColor' => [
1331 'type' => 'boolean',
1332 'default' => false,
1333 'style' => [
1334 (object)[
1335 'depends' => [
1336 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1337 ]
1338 ]
1339 ]
1340 ],
1341 'catLineWidth' => [
1342 'type' => 'object',
1343 'default' => (object)['lg'=>'20'],
1344 'style' => [
1345 (object)[
1346 'depends' => [
1347 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1348 ],
1349 '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; }'
1350 ],
1351 ]
1352 ],
1353 'catLineSpacing' => [
1354 'type' => 'object',
1355 'default' => (object)['lg'=>'30'],
1356 'style' => [
1357 (object)[
1358 'depends' => [
1359 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1360 ],
1361 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1362 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1363 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1364 ],
1365 ]
1366 ],
1367 'catLineColor' => [
1368 'type' => 'string',
1369 'default' => '#828282',
1370 'style' => [
1371 (object)[
1372 'depends' => [
1373 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1374 ],
1375 '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}}; }'
1376 ],
1377 ]
1378 ],
1379 'catLineHoverColor' => [
1380 'type' => 'string',
1381 'default' => '#037fff',
1382 'style' => [
1383 (object)[
1384 'depends' => [
1385 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1386 ],
1387 '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}}; }'
1388 ],
1389 ]
1390 ],
1391 'catTypo' => [
1392 'type' => 'object',
1393 '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'=>'' ],
1394 'style' => [
1395 (object)[
1396 'depends' => [
1397 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1398 ],
1399 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
1400 ],
1401 ],
1402 ],
1403 'catColor' => [
1404 'type' => 'string',
1405 'default' => '#037fff',
1406 'style' => [
1407 (object)[
1408 'depends' => [
1409 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1410 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1411 ],
1412 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1413 ],
1414 ],
1415 ],
1416 'catBgColor' => [
1417 'type' => 'object',
1418 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1419 'style' => [
1420 (object)[
1421 'depends' => [
1422 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1423 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1424 ],
1425 'selector'=>'{{ULTP}} .ultp-category-grid a'
1426 ],
1427 ],
1428 ],
1429 'catBorder' => [
1430 'type' => 'object',
1431 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1432 'style' => [
1433 (object)[
1434 'depends' => [
1435 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1436 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1437 ],
1438 'selector'=>'{{ULTP}} .ultp-category-grid a'
1439 ],
1440 ],
1441 ],
1442 'catRadius' => [
1443 'type' => 'object',
1444 'default' => (object)['lg' =>'', 'unit' =>'px'],
1445 'style' => [
1446 (object)[
1447 'depends' => [
1448 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1449 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1450 ],
1451 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1452 ],
1453 ],
1454 ],
1455 'catHoverColor' => [
1456 'type' => 'string',
1457 'default' => '#828282',
1458 'style' => [
1459 (object)[
1460 'depends' => [
1461 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1462 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1463 ],
1464 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1465 ],
1466 ],
1467 ],
1468 'catBgHoverColor' => [
1469 'type' => 'object',
1470 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => ''],
1471 'style' => [
1472 (object)[
1473 'depends' => [
1474 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1475 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1476 ],
1477 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1478 ],
1479 ],
1480 ],
1481 'catHoverBorder' => [
1482 'type' => 'object',
1483 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1484 'style' => [
1485 (object)[
1486 'depends' => [
1487 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1488 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1489 ],
1490 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1491 ],
1492 ],
1493 ],
1494 'catSacing' => [
1495 'type' => 'object',
1496 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1497 'style' => [
1498 (object)[
1499 'depends' => [
1500 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1501 ],
1502 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1503 ],
1504 ],
1505 ],
1506 'catPadding' => [
1507 'type' => 'object',
1508 'default' => (object)['lg' =>(object)['unit' =>'px']],
1509 'style' => [
1510 (object)[
1511 'depends' => [
1512 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1513 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1514 ],
1515 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1516 ],
1517 ],
1518 ],
1519
1520 //--------------------------
1521 // Meta Setting/Style
1522 //--------------------------
1523 'showSmallMeta' => [
1524 'type' => 'boolean',
1525 'default' => true,
1526 ],
1527 'metaPosition' => [
1528 'type' => 'string',
1529 'default' => 'top',
1530 ],
1531 'metaStyle' => [
1532 'type' => 'string',
1533 'default' => 'icon',
1534 ],
1535 'authorLink' => [
1536 'type' => 'boolean',
1537 'default' => true,
1538 ],
1539 'metaSeparator' => [
1540 'type' => 'string',
1541 'default' => 'dot',
1542 ],
1543 'metaList' => [
1544 'type' => 'string',
1545 'default' => '["metaAuthor","metaDate","metaRead"]',
1546 ],
1547 'metaMinText' => [
1548 'type' => 'string',
1549 'default' => 'min read',
1550 ],
1551 'metaAuthorPrefix' => [
1552 'type' => 'string',
1553 'default' => 'By',
1554 ],
1555 'metaDateFormat' => [
1556 'type' => 'string',
1557 'default' => 'M j, Y',
1558 ],
1559 'metaListSmall' => [
1560 'type' => 'string',
1561 'default' => '["metaAuthor","metaDate"]',
1562 ],
1563 'metaTypo' => [
1564 'type' => 'object',
1565 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1566 'style' => [
1567 (object)[
1568 'depends' => [
1569 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1570 ],
1571 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1572 ],
1573 ],
1574 ],
1575 'metaColor' => [
1576 'type' => 'string',
1577 'default' => '#989898',
1578 'style' => [
1579 (object)[
1580 'depends' => [
1581 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1582 ],
1583 '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}}; }'
1584 ],
1585 ],
1586 ],
1587 'metaHoverColor' => [
1588 'type' => 'string',
1589 'default' => '#000',
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 a:hover { color: {{metaHoverColor}}; }'
1596 ],
1597 ],
1598 ],
1599 'metaSpacing' => [
1600 'type' => 'object',
1601 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1602 'style' => [
1603 (object)[
1604 'depends' => [
1605 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1606 ],
1607 '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}}; }'
1608 ],
1609 (object)[
1610 'depends' => [
1611 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1612 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1613 ],
1614 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}'
1615 ],
1616 ],
1617 ],
1618 'metaMargin' => [
1619 'type' => 'object',
1620 'default' => (object)['lg' =>(object)['top' => '','bottom' => '0', 'left'=>'','right'=>'', 'unit' =>'px']],
1621 'style' => [
1622 (object)[
1623 'depends' => [
1624 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1625 ],
1626 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1627 ],
1628 ],
1629 ],
1630 'metaPadding' => [
1631 'type' => 'object',
1632 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1633 'style' => [
1634 (object)[
1635 'depends' => [
1636 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1637 ],
1638 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1639 ],
1640 ],
1641 ],
1642 'metaBorder' => [
1643 'type' => 'object',
1644 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1645 'style' => [
1646 (object)[
1647 'depends' => [
1648 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1649 ],
1650 'selector'=>'{{ULTP}} .ultp-block-meta'
1651 ],
1652 ],
1653 ],
1654 'metaBg' => [
1655 'type' => 'string',
1656 'default' => '',
1657 'style' => [
1658 (object)[
1659 'depends' => [
1660 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1661 ],
1662 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1663 ],
1664 ],
1665 ],
1666
1667
1668 //--------------------------
1669 // Inner Content Setting/Style
1670 //--------------------------
1671 'contentAlign' => [
1672 'type' => 'string',
1673 'default' => "left",
1674 'style' => [
1675 (object)[
1676 'depends' => [
1677 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
1678 ],
1679 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
1680 ],
1681 (object)[
1682 'depends' => [
1683 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
1684 ],
1685 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
1686 ],
1687 (object)[
1688 'depends' => [
1689 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1690 ],
1691 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;}'
1692 ],
1693 (object)[
1694 'depends' => [
1695 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1696 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1697 ],
1698 'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}'
1699 ],
1700 ],
1701 ],
1702 'contentWrapBg' => [
1703 'type' => 'string',
1704 'default' => '',
1705 'style' => [
1706 (object)[
1707 'selector'=>'{{ULTP}} .ultp-block-content-wrap { background:{{contentWrapBg}}; }'
1708 ],
1709 ],
1710 ],
1711 'contentWrapHoverBg' => [
1712 'type' => 'string',
1713 'style' => [
1714 (object)[
1715 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { background:{{contentWrapHoverBg}}; }'
1716 ],
1717 ],
1718 ],
1719 'contentWrapBorder' => [
1720 'type' => 'object',
1721 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1722 'style' => [
1723 (object)[
1724 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1725 ],
1726 ],
1727 ],
1728 'contentWrapHoverBorder' => [
1729 'type' => 'object',
1730 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1731 'style' => [
1732 (object)[
1733 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1734 ],
1735 ],
1736 ],
1737 'contentWrapRadius' => [
1738 'type' => 'object',
1739 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1740 'style' => [
1741 (object)[
1742 'selector'=>'{{ULTP}} .ultp-block-content-wrap { border-radius: {{contentWrapRadius}}; }'
1743 ],
1744 ],
1745 ],
1746 'contentWrapHoverRadius' => [
1747 'type' => 'object',
1748 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1749 'style' => [
1750 (object)[
1751 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { border-radius: {{contentWrapHoverRadius}}; }'
1752 ],
1753 ],
1754 ],
1755 'contentWrapShadow' => [
1756 'type' => 'object',
1757 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1758 'style' => [
1759 (object)[
1760 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1761 ],
1762 ],
1763 ],
1764 'contentWrapHoverShadow' => [
1765 'type' => 'object',
1766 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1767 'style' => [
1768 (object)[
1769 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1770 ],
1771 ],
1772 ],
1773
1774 'contentWrapInnerPadding' => [
1775 'type' => 'object',
1776 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1777 'style' => [
1778 (object)[
1779 'selector'=>'{{ULTP}} .ultp-block-content { padding: {{contentWrapInnerPadding}}; }'
1780 ],
1781 ],
1782 ],
1783 'contentWrapPadding' => [
1784 'type' => 'object',
1785 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1786 'style' => [
1787 (object)[
1788 'selector'=>'{{ULTP}} .ultp-block-content-wrap { padding: {{contentWrapPadding}}; }'
1789 ],
1790 ],
1791 ],
1792
1793
1794 //--------------------------
1795 // Image Setting/Style
1796 //--------------------------
1797 'columnFlip' => [
1798 'type' => 'boolean',
1799 'default' => false,
1800 ],
1801 'imgCrop' => [
1802 'type' => 'string',
1803 'default' => 'full',
1804 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => true]]
1805 ],
1806 'imgCropSmall' => [
1807 'type' => 'string',
1808 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'),
1809 'style' => [
1810 (object)[
1811 'depends' => [
1812 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1813 (object)['key' => 'showImage','condition' => '==','value' => true]
1814 ],
1815 ],
1816 ],
1817 ],
1818 'imgWidth' => [
1819 'type' => 'object',
1820 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'ulg' =>'px', 'usm' =>'px'],
1821 'style' => [
1822 (object)[
1823 'depends' => [
1824 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1825 ],
1826 'depends' => [
1827 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1828 ],
1829 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }'
1830 ],
1831 ],
1832 ],
1833 'imgHeight' => [
1834 'type' => 'object',
1835 'default' => (object)['lg' =>'', 'unit' =>'px'],
1836 'style' => [
1837 (object)[
1838 'depends' => [
1839 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1840 ],
1841 'depends' => [
1842 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1843 ],
1844 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {height: {{imgHeight}}; }'
1845 ],
1846 ],
1847 ],
1848 'imageScale' => [
1849 'type' => 'string',
1850 'default' => 'cover',
1851 'style' => [
1852 (object)[
1853 'depends' => [
1854 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1855 (object)['key'=>'layout','condition'=>'!=','value'=> "layout1"],
1856 ],
1857 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image img {object-fit: {{imageScale}};}'
1858 ],
1859 ],
1860 ],
1861 'imgAnimation' => [
1862 'type' => 'string',
1863 'default' => 'opacity',
1864 ],
1865 'imgGrayScale' => [
1866 'type' => 'object',
1867 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1868 'style' => [
1869 (object)[
1870 'depends' => [
1871 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1872 ],
1873 'selector'=>'{{ULTP}} .ultp-block-image { filter: grayscale({{imgGrayScale}}); }'
1874 ],
1875 ],
1876 ],
1877 'imgHoverGrayScale' => [
1878 'type' => 'object',
1879 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1880 'style' => [
1881 (object)[
1882 'depends' => [
1883 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1884 ],
1885 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { filter: grayscale({{imgHoverGrayScale}}); }'
1886 ],
1887 ],
1888 ],
1889 'imgRadius' => [
1890 'type' => 'object',
1891 'default' => (object)['lg' =>'', 'unit' =>'px'],
1892 'style' => [
1893 (object)[
1894 'depends' => [
1895 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1896 ],
1897 'selector'=>'{{ULTP}} .ultp-block-image img, {{ULTP}} .ultp-block-image.ultp-block-image-overlay >a:before, {{ULTP}} .ultp-block-image.ultp-block-image-overlay >a:after{ border-radius:{{imgRadius}}; }'
1898 ],
1899 ],
1900 ],
1901 'imgHoverRadius' => [
1902 'type' => 'object',
1903 'default' => (object)['lg' =>'', 'unit' =>'px'],
1904 'style' => [
1905 (object)[
1906 'depends' => [
1907 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1908 ],
1909 'selector'=>' {{ULTP}} .ultp-block-item:hover .ultp-block-image img, {{ULTP}} .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
1910 { border-radius:{{imgHoverRadius}}; }'
1911 ],
1912 ],
1913 ],
1914 'imgShadow' => [
1915 'type' => 'object',
1916 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1917 'style' => [
1918 (object)[
1919 'depends' => [
1920 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1921 ],
1922 'selector'=>'{{ULTP}} .ultp-block-image'
1923 ],
1924 ],
1925 ],
1926 'imgHoverShadow' => [
1927 'type' => 'object',
1928 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1929 'style' => [
1930 (object)[
1931 'depends' => [
1932 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1933 ],
1934 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1935 ],
1936 ],
1937 ],
1938 'imgSpacing' => [
1939 'type' => 'object',
1940 'default' => (object)['lg'=>'20'],
1941 'style' => [
1942 (object)[
1943 'depends' => [
1944 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1945 (object)['key'=>'layout','condition'=>'!=','value'=>'layout2'],
1946 (object)['key'=>'layout','condition'=>'!=','value'=>'layout1'],
1947 ],
1948 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-right: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-right: 0; margin-left: {{imgSpacing}}px; }'
1949 ],
1950 (object)[
1951 'depends' => [
1952 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1953 (object)['key'=>'layout','condition'=>'==','value'=>'layout2'],
1954 ],
1955 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-left: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module1 .ultp-block-item .ultp-block-image { margin-left: 0; margin-right: {{imgSpacing}}px; }'
1956 ],
1957 ],
1958 ],
1959 'imgOverlay' => [
1960 'type' => 'boolean',
1961 'default' => false,
1962 ],
1963 'imgOverlayType' => [
1964 'type' => 'string',
1965 'default' => 'default',
1966 'style' => [
1967 (object)[
1968 'depends' => [
1969 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1970 ]
1971 ],
1972 ]
1973 ],
1974 'overlayColor' => [
1975 'type' => 'object',
1976 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1977 'style' => [
1978 (object)[
1979 'depends' => [
1980 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1981 ],
1982 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1983 ],
1984 ],
1985
1986 ],
1987 'imgOpacity' => [
1988 'type' => 'string',
1989 'default' => .7,
1990 'style' => [
1991 (object)[
1992 'depends' => [
1993 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1994 ],
1995 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1996 ],
1997 ],
1998 ],
1999 'imgSrcset' => [
2000 'type' => 'boolean',
2001 'default' => false,
2002 ],
2003 'imgLazy' => [
2004 'type' => 'boolean',
2005 'default' => false,
2006 ],
2007
2008 //--------------------------
2009 // Separator
2010 //--------------------------
2011 'separatorShow' => [
2012 'type' => 'boolean',
2013 'default' => false,
2014 ],
2015 'septColor' => [
2016 'type' => 'string',
2017 'default' => '#e5e5e5',
2018 'style' => [
2019 (object)[
2020 'depends' => [
2021 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2022 ],
2023 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-color:{{septColor}}; }'
2024 ],
2025 ],
2026 ],
2027 'septStyle' => [
2028 'type' => 'string',
2029 'default' => 'dashed',
2030 'style' => [
2031 (object)[
2032 'depends' => [
2033 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2034 ],
2035 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-style:{{septStyle}}; }'
2036 ],
2037 ],
2038 ],
2039 'septSize' => [
2040 'type' => 'string',
2041 'default' => (object)['lg'=>'1'],
2042 'style' => [
2043 (object)[
2044 'depends' => [
2045 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2046 ],
2047 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { border-bottom-width: {{septSize}}px; }'
2048 ],
2049 ],
2050 ],
2051 'septSpace' => [
2052 'type' => 'object',
2053 'default' => (object)['lg'=>'15'],
2054 'style' => [
2055 (object)[
2056 'selector'=>'{{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { padding-bottom: {{septSpace}}px; } {{ULTP}} .ultp-small-post-module1 .ultp-block-item:not(:last-child) { margin-bottom: {{septSpace}}px; }'
2057 ],
2058 ],
2059 ],
2060
2061 //--------------------------
2062 // Read more Setting/Style
2063 //--------------------------
2064 'showSmallBtn' => [
2065 'type' => 'boolean',
2066 'default' => false,
2067 ],
2068 'readMoreText' => [
2069 'type' => 'string',
2070 'default' => ''
2071 ],
2072 'readMoreIcon' => [
2073 'type' => 'string',
2074 'default' => 'rightArrowLg',
2075 ],
2076 'readMoreTypo' => [
2077 'type' => 'object',
2078 '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'=>'' ],
2079 'style' => [
2080 (object)[
2081 'depends' => [
2082 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2083 ],
2084 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
2085 ],
2086 ],
2087 ],
2088 'readMoreIconSize' => [
2089 'type' => 'object',
2090 'default' => (object)['lg' =>'', 'unit' =>'px'],
2091 'style' => [
2092 (object)[
2093 'depends' => [
2094 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2095 ],
2096 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
2097 ],
2098 ]
2099 ],
2100 'readMoreColor' => [
2101 'type' => 'string',
2102 'default' => '#0d1523',
2103 'style' => [
2104 (object)[
2105 'depends' => [
2106 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2107 ],
2108 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
2109 ],
2110 ],
2111 ],
2112 'readMoreBgColor' => [
2113 'type' => 'object',
2114 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''],
2115 'style' => [
2116 (object)[
2117 'depends' => [
2118 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2119 ],
2120 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2121 ],
2122 ],
2123 ],
2124 'readMoreBorder' => [
2125 'type' => 'object',
2126 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2127 'style' => [
2128 (object)[
2129 'depends' => [
2130 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2131 ],
2132 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2133 ],
2134 ],
2135 ],
2136 'readMoreRadius' => [
2137 'type' => 'object',
2138 'default' => (object)['lg' =>'', 'unit' =>'px'],
2139 'style' => [
2140 (object)[
2141 'depends' => [
2142 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2143 ],
2144 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
2145 ],
2146 ],
2147 ],
2148 'readMoreHoverColor' => [
2149 'type' => 'string',
2150 'default' => '#0c32d8',
2151 'style' => [
2152 (object)[
2153 'depends' => [
2154 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2155 ],
2156 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
2157 ],
2158 ],
2159 ],
2160 'readMoreBgHoverColor' => [
2161 'type' => 'object',
2162 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''],
2163 'style' => [
2164 (object)[
2165 'depends' => [
2166 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2167 ],
2168 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2169 ],
2170 ],
2171 ],
2172 'readMoreHoverBorder' => [
2173 'type' => 'object',
2174 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2175 'style' => [
2176 (object)[
2177 'depends' => [
2178 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2179 ],
2180 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2181 ],
2182 ],
2183 ],
2184 'readMoreHoverRadius' => [
2185 'type' => 'object',
2186 'default' => (object)['lg' =>'', 'unit' =>'px'],
2187 'style' => [
2188 (object)[
2189 'depends' => [
2190 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2191 ],
2192 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
2193 ],
2194 ],
2195 ],
2196 'readMoreSacing' => [
2197 'type' => 'object',
2198 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2199 'style' => [
2200 (object)[
2201 'depends' => [
2202 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2203 ],
2204 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
2205 ],
2206 ],
2207 ],
2208 'readMorePadding' => [
2209 'type' => 'object',
2210 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2211 'style' => [
2212 (object)[
2213 'depends' => [
2214 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2215 ],
2216 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
2217 ],
2218 ],
2219 ],
2220
2221 //--------------------------
2222 // Filter Setting/Style
2223 //--------------------------
2224 'filterBelowTitle' => [
2225 'type' => 'boolean',
2226 'default' => false,
2227 'style' => [
2228 (object)[
2229 'depends' => [
2230 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2231 ],
2232 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { position: relative; display: block; margin: auto 0 0 0; height: auto;}'
2233 ],
2234 ],
2235 ],
2236 'filterAlign' => [
2237 'type' => 'object',
2238 'default' => (object)['lg' =>''],
2239 'style' => [
2240 (object)[
2241 'depends' => [
2242 (object)['key'=>'filterBelowTitle','condition'=>'==','value'=>true],
2243 ],
2244 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { text-align:{{filterAlign}}; }'
2245 ],
2246 ],
2247 ],
2248 'filterType' => [
2249 'type' => 'string',
2250 'default' => 'category'
2251 ],
2252 'filterText' => [
2253 'type' => 'string',
2254 'default' => 'all'
2255 ],
2256 'filterValue' => [
2257 'type' => 'string',
2258 'default' => '[]',
2259 'style' => [
2260 (object)[
2261 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
2262 ],
2263 ],
2264 ],
2265 'fliterTypo' => [
2266 'type' => 'object',
2267 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>22, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
2268 'style' => [
2269 (object)[
2270 'depends' => [
2271 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2272 ],
2273 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a'
2274 ],
2275 ],
2276 ],
2277 'filterColor' => [
2278 'type' => 'string',
2279 'default' => '#0e1523',
2280 'style' => [
2281 (object)[
2282 'depends' => [
2283 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2284 ],
2285 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; }{{ULTP}} .flexMenu-viewMore a:before { border-color:{{filterColor}}}'
2286 ],
2287 ],
2288 ],
2289 'filterHoverColor' => [
2290 'type' => 'string',
2291 'default' => '#828282',
2292 'style' => [
2293 (object)[
2294 'depends' => [
2295 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2296 ],
2297 '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}}}'
2298 ],
2299 ],
2300 ],
2301 'filterBgColor' => [
2302 'type' => 'string',
2303 'style' => [
2304 (object)[
2305 'depends' => [
2306 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2307 ],
2308 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
2309 ],
2310 ],
2311 ],
2312 'filterHoverBgColor' => [
2313 'type' => 'string',
2314 'style' => [
2315 (object)[
2316 'depends' => [
2317 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2318 ],
2319 '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}}; }'
2320 ],
2321 ],
2322 ],
2323 'filterBorder' => [
2324 'type' => 'object',
2325 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2326 'style' => [
2327 (object)[
2328 'depends' => [
2329 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2330 ],
2331 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a'
2332 ],
2333 ],
2334 ],
2335 'filterHoverBorder' => [
2336 'type' => 'object',
2337 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2338 'style' => [
2339 (object)[
2340 'depends' => [
2341 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2342 ],
2343 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover'
2344 ],
2345 ],
2346 ],
2347 'filterRadius' => [
2348 'type' => 'object',
2349 'default' => (object)['lg' =>'', 'unit' =>'px'],
2350 'style' => [
2351 (object)[
2352 'depends' => [
2353 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2354 ],
2355 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }'
2356 ],
2357 ],
2358 ],
2359 'fliterSpacing' => [
2360 'type' => 'object',
2361 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
2362 'style' => [
2363 (object)[
2364 'depends' => [
2365 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2366 ],
2367 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
2368 ],
2369 ],
2370 ],
2371 'fliterPadding' => [
2372 'type' => 'object',
2373 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2374 'style' => [
2375 (object)[
2376 'depends' => [
2377 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2378 ],
2379 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a, {{ULTP}} .ultp-filter-wrap .flexMenu-viewMore > a { padding:{{fliterPadding}}; }'
2380 ],
2381 ],
2382 ],
2383 'filterDropdownColor' => [
2384 'type' => 'string',
2385 'default' => '#0e1523',
2386 'style' => [
2387 (object)[
2388 'depends' => [
2389 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2390 ],
2391 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
2392 ],
2393 ],
2394 ],
2395 'filterDropdownHoverColor' => [
2396 'type' => 'string',
2397 'default' => '#037fff',
2398 'style' => [
2399 (object)[
2400 'depends' => [
2401 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2402 ],
2403 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }'
2404 ],
2405 ],
2406 ],
2407 'filterDropdownBg' => [
2408 'type' => 'string',
2409 'default' => '#fff',
2410 'style' => [
2411 (object)[
2412 'depends' => [
2413 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2414 ],
2415 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }'
2416 ],
2417 ],
2418 ],
2419 'filterDropdownRadius' => [
2420 'type' => 'object',
2421 'default' => (object)['lg'=>'0'],
2422 'style' => [
2423 (object)[
2424 'depends' => [
2425 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2426 ],
2427 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }'
2428 ],
2429 ],
2430 ],
2431 'filterDropdownPadding' => [
2432 'type' => 'object',
2433 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
2434 'style' => [
2435 (object)[
2436 'depends' => [
2437 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2438 ],
2439 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }'
2440 ],
2441 ],
2442 ],
2443 'filterMobile' => [
2444 'type' => 'boolean',
2445 'default' => true,
2446 ],
2447 'filterMobileText' => [
2448 'type' => 'string',
2449 'default' => 'More',
2450 'style' => [
2451 (object)[
2452 'depends' => [
2453 (object)['key'=>'filterMobile','condition'=>'==','value'=>true],
2454 ]
2455 ]
2456 ]
2457 ],
2458
2459 //--------------------------
2460 // Pagination Setting/Style
2461 //--------------------------
2462 'paginationType' => [
2463 'type' => 'string',
2464 'default' => 'navigation',
2465 ],
2466 'paginationNav' => [
2467 'type' => 'string',
2468 'default' => 'textArrow',
2469 'style' => [
2470 (object)[
2471 'depends' => [
2472 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
2473 ],
2474 ],
2475 ],
2476 ],
2477 'navPosition' => [
2478 'type' => 'string',
2479 'default' => 'topRight',
2480 'style' => [
2481 (object)[
2482 'depends' => [
2483 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2484 ],
2485 ],
2486 ],
2487 ],
2488 'pagiAlign' => [
2489 'type' => 'object',
2490 'default' => (object)['lg' =>'left'],
2491 'style' => [
2492 (object)[
2493 'depends' => [
2494 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2495 ],
2496 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
2497 ],
2498 ],
2499 ],
2500 'pagiTypo' => [
2501 'type' => 'object',
2502 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2503 'style' => [
2504 (object)[
2505 'depends' => [
2506 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2507 ],
2508 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-loadmore-action'
2509 ],
2510 ],
2511
2512 ],
2513 'pagiArrowSize' => [
2514 'type' => 'object',
2515 'default' => (object)['lg'=>'14'],
2516 'style' => [
2517 (object)[
2518 'depends' => [
2519 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2520 ],
2521 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }'
2522 ],
2523 ],
2524
2525 ],
2526 'pagiColor' => [
2527 'type' => 'string',
2528 'default' => '#fff',
2529 'style' => [
2530 (object)[
2531 'depends' => [
2532 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2533 ],
2534 '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}}; }'
2535 ],
2536 ],
2537 ],
2538 'pagiBgColor' => [
2539 'type' => 'object',
2540 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
2541 'style' => [
2542 (object)[
2543 'depends' => [
2544 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2545 ],
2546 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
2547 ],
2548 ],
2549 ],
2550 'pagiBorder' => [
2551 'type' => 'object',
2552 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2553 'style' => [
2554 (object)[
2555 'depends' => [
2556 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2557 ],
2558 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2559 ],
2560 ],
2561 ],
2562 'pagiShadow' => [
2563 'type' => 'object',
2564 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2565 'style' => [
2566 (object)[
2567 'depends' => [
2568 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2569 ],
2570 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2571 ],
2572 ],
2573 ],
2574 'pagiRadius' => [
2575 'type' => 'object',
2576 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2577 'style' => [
2578 (object)[
2579 'depends' => [
2580 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2581 ],
2582 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }'
2583 ],
2584 ],
2585 ],
2586 'pagiHoverColor' => [
2587 'type' => 'string',
2588 'default' => '#fff',
2589 'style' => [
2590 (object)[
2591 'depends' => [
2592 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2593 ],
2594 '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}};}}'
2595 ],
2596 ],
2597 ],
2598 'pagiHoverbg' => [
2599 'type' => 'object',
2600 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1],
2601 'style' => [
2602 (object)[
2603 'depends' => [
2604 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2605 ],
2606 '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}} }'
2607 ],
2608 ],
2609 ],
2610 'pagiHoverBorder' => [
2611 'type' => 'object',
2612 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2613 'style' => [
2614 (object)[
2615 'depends' => [
2616 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2617 ],
2618 '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'
2619 ],
2620 ],
2621 ],
2622 'pagiHoverShadow' => [
2623 'type' => 'object',
2624 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2625 'style' => [
2626 (object)[
2627 'depends' => [
2628 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2629 ],
2630 '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'
2631 ],
2632 ],
2633 ],
2634 'pagiHoverRadius' => [
2635 'type' => 'object',
2636 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2637 'style' => [
2638 (object)[
2639 'depends' => [
2640 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2641 ],
2642 '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}}; }'
2643 ],
2644 ],
2645 ],
2646 'pagiPadding' => [
2647 'type' => 'object',
2648 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
2649 'style' => [
2650 (object)[
2651 'depends' => [
2652 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2653 ],
2654 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
2655 ],
2656 ],
2657 ],
2658 'navMargin' => [
2659 'type' => 'object',
2660 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
2661 'style' => [
2662 (object)[
2663 'depends' => [
2664 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2665 ],
2666 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
2667 ],
2668 ],
2669 ],
2670
2671 //--------------------------
2672 // Wrapper Style
2673 //--------------------------
2674 'loadingColor' => [
2675 'type' => 'string',
2676 'default' => '#000',
2677 'style' => [
2678 (object)[
2679 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }'
2680 ],
2681 ],
2682 ],
2683 'wrapBg' => [
2684 'type' => 'object',
2685 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2686 'style' => [
2687 (object)[
2688 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2689 ],
2690 ],
2691 ],
2692 'wrapBorder' => [
2693 'type' => 'object',
2694 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2695 'style' => [
2696 (object)[
2697 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2698 ],
2699 ],
2700 ],
2701 'wrapShadow' => [
2702 'type' => 'object',
2703 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2704 'style' => [
2705 (object)[
2706 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2707 ],
2708 ],
2709 ],
2710 'wrapRadius' => [
2711 'type' => 'object',
2712 'default' => (object)['lg' =>'', 'unit' =>'px'],
2713 'style' => [
2714 (object)[
2715 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2716 ],
2717 ],
2718 ],
2719 'wrapHoverBackground' => [
2720 'type' => 'object',
2721 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2722 'style' => [
2723 (object)[
2724 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2725 ],
2726 ],
2727 ],
2728 'wrapHoverBorder' => [
2729 'type' => 'object',
2730 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2731 'style' => [
2732 (object)[
2733 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2734 ],
2735 ],
2736 ],
2737 'wrapHoverRadius' => [
2738 'type' => 'object',
2739 'default' => (object)['lg' =>'', 'unit' =>'px'],
2740 'style' => [
2741 (object)[
2742 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2743 ],
2744 ],
2745 ],
2746 'wrapHoverShadow' => [
2747 'type' => 'object',
2748 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2749 'style' => [
2750 (object)[
2751 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2752 ],
2753 ],
2754 ],
2755 'wrapMargin' => [
2756 'type' => 'object',
2757 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2758 'style' => [
2759 (object)[
2760 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2761 ],
2762 ],
2763 ],
2764 'wrapOuterPadding' => [
2765 'type' => 'object',
2766 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
2767 'style' => [
2768 (object)[
2769 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2770 ],
2771 ],
2772 ],
2773 'wrapInnerPadding' => [
2774 'type' => 'object',
2775 'default' => (object)['lg' =>(object)['unit' =>'px']],
2776 'style' => [
2777 (object)[
2778 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
2779 ],
2780 ],
2781 ],
2782 'advanceId' => [
2783 'type' => 'string',
2784 'default' => '',
2785 ],
2786 'advanceZindex' => [
2787 'type' => 'string',
2788 'default' => '',
2789 'style' => [
2790 (object)[
2791 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}'
2792 ],
2793 ],
2794 ],
2795 'hideExtraLarge' => [
2796 'type' => 'boolean',
2797 'default' => false,
2798 'style' => [
2799 (object)[
2800 'selector' => '{{ULTP}} {display:none;}'
2801 ],
2802 ],
2803 ],
2804 'hideTablet' => [
2805 'type' => 'boolean',
2806 'default' => false,
2807 'style' => [
2808 (object)[
2809 'selector' => '{{ULTP}} {display:none;}'
2810 ],
2811 ],
2812 ],
2813 'hideMobile' => [
2814 'type' => 'boolean',
2815 'default' => false,
2816 'style' => [
2817 (object)[
2818 'selector' => '{{ULTP}} {display:none;}'
2819 ],
2820 ],
2821 ],
2822 'advanceCss' => [
2823 'type' => 'string',
2824 'default' => '',
2825 'style' => [(object)['selector' => '']],
2826 ]
2827 );
2828
2829 if ($default) {
2830 $temp = array();
2831 foreach ($attributes as $key => $value) {
2832 if (isset($value['default'])) {
2833 $temp[$key] = $value['default'];
2834 }
2835 }
2836 return $temp;
2837 } else {
2838 return $attributes;
2839 }
2840 }
2841
2842 public function register() {
2843 register_block_type( 'ultimate-post/post-module-1',
2844 array(
2845 'editor_script' => 'ultp-blocks-editor-script',
2846 'editor_style' => 'ultp-blocks-editor-css',
2847 'attributes' => $this->get_attributes(),
2848 'render_callback' => array($this, 'content')
2849 )
2850 );
2851 }
2852
2853 public function content($attr, $noAjax) {
2854 global $unique_ID;
2855 if (!$noAjax) {
2856 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2857 $attr['paged'] = $paged ? $paged : 1;
2858 }
2859
2860 $bigloop = '';
2861 $block_name = 'post-module-1';
2862 $page_post_id = ultimate_post()->get_ID();
2863 $wraper_before = $wraper_after = $post_loop = '';
2864 $attr['queryNumber'] = ultimate_post()->get_post_number(5, $attr['queryNumber'], $attr['queryNumPosts']);
2865 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
2866 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
2867
2868 if ($recent_posts->have_posts()) {
2869
2870 $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"]:'').'">';
2871 $wraper_before .= '<div class="ultp-block-wrapper">';
2872
2873 // Loading
2874 $wraper_before .= ultimate_post()->loading();
2875
2876 if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
2877 $wraper_before .= '<div class="ultp-heading-filter">';
2878 $wraper_before .= '<div class="ultp-heading-filter-in">';
2879
2880 // Heading
2881 include ULTP_PATH.'blocks/template/heading.php';
2882
2883 if ($attr['filterShow'] || $attr['paginationShow']) {
2884 $wraper_before .= '<div class="ultp-filter-navigation">';
2885 // Filter
2886 if($attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts') {
2887 include ULTP_PATH.'blocks/template/filter.php';
2888 }
2889 // Navigation
2890 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
2891 include ULTP_PATH.'blocks/template/navigation-before.php';
2892 }
2893 $wraper_before .= '</div>';
2894 }
2895
2896 $wraper_before .= '</div>';
2897 $wraper_before .= '</div>';
2898 }
2899
2900 $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-post-module1 ultp-block-content-'.$attr['varticalAlign'].' ultp-block-content-'.($attr['columnFlip'] ? 'true' : 'false').' ultp-'.$attr['layout'].'">';
2901 $idx = 0; // $idx = $noAjax ? 1 : 0;
2902 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
2903
2904 include ULTP_PATH.'blocks/template/data.php';
2905
2906 include ULTP_PATH.'blocks/template/category.php';
2907
2908 if ($attr['queryUnique']) {
2909 $unique_ID[$attr['queryUnique']][] = $post_id;
2910 }
2911
2912 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">';
2913
2914 $post_loop .= '<div class="ultp-block-content-wrap">';
2915 if (has_post_thumbnail() && $attr['showImage'] && ($idx == 0 || $attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5')) {
2916 $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 : '' ).'">';
2917 if ($idx == 0) {
2918 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title, $attr['imgSrcset'], $attr['imgLazy']).'</a>';
2919 } else {
2920 if ($attr['layout'] == 'layout2' || $attr['layout'] == 'layout3' || $attr['layout'] == 'layout5') {
2921 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCropSmall'], '', $title, $attr['imgSrcset'], $attr['imgLazy']).'</a>';
2922 }
2923 }
2924 if (($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) {
2925 $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
2926 }
2927 $post_loop .= '</div>';
2928 }
2929 $post_loop .= '<div class="ultp-block-content">';
2930 // Category
2931 if (($attr['catPosition'] == 'aboveTitle') && ($idx == 0 || $attr['showSmallCat'] ) && $attr['catShow']) {
2932 $post_loop .= $category;
2933 }
2934 // Title
2935 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) {
2936 include ULTP_PATH.'blocks/template/title.php';
2937 }
2938 // Meta
2939 if ($attr['metaPosition'] =='top' ) {
2940 include ULTP_PATH.'blocks/template/meta.php';
2941 }
2942 // Title
2943 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) {
2944 include ULTP_PATH.'blocks/template/title.php';
2945 }
2946 // Excerpt
2947 if (($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) {
2948 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>';
2949 }
2950
2951 // Read More
2952 if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) {
2953 $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>';
2954 }
2955 // Bottom
2956 if ($attr['metaPosition'] =='bottom' ) {
2957 include ULTP_PATH.'blocks/template/meta.php';
2958 }
2959 $post_loop .= '</div>';
2960 $post_loop .= '</div>';
2961 $post_loop .= '</'.$attr['contentTag'].'>';
2962
2963 if ($idx == 0) {
2964 $bigloop = $post_loop;
2965 $post_loop = '';
2966 }
2967
2968 $idx ++;
2969 endwhile;
2970
2971 $bigloop = '<div class="ultp-big-post-module1">'.$bigloop.'</div>';
2972 $post_loop = $bigloop.'<div class="ultp-small-post-module1">'.$post_loop.'</div>';
2973
2974 $wraper_after .= '</div>';//ultp-block-items-wrap
2975
2976 // Navigation
2977 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] != 'topRight')) {
2978 include ULTP_PATH.'blocks/template/navigation-after.php';
2979 }
2980
2981 $wraper_after .= '</div>';
2982 $wraper_after .= '</div>';
2983
2984 wp_reset_query();
2985 }
2986
2987 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
2988 }
2989
2990 }