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

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

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