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

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

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