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

Post_Grid_2.php in Post Grid Gutenberg Blocks – PostX 2.9.2, at blocks/Post_Grid_2.php

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