PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.2
Post Grid Gutenberg Blocks – PostX v2.5.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_Slider_1.php

Post_Slider_1.php in Post Grid Gutenberg Blocks – PostX 2.5.2, at blocks/Post_Slider_1.php

2,472 lines 113.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ULTP\blocks;
3
4 defined('ABSPATH') || exit;
5
6 class Post_Slider_1{
7
8 public function __construct() {
9 add_action('init', array($this, 'register'));
10 }
11
12 public function get_attributes($default = false){
13
14 $attributes = array(
15 'blockId' => [
16 'type' => 'string',
17 'default' => '',
18 ],
19 'previewImg' => [
20 'type' => 'string',
21 'default' => '',
22 ],
23 //--------------------------
24 // Query Setting
25 //--------------------------
26 'queryQuick' => [
27 'type' => 'string',
28 'default' =>'',
29 ],
30 'queryNumber' => [
31 'type' => 'string',
32 'default' =>'5'
33 ],
34 'queryType' => [
35 'type' => 'string',
36 'default' => 'post'
37 ],
38 'queryTax' => [
39 'type' => 'string',
40 'default' => 'category'
41 ],
42 'queryTaxValue' => [
43 'type' => 'string',
44 'default' => '[]',
45 'style' => [
46 (object)[
47 'depends' => [(object)['key' => 'queryTax','condition' => '!=','value' => '']]
48 ],
49 ],
50 ],
51 'queryRelation' => [
52 'type' => 'string',
53 'default' => 'OR'
54 ],
55 'queryCat' => [ // for compatibility
56 'type' => 'string',
57 'default' => '[]'
58 ],
59 'queryTag' => [ // for compatibility
60 'type' => 'string',
61 'default' => '[]'
62 ],
63 'queryOrderBy' => [
64 'type' => 'string',
65 'default' => 'date',
66 ],
67 'metaKey' => [
68 'type' => 'string',
69 'default' => 'custom_meta_key',
70 'style' => [
71 (object)[
72 'depends' => [(object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num']]
73 ],
74 ],
75 ],
76 'queryOrder' => [
77 'type' => 'string',
78 'default' => 'desc',
79 ],
80 'queryInclude' => [
81 'type' => 'string',
82 'default' => ''
83 ],
84 'queryExclude' => [
85 'type' => 'string',
86 'default' => ''
87 ],
88 'queryAuthor' => [
89 'type' => 'string',
90 'default' => ''
91 ],
92 'queryOffset' => [
93 'type' => 'string',
94 'default' => '0',
95 ],
96 //--------------------------
97 // General Setting
98 //--------------------------
99 'slidesToShow' => [
100 'type' => 'number',
101 'default' => 4,
102 ],
103 'autoPlay' => [
104 'type' => 'boolean',
105 'default' => true,
106 ],
107 'height' => [
108 'type' => 'object',
109 'default' => (object)['lg' =>'550', 'unit' =>'px'],
110 'style' => [
111 (object)[
112 'selector'=>'{{ULTP}} .ultp-block-image, {{ULTP}} .ultp-block-items-wrap .ultp-block-slider-wrap { height: {{height}}; }'
113 ],
114 ],
115 ],
116 'slideSpeed' => [
117 'type' => 'string',
118 'default' => '3000',
119 'style' => [
120 (object)[
121 'depends' => [
122 (object)['key'=>'autoPlay','condition'=>'==','value'=>true],
123 ]
124 ],
125 ]
126 ],
127 'dots' => [
128 'type' => 'boolean',
129 'default' => true,
130 ],
131 'arrows' => [
132 'type' => 'boolean',
133 'default' => true,
134 ],
135 'fade' => [
136 'type' => 'boolean',
137 'default' => true,
138 ],
139 'titleShow' => [
140 'type' => 'boolean',
141 'default' => true,
142 ],
143 'titleStyle' => [
144 'type' => 'string',
145 'default' => 'none',
146 ],
147 'titleAnimColor' => [
148 'type' => 'string',
149 'default' => 'black',
150 'style' => [
151 (object)[
152 'depends' => [
153 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style1']
154 ],
155 'selector'=>'{{ULTP}} .ultp-title-style1 a {
156 cursor: pointer;
157 text-decoration: none;
158 display: inline;
159 padding-bottom: 2px;
160 transition: all 0.35s linear !important;
161 background: linear-gradient(
162 to bottom,
163 {{titleAnimColor}} 0%,
164 {{titleAnimColor}} 98%
165 );
166 background-size: 0px 2px;
167 background-repeat: no-repeat;
168 background-position: left 100%;
169 }'
170 ],
171 (object)[
172 'depends' => [
173 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style2']
174 ],
175 'selector'=>'{{ULTP}} .ultp-title-style2 a:hover {
176 border-bottom:none;
177 padding-bottom: 2px;
178 background-position:0 100%;
179 background-repeat: repeat;
180 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");
181 }'
182 ],
183 (object)[
184 'depends' => [
185 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style3']
186 ],
187 'selector'=>'{{ULTP}} .ultp-title-style3 a {
188 text-decoration: none;
189 $thetransition: all 1s cubic-bezier(1,.25,0,.75) 0s;
190 position: relative;
191 transition: all 0.35s ease-out;
192 padding-bottom: 3px;
193 border-bottom:none;
194 padding-bottom: 2px;
195 background-position:0 100%;
196 background-repeat: repeat;
197 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");
198 }'
199 ],
200 (object)[
201 'depends' => [
202 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style4']
203 ],
204 'selector'=>'{{ULTP}} .ultp-title-style4 a {
205 cursor: pointer;
206 font-weight: 600;
207 text-decoration: none;
208 display: inline;
209 padding-bottom: 2px;
210 transition: all 0.3s linear !important;
211 background: linear-gradient(
212 to bottom,
213 {{titleAnimColor}} 0%,
214 {{titleAnimColor}} 98%
215 );
216 background-size: 100% 2px;
217 background-repeat: no-repeat;
218 background-position: left 100%;
219 }'
220 ] ,
221 (object)[
222 'depends' => [
223 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
224 ],
225 'selector'=>'{{ULTP}} .ultp-title-style5 a:hover{
226 text-decoration: none;
227 transition: all 0.35s ease-out;
228 border-bottom:none;
229 padding-bottom: 2px;
230 background-position:0 100%;
231 background-repeat: repeat;
232 background-size:auto;
233 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");
234 } '
235 ],
236 (object)[
237 'depends' => [
238 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
239 ],
240 'selector'=>'{{ULTP}} .ultp-title-style5 a {
241 cursor: pointer;
242 text-decoration: none;
243 display: inline;
244 padding-bottom: 2px;
245 transition: all 0.3s linear !important;
246 background: linear-gradient(
247 to bottom,
248 {{titleAnimColor}} 0%,
249 {{titleAnimColor}} 98%
250 );
251 background-size: 100% 2px;
252 background-repeat: no-repeat;
253 background-position: left 100%;
254 }'
255 ],
256 (object)[
257 'depends' => [
258 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style6']
259 ],
260 'selector'=>'{{ULTP}} .ultp-title-style6 a{
261 background-image: linear-gradient(120deg, {{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
262 background-repeat: no-repeat;
263 background-size: 100% 2px;
264 background-position: 0 88%;
265 transition: background-size 0.15s ease-in;
266 padding: 5px 5px;
267 }'
268 ],
269 (object)[
270 'depends' => [
271 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style7']
272 ],
273 'selector'=>'{{ULTP}} .ultp-title-style7 a {
274 cursor: pointer;
275 text-decoration: none;
276 display: inline;
277 padding-bottom: 2px;
278 transition: all 0.3s linear !important;
279 background: linear-gradient(
280 to bottom,
281 {{titleAnimColor}} 0%,
282 {{titleAnimColor}} 98%
283 );
284 background-size: 0px 2px;
285 background-repeat: no-repeat;
286 background-position: right 100%;
287 } '
288 ],
289 (object)[
290 'depends' => [
291 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style8']
292 ],
293 'selector'=>'{{ULTP}} .ultp-title-style8 a {
294 cursor: pointer;
295 text-decoration: none;
296 display: inline;
297 padding-bottom: 2px;
298 transition: all 0.3s linear !important;
299 background: linear-gradient(
300 to bottom,
301 {{titleAnimColor}} 0%,
302 {{titleAnimColor}} 98%
303 );
304 background-size: 0px 2px;
305 background-repeat: no-repeat;
306 background-position: center 100%;
307 } '
308 ],
309 (object)[
310 'depends' => [
311 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style9']
312 ],
313 'selector'=>'{{ULTP}} .ultp-title-style9 a {
314 background-image: linear-gradient(120deg,{{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
315 background-repeat: no-repeat;
316 background-size: 100% 10px;
317 background-position: 0 88%;
318 transition: 0.3s ease-in;
319 padding: 3px 5px;
320 } '
321 ]
322 ],
323 ],
324 'headingShow' => [
325 'type' => 'boolean',
326 'default' => false,
327 ],
328 'excerptShow' => [
329 'type' => 'boolean',
330 'default' => true
331 ],
332 'catShow' => [
333 'type' => 'boolean',
334 'default' => true,
335 ],
336 'metaShow' => [
337 'type' => 'boolean',
338 'default' => true,
339 ],
340 'showImage' => [
341 'type' => 'boolean',
342 'default' => true,
343 ],
344 'readMore' => [
345 'type' => 'boolean',
346 'default' => true,
347 ],
348 'contentTag' => [
349 'type' => 'string',
350 'default' => 'div',
351 ],
352 'openInTab' => [
353 'type' => 'boolean',
354 'default' => false,
355 ],
356
357
358 //--------------------------
359 // Heading Setting/Style
360 //--------------------------
361 'headingText' => [
362 'type' => 'string',
363 'default' => 'Post Slider #1',
364 ],
365 'headingURL' => [
366 'type' => 'string',
367 'default' => '',
368 ],
369 'headingBtnText' => [
370 'type' => 'string',
371 'default' => 'View More',
372 'style' => [
373 (object)[
374 'depends' => [
375 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
376 ],
377 ],
378 ],
379 ],
380 'headingStyle' => [
381 'type' => 'string',
382 'default' => 'style9',
383 ],
384 'headingTag' => [
385 'type' => 'string',
386 'default' => 'h2',
387 ],
388 'headingAlign' => [
389 'type' => 'string',
390 'default' => 'left',
391 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner { text-align:{{headingAlign}}; }']]
392 ],
393 'headingTypo' => [
394 'type' => 'object',
395 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => 'uppercase', 'family'=>'','weight'=>'700'],
396 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']]
397 ],
398 'headingColor' => [
399 'type' => 'string',
400 'default' => '#0e1523',
401 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']],
402 ],
403 'headingBorderBottomColor' => [
404 'type' => 'string',
405 'default' => '#0e1523',
406 'style' => [
407 (object)[
408 'depends' => [
409 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
410 ],
411 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }'
412 ],
413 (object)[
414 'depends' => [
415 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
416 ],
417 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
418 ],
419 (object)[
420 'depends' => [
421 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
422 ],
423 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
424 ],
425 (object)[
426 'depends' => [
427 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
428 ],
429 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, .ultp-heading-inner span:after { background-color: {{headingBorderBottomColor}}; }'
430 ],
431 (object)[
432 'depends' => [
433 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
434 ],
435 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
436 ],
437 (object)[
438 'depends' => [
439 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
440 ],
441 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
442 ],
443 (object)[
444 'depends' => [
445 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
446 ],
447 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
448 ],
449 (object)[
450 'depends' => [
451 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
452 ],
453 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
454 ],
455 (object)[
456 'depends' => [
457 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
458 ],
459 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
460 ],
461 (object)[
462 'depends' => [
463 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
464 ],
465 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
466 ],
467 (object)[
468 'depends' => [
469 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
470 ],
471 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
472 ],
473 (object)[
474 'depends' => [
475 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
476 ],
477 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
478 ],
479 (object)[
480 'depends' => [
481 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
482 ],
483 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
484 ],
485 (object)[
486 'depends' => [
487 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
488 ],
489 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }'
490 ],
491 ],
492 ],
493 'headingBorderBottomColor2' => [
494 'type' => 'string',
495 'default' => '#e5e5e5',
496 'style' => [
497 (object)[
498 'depends' => [
499 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
500 ],
501 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }'
502 ],
503 (object)[
504 'depends' => [
505 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
506 ],
507 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
508 ],
509 (object)[
510 'depends' => [
511 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
512 ],
513 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
514 ],
515 (object)[
516 'depends' => [
517 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
518 ],
519 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
520 ],
521 ],
522 ],
523 'headingBg' => [
524 'type' => 'string',
525 'default' => '#037fff',
526 'style' => [
527 (object)[
528 'depends' => [
529 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
530 ],
531 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
532 ],
533 (object)[
534 'depends' => [
535 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
536 ],
537 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
538 ],
539 (object)[
540 'depends' => [
541 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
542 ],
543 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
544 ],
545 (object)[
546 'depends' => [
547 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
548 ],
549 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
550 ],
551 (object)[
552 'depends' => [
553 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
554 ],
555 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
556 ],
557 (object)[
558 'depends' => [
559 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
560 ],
561 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
562 ],
563 (object)[
564 'depends' => [
565 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
566 ],
567 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
568 ],
569 ],
570 ],
571 'headingBg2' => [
572 'type' => 'string',
573 'default' => '#e5e5e5',
574 'style' => [
575 (object)[
576 'depends' => [
577 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
578 ],
579 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }'
580 ],
581 ],
582 ],
583 'headingBtnTypo' => [
584 'type' => 'object',
585 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''],
586 'style' => [
587 (object)[
588 'depends' => [
589 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
590 ],
591 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn'
592 ],
593 ],
594 ],
595 'headingBtnColor' => [
596 'type' => 'string',
597 'default' => '#037fff',
598 'style' => [
599 (object)[
600 'depends' => [
601 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
602 ],
603 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }'
604 ],
605 ],
606 ],
607 'headingBtnHoverColor' => [
608 'type' => 'string',
609 'default' => '#0a31da',
610 'style' => [
611 (object)[
612 'depends' => [
613 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
614 ],
615 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }'
616 ],
617 ],
618 ],
619
620 'headingBorder' => [
621 'type' => 'string',
622 'default' => '3',
623 'style' => [
624 (object)[
625 'depends' => [
626 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
627 ],
628 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }'
629 ],
630 (object)[
631 'depends' => [
632 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
633 ],
634 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
635 ],
636 (object)[
637 'depends' => [
638 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
639 ],
640 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }'
641 ],
642 (object)[
643 'depends' => [
644 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
645 ],
646 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, .ultp-heading-inner span:after { height:{{headingBorder}}px; }'
647 ],
648 (object)[
649 'depends' => [
650 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
651 ],
652 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
653 ],
654 (object)[
655 'depends' => [
656 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
657 ],
658 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
659 ],
660 (object)[
661 'depends' => [
662 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
663 ],
664 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
665 ],
666 (object)[
667 'depends' => [
668 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
669 ],
670 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
671 ],
672 (object)[
673 'depends' => [
674 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
675 ],
676 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
677 ],
678 (object)[
679 'depends' => [
680 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
681 ],
682 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
683 ],
684 (object)[
685 'depends' => [
686 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
687 ],
688 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
689 ],
690 (object)[
691 'depends' => [
692 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
693 ],
694 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
695 ],
696 (object)[
697 'depends' => [
698 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
699 ],
700 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
701 ],
702 (object)[
703 'depends' => [
704 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
705 ],
706 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
707 ],
708 ],
709 ],
710 'headingSpacing' => [
711 'type' => 'object',
712 'default' => (object)['lg'=>20, 'unit'=>'px'],
713 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']]
714 ],
715
716 'headingRadius' => [
717 'type' => 'object',
718 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
719 'style' => [
720 (object)[
721 'depends' => [
722 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
723 ],
724 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
725 ],
726 (object)[
727 'depends' => [
728 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
729 ],
730 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
731 ],
732 (object)[
733 'depends' => [
734 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
735 ],
736 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
737 ],
738 (object)[
739 'depends' => [
740 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
741 ],
742 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
743 ],
744 (object)[
745 'depends' => [
746 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
747 ],
748 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
749 ],
750 (object)[
751 'depends' => [
752 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
753 ],
754 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
755 ],
756 (object)[
757 'depends' => [
758 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
759 ],
760 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
761 ],
762 (object)[
763 'depends' => [
764 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
765 ],
766 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
767 ],
768 ]
769 ],
770
771
772 'headingPadding' => [
773 'type' => 'object',
774 'default' => (object)['lg' =>(object)['unit' =>'px']],
775 'style' => [
776 (object)[
777 'depends' => [
778 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
779 ],
780 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
781 ],
782 (object)[
783 'depends' => [
784 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
785 ],
786 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
787 ],
788 (object)[
789 'depends' => [
790 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
791 ],
792 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
793 ],
794 (object)[
795 'depends' => [
796 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
797 ],
798 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
799 ],
800 (object)[
801 'depends' => [
802 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
803 ],
804 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
805 ],
806 (object)[
807 'depends' => [
808 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
809 ],
810 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
811 ],
812 (object)[
813 'depends' => [
814 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
815 ],
816 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
817 ],
818 (object)[
819 'depends' => [
820 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
821 ],
822 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
823 ],
824 (object)[
825 'depends' => [
826 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
827 ],
828 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
829 ],
830 (object)[
831 'depends' => [
832 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
833 ],
834 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
835 ],
836 ]
837 ],
838 'subHeadingShow' => [
839 'type' => 'boolean',
840 'default' => false,
841 ],
842 'subHeadingText' => [
843 'type' => 'string',
844 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
845 'style' => [
846 (object)[
847 'depends' => [
848 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
849 ],
850 ],
851 ],
852 ],
853 'subHeadingTypo' => [
854 'type' => 'object',
855 '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' => 'capitalize','family'=>'','weight'=>'500'],
856 'style' => [
857 (object)[
858 'depends' => [
859 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
860 ],
861 'selector'=>'{{ULTP}} .ultp-sub-heading div'
862 ],
863 ],
864 ],
865 'subHeadingColor' => [
866 'type' => 'string',
867 'default' => '#989898',
868 'style' => [
869 (object)[
870 'depends' => [
871 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
872 ],
873 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
874 ],
875 ],
876 ],
877 'subHeadingSpacing' => [
878 'type' => 'object',
879 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']],
880 'style' => [
881 (object)[
882 'depends' => [
883 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
884 ],
885 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
886 ],
887 ],
888 ],
889
890 //--------------------------
891 // Title Setting/Style
892 //--------------------------
893 'titleTag' => [
894 'type' => 'string',
895 'default' => 'h3',
896 ],
897 'titlePosition' => [
898 'type' => 'boolean',
899 'default' => true,
900 ],
901 'titleColor' => [
902 'type' => 'string',
903 'default' => '#0e1523',
904 'style' => [
905 (object)[
906 'depends' => [
907 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
908 ],
909 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-title a { color:{{titleColor}}; }'
910 ],
911 ],
912 ],
913 'titleHoverColor' => [
914 'type' => 'string',
915 'default' => '#037fff',
916 'style' => [
917 (object)[
918 'depends' => [
919 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
920 ],
921 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-title a:hover { color:{{titleHoverColor}}; }'
922 ],
923 ],
924 ],
925 'titleTypo' => [
926 'type' => 'object',
927 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'28', 'unit'=>'px'], 'height'=>(object)['lg'=>'36', 'unit'=>'px'], 'decoration'=>'none','family'=>'','weight'=>'500'],
928 'style' => [
929 (object)[
930 'depends' => [
931 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
932 ],
933 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title, {{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title a'
934 ],
935 ],
936 ],
937 'titlePadding' => [
938 'type' => 'object',
939 'default' => (object)['lg'=>(object)['top'=>25,'bottom'=>12, 'unit'=>'px']],
940 'style' => [
941 (object)[
942 'depends' => [
943 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
944 ],
945 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
946 ],
947 ],
948 ],
949 'titleLength' => [
950 'type' => 'string',
951 'default' => 0,
952 ],
953 'titleBackground' => [
954 'type' => 'string',
955 'default' => '',
956 'style' => [
957 (object)[
958 'depends' => [
959 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
960 ],
961 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-title a{ padding: 2px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-color:{{titleBackground}}; }'
962 ],
963 ],
964 ],
965
966 //--------------------------
967 // Content Setting/Style
968 //--------------------------
969 'showSeoMeta' => [
970 'type' => 'boolean',
971 'default'=> false
972 ],
973 'showFullExcerpt' => [
974 'type' => 'boolean',
975 'default' => false,
976 ],
977 'excerptLimit' => [
978 'type' => 'string',
979 'default' => 40,
980 'style' => [
981 (object)[
982 'depends' => [
983 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false]
984 ],
985 ],
986 ],
987 ],
988 'excerptColor' => [
989 'type' => 'string',
990 'default' => '#777',
991 'style' => [
992 (object)[
993 'depends' => [
994 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
995 ],
996 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
997 ],
998 ],
999 ],
1000 'excerptTypo' => [
1001 'type' => 'object',
1002 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>26, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1003 'style' => [
1004 (object)[
1005 'depends' => [
1006 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1007 ],
1008 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p'
1009 ],
1010 ],
1011 ],
1012 'excerptPadding' => [
1013 'type' => 'object',
1014 'default' => (object)['lg' =>(object)['top' => 10,'bottom' => '', 'unit' =>'px']],
1015 'style' => [
1016 (object)[
1017 'depends' => [
1018 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1019 ],
1020 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
1021 ],
1022 ],
1023 ],
1024
1025 //--------------------------
1026 // Content Wrap Setting/Style
1027 //--------------------------
1028 'contentVerticalPosition' => [
1029 'type' => 'string',
1030 'default' => 'middlePosition',
1031 'style' => [
1032 (object)[
1033 'depends' => [
1034 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'topPosition'],
1035 ],
1036 'selector'=>'{{ULTP}} .ultp-block-content-topPosition { align-items:flex-start; }'
1037 ],
1038 (object)[
1039 'depends' => [
1040 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'middlePosition'],
1041 ],
1042 'selector'=>'{{ULTP}} .ultp-block-content-middlePosition { align-items:center; }'
1043 ],
1044 (object)[
1045 'depends' => [
1046 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'bottomPosition'],
1047 ],
1048 'selector'=>'{{ULTP}} .ultp-block-content-bottomPosition { align-items:flex-end; }'
1049 ],
1050 ]
1051 ],
1052 'contentHorizontalPosition' => [
1053 'type' => 'string',
1054 'default' => 'centerPosition',
1055 'style' => [
1056 (object)[
1057 'depends' => [
1058 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'leftPosition'],
1059 ],
1060 'selector'=>'{{ULTP}} .ultp-block-content-leftPosition { justify-content:flex-start; }'
1061 ],
1062 (object)[
1063 'depends' => [
1064 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'centerPosition'],
1065 ],
1066 'selector'=>'{{ULTP}} .ultp-block-content-centerPosition { justify-content:center; }'
1067 ],
1068 (object)[
1069 'depends' => [
1070 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'rightPosition'],
1071 ],
1072 'selector'=>'{{ULTP}} .ultp-block-content-rightPosition { justify-content:flex-end; }'
1073 ],
1074 ]
1075 ],
1076 'contentAlign' => [
1077 'type' => 'string',
1078 'default' => "center",
1079 'style' => [
1080 (object)[
1081 'depends' => [
1082 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
1083 ],
1084 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
1085 ],
1086 (object)[
1087 'depends' => [
1088 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
1089 ],
1090 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
1091 ],
1092 (object)[
1093 'depends' => [
1094 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1095 ],
1096 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}'
1097 ],
1098 ],
1099 ],
1100
1101 'contenWraptWidth' => [
1102 'type' => 'object',
1103 'default' => (object)['lg'=>'60','unit' =>'%'],
1104 'style' => [
1105 (object)[
1106 'selector' => '{{ULTP}} .ultp-block-content-inner { width:{{contenWraptWidth}}; }'
1107 ],
1108 ]
1109 ],
1110 'contenWraptHeight' => [
1111 'type' => 'object',
1112 'default' => (object)['lg'=>''],
1113 'style' => [
1114 (object)[
1115 'selector' => '{{ULTP}} .ultp-block-content-inner { height:{{contenWraptHeight}}; }'
1116 ],
1117 ]
1118 ],
1119 'contentWrapBg' => [
1120 'type' => 'string',
1121 'default' => '#fff',
1122 'style' => [
1123 (object)[
1124 'selector'=>'{{ULTP}} .ultp-block-content-inner { background:{{contentWrapBg}}; }'
1125 ],
1126 ],
1127 ],
1128 'contentWrapHoverBg' => [
1129 'type' => 'string',
1130 'style' => [
1131 (object)[
1132 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover { background:{{contentWrapHoverBg}}; }'
1133 ],
1134 ],
1135 ],
1136 'contentWrapBorder' => [
1137 'type' => 'object',
1138 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1139 'style' => [
1140 (object)[
1141 'selector'=>'{{ULTP}} .ultp-block-content-inner'
1142 ],
1143 ],
1144 ],
1145 'contentWrapHoverBorder' => [
1146 'type' => 'object',
1147 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1148 'style' => [
1149 (object)[
1150 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover'
1151 ],
1152 ],
1153 ],
1154 'contentWrapRadius' => [
1155 'type' => 'object',
1156 'default' => (object)['lg' =>(object)['top' => '6','bottom' => '6', 'left' => '6', 'right' => '6', 'unit' =>'px']],
1157 'style' => [
1158 (object)[
1159 'selector'=>'{{ULTP}} .ultp-block-content-inner{ border-radius: {{contentWrapRadius}}; }'
1160 ],
1161 ],
1162 ],
1163 'contentWrapHoverRadius' => [
1164 'type' => 'object',
1165 'default' => (object)['lg' =>(object)['top' => '10','bottom' => '10', 'left' => '10', 'right' => '10', 'unit' =>'px']],
1166 'style' => [
1167 (object)[
1168 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover{ border-radius: {{contentWrapHoverRadius}}; }'
1169 ],
1170 ],
1171 ],
1172 'contentWrapShadow' => [
1173 'type' => 'object',
1174 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 5, 'bottom' => 15, 'left' => 0],'color' => 'rgba(0,0,0,0.15)'],
1175 'style' => [
1176 (object)[
1177 'selector'=>'{{ULTP}} .ultp-block-content-inner'
1178 ],
1179 ],
1180 ],
1181 'contentWrapHoverShadow' => [
1182 'type' => 'object',
1183 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 10, 'bottom' => 25, 'left' => 0],'color' => 'rgba(0,0,0,0.25)'],
1184 'style' => [
1185 (object)[
1186 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover'
1187 ],
1188 ],
1189 ],
1190
1191 'contentWrapPadding' => [
1192 'type' => 'object',
1193 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left'=>'50','right'=>'50', 'unit' =>'px']],
1194 'style' => [
1195 (object)[
1196 'selector'=>'{{ULTP}} .ultp-block-content-inner { padding: {{contentWrapPadding}}; }'
1197 ],
1198 ],
1199 ],
1200
1201 //--------------------------
1202 // Arrow Setting/Style
1203 //--------------------------
1204 'arrowStyle' => [
1205 'type' => 'string',
1206 'default' => 'leftAngle2#rightAngle2',
1207 'style' => [
1208 (object)[
1209 'depends' => [
1210 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1211 ],
1212 ],
1213 ]
1214 ],
1215 'arrowSize' => [
1216 'type' => 'object',
1217 'default' => (object)['lg' =>'', 'unit' =>'px'],
1218 'style' => [
1219 (object)[
1220 'depends' => [
1221 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1222 ],
1223 'selector' => '{{ULTP}} .slick-next svg, {{ULTP}} .slick-prev svg { width:{{arrowSize}}; }'
1224 ],
1225 ]
1226 ],
1227 'arrowWidth' => [
1228 'type' => 'object',
1229 'default' => (object)['lg' =>'60', 'unit' =>'px'],
1230 'style' => [
1231 (object)[
1232 'depends' => [
1233 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1234 ],
1235 'selector' => '{{ULTP}} .slick-arrow { width:{{arrowWidth}}; }'
1236 ],
1237 ]
1238 ],
1239 'arrowHeight' => [
1240 'type' => 'object',
1241 'default' => (object)['lg' =>'60', 'unit' =>'px'],
1242 'style' => [
1243 (object)[
1244 'depends' => [
1245 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1246 ],
1247 'selector' => '{{ULTP}} .slick-arrow { height:{{arrowHeight}}; } {{ULTP}} .slick-arrow { line-height:{{arrowHeight}}; }'
1248 ],
1249 ]
1250 ],
1251 'arrowVartical' => [
1252 'type' => 'object',
1253 'default' => (object)['lg' =>'', 'unit' =>'px'],
1254 'style' => [
1255 (object)[
1256 'depends' => [
1257 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1258 ],
1259 'selector' => '{{ULTP}} .slick-next { right:{{arrowVartical}}; } {{ULTP}} .slick-prev { left:{{arrowVartical}}; }'
1260 ],
1261 ]
1262 ],
1263 'arrowColor' => [
1264 'type' => 'string',
1265 'default' => '#037fff',
1266 'style' => [
1267 (object)[
1268 'depends' => [
1269 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1270 ],
1271 'selector'=>'{{ULTP}} .slick-arrow:before { color:{{arrowColor}}; } {{ULTP}} .slick-arrow svg { fill:{{arrowColor}}; }'
1272 ],
1273 ],
1274 ],
1275 'arrowHoverColor' => [
1276 'type' => 'string',
1277 'default' => '#fff',
1278 'style' => [
1279 (object)[
1280 'depends' => [
1281 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1282 ],
1283 'selector'=>'{{ULTP}} .slick-arrow:hover:before { color:{{arrowHoverColor}}; } {{ULTP}} .slick-arrow:hover svg { fill:{{arrowHoverColor}}; }'
1284 ],
1285 ],
1286 ],
1287 'arrowBg' => [
1288 'type' => 'string',
1289 'default' => '#fff',
1290 'style' => [
1291 (object)[
1292 'depends' => [
1293 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1294 ],
1295 'selector'=>'{{ULTP}} .slick-arrow { background:{{arrowBg}}; }'
1296 ],
1297 ],
1298 ],
1299 'arrowHoverBg' => [
1300 'type' => 'string',
1301 'default' => '#037fff',
1302 'style' => [
1303 (object)[
1304 'depends' => [
1305 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1306 ],
1307 'selector'=>'{{ULTP}} .slick-arrow:hover { background:{{arrowHoverBg}}; }'
1308 ],
1309 ],
1310 ],
1311 'arrowBorder' => [
1312 'type' => 'object',
1313 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1314 'style' => [
1315 (object)[
1316 'depends' => [
1317 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1318 ],
1319 'selector'=>'{{ULTP}} .slick-arrow'
1320 ],
1321 ],
1322 ],
1323 'arrowHoverBorder' => [
1324 'type' => 'object',
1325 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1326 'style' => [
1327 (object)[
1328 'depends' => [
1329 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1330 ],
1331 'selector'=>'{{ULTP}} .slick-arrow:hover'
1332 ],
1333 ],
1334 ],
1335 'arrowRadius' => [
1336 'type' => 'object',
1337 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']],
1338 'style' => [
1339 (object)[
1340 'depends' => [
1341 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1342 ],
1343 'selector'=>'{{ULTP}} .slick-arrow { border-radius: {{arrowRadius}}; }'
1344 ],
1345 ],
1346 ],
1347 'arrowHoverRadius' => [
1348 'type' => 'object',
1349 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']],
1350 'style' => [
1351 (object)[
1352 'depends' => [
1353 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1354 ],
1355 'selector'=>'{{ULTP}} .slick-arrow:hover{ border-radius: {{arrowHoverRadius}}; }'
1356 ],
1357 ],
1358 ],
1359 'arrowShadow' => [
1360 'type' => 'object',
1361 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1362 'style' => [
1363 (object)[
1364 'depends' => [
1365 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1366 ],
1367 'selector'=>'{{ULTP}} .slick-arrow'
1368 ],
1369 ],
1370 ],
1371 'arrowHoverShadow' => [
1372 'type' => 'object',
1373 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1374 'style' => [
1375 (object)[
1376 'depends' => [
1377 (object)['key'=>'arrows','condition'=>'==','value'=>true],
1378 ],
1379 'selector'=>'{{ULTP}} .slick-arrow:hover'
1380 ],
1381 ],
1382 ],
1383
1384 //--------------------------
1385 // Dot Setting/Style
1386 //--------------------------
1387 'dotWidth' => [
1388 'type' => 'object',
1389 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1390 'style' => [
1391 (object)[
1392 'depends' => [
1393 (object)['key'=>'dots','condition'=>'==','value'=>true],
1394 ],
1395 'selector' => '{{ULTP}} .slick-dots li button { width:{{dotWidth}}; }'
1396 ],
1397 ]
1398 ],
1399 'dotHeight' => [
1400 'type' => 'object',
1401 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1402 'style' => [
1403 (object)[
1404 'depends' => [
1405 (object)['key'=>'dots','condition'=>'==','value'=>true],
1406 ],
1407 'selector' => '{{ULTP}} .slick-dots li button { height:{{dotHeight}}; }'
1408 ],
1409 ]
1410 ],
1411 'dotHoverWidth' => [
1412 'type' => 'object',
1413 'default' => (object)['lg' =>'16', 'unit' =>'px'],
1414 'style' => [
1415 (object)[
1416 'depends' => [
1417 (object)['key'=>'dots','condition'=>'==','value'=>true],
1418 ],
1419 'selector' => '{{ULTP}} .slick-dots li.slick-active button { width:{{dotHoverWidth}}; }'
1420 ],
1421 ]
1422 ],
1423 'dotHoverHeight' => [
1424 'type' => 'object',
1425 'default' => (object)['lg' =>'16', 'unit' =>'px'],
1426 'style' => [
1427 (object)[
1428 'depends' => [
1429 (object)['key'=>'dots','condition'=>'==','value'=>true],
1430 ],
1431 'selector' => '{{ULTP}} .slick-dots li.slick-active button { height:{{dotHoverHeight}}; }'
1432 ],
1433 ]
1434 ],
1435 'dotSpace' => [
1436 'type' => 'object',
1437 'default' => (object)['lg' =>'4', 'unit' =>'px'],
1438 'style' => [
1439 (object)[
1440 'depends' => [
1441 (object)['key'=>'dots','condition'=>'==','value'=>true],
1442 ],
1443 'selector' => '{{ULTP}} .slick-dots { padding: 0 {{dotSpace}}; } {{ULTP}} .slick-dots li button { margin: 0 {{dotSpace}}; }'
1444 ],
1445 ]
1446 ],
1447 'dotVartical' => [
1448 'type' => 'object',
1449 'default' => (object)['lg' =>'40', 'unit' =>'px'],
1450 'style' => [
1451 (object)[
1452 'depends' => [
1453 (object)['key'=>'dots','condition'=>'==','value'=>true],
1454 ],
1455 'selector' => '{{ULTP}} .slick-dots { bottom:{{dotVartical}}; }'
1456 ],
1457 ]
1458 ],
1459 'dotHorizontal' => [
1460 'type' => 'object',
1461 'default' => (object)['lg'=>''],
1462 'style' => [
1463 (object)[
1464 'depends' => [
1465 (object)['key'=>'dots','condition'=>'==','value'=>true],
1466 ],
1467 'selector' => '{{ULTP}} .slick-dots { left:{{dotHorizontal}}; }'
1468 ],
1469 ]
1470 ],
1471 'dotBg' => [
1472 'type' => 'string',
1473 'default' => '#f5f5f5',
1474 'style' => [
1475 (object)[
1476 'depends' => [
1477 (object)['key'=>'dots','condition'=>'==','value'=>true],
1478 ],
1479 'selector'=>'{{ULTP}} .slick-dots li button { background:{{dotBg}}; }'
1480 ],
1481 ],
1482 ],
1483 'dotHoverBg' => [
1484 'type' => 'string',
1485 'default' => '#000',
1486 'style' => [
1487 (object)[
1488 'depends' => [
1489 (object)['key'=>'dots','condition'=>'==','value'=>true],
1490 ],
1491 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { background:{{dotHoverBg}}; }'
1492 ],
1493 ],
1494 ],
1495 'dotBorder' => [
1496 'type' => 'object',
1497 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1498 'style' => [
1499 (object)[
1500 'depends' => [
1501 (object)['key'=>'dots','condition'=>'==','value'=>true],
1502 ],
1503 'selector'=>'{{ULTP}} .slick-dots li button'
1504 ],
1505 ],
1506 ],
1507 'dotHoverBorder' => [
1508 'type' => 'object',
1509 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1510 'style' => [
1511 (object)[
1512 'depends' => [
1513 (object)['key'=>'dots','condition'=>'==','value'=>true],
1514 ],
1515 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button'
1516 ],
1517 ],
1518 ],
1519 'dotRadius' => [
1520 'type' => 'object',
1521 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']],
1522 'style' => [
1523 (object)[
1524 'depends' => [
1525 (object)['key'=>'dots','condition'=>'==','value'=>true],
1526 ],
1527 'selector'=>'{{ULTP}} .slick-dots li button { border-radius: {{dotRadius}}; }'
1528 ],
1529 ],
1530 ],
1531 'dotHoverRadius' => [
1532 'type' => 'object',
1533 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']],
1534 'style' => [
1535 (object)[
1536 'depends' => [
1537 (object)['key'=>'dots','condition'=>'==','value'=>true],
1538 ],
1539 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { border-radius: {{dotHoverRadius}}; }'
1540 ],
1541 ],
1542 ],
1543 'dotShadow' => [
1544 'type' => 'object',
1545 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1546 'style' => [
1547 (object)[
1548 'depends' => [
1549 (object)['key'=>'dots','condition'=>'==','value'=>true],
1550 ],
1551 'selector'=>'{{ULTP}} .slick-dots li button'
1552 ],
1553 ],
1554 ],
1555 'dotHoverShadow' => [
1556 'type' => 'object',
1557 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1558 'style' => [
1559 (object)[
1560 'depends' => [
1561 (object)['key'=>'dots','condition'=>'==','value'=>true],
1562 ],
1563 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button'
1564 ],
1565 ],
1566 ],
1567
1568
1569 //--------------------------
1570 // Category Setting/Style
1571 //--------------------------
1572 'catStyle' => [
1573 'type' => 'string',
1574 'default' => 'classic',
1575 ],
1576 'catPosition' => [
1577 'type' => 'string',
1578 'default' => 'aboveTitle',
1579 ],
1580 'customCatColor' => [
1581 'type' => 'boolean',
1582 'default' => false,
1583 ],
1584 'seperatorLink' => [
1585 'type' => 'string',
1586 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
1587 'style' => [
1588 (object)[
1589 'depends' => [
1590 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1591 ]
1592 ]
1593 ]
1594 ],
1595 'onlyCatColor' => [
1596 'type' => 'boolean',
1597 'default' => false,
1598 'style' => [
1599 (object)[
1600 'depends' => [
1601 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1602 ]
1603 ]
1604 ]
1605 ],
1606 'catLineWidth' => [
1607 'type' => 'object',
1608 'default' => (object)['lg'=>'20'],
1609 'style' => [
1610 (object)[
1611 'depends' => [
1612 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1613 ],
1614 '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; }'
1615 ],
1616 ]
1617 ],
1618 'catLineSpacing' => [
1619 'type' => 'object',
1620 'default' => (object)['lg'=>'30'],
1621 'style' => [
1622 (object)[
1623 'depends' => [
1624 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1625 ],
1626 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1627 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1628 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1629 ],
1630 ]
1631 ],
1632 'catLineColor' => [
1633 'type' => 'string',
1634 'default' => '#000',
1635 'style' => [
1636 (object)[
1637 'depends' => [
1638 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1639 ],
1640 '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}}; }'
1641 ],
1642 ]
1643 ],
1644 'catLineHoverColor' => [
1645 'type' => 'string',
1646 'default' => '#037fff',
1647 'style' => [
1648 (object)[
1649 'depends' => [
1650 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1651 ],
1652 '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}}; }'
1653 ],
1654 ]
1655 ],
1656 'catTypo' => [
1657 'type' => 'object',
1658 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>15, 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '500', 'decoration' => 'none','family'=>'' ],
1659 'style' => [
1660 (object)[
1661 'depends' => [
1662 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1663 ],
1664 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
1665 ],
1666 ],
1667 ],
1668 'catColor' => [
1669 'type' => 'string',
1670 'default' => '#fff',
1671 'style' => [
1672 (object)[
1673 'depends' => [
1674 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1675 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1676 ],
1677 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1678 ],
1679 ],
1680 ],
1681 'catBgColor' => [
1682 'type' => 'object',
1683 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => '#000'],
1684 'style' => [
1685 (object)[
1686 'depends' => [
1687 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1688 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1689 ],
1690 'selector'=>'{{ULTP}} .ultp-category-grid a'
1691 ],
1692 ],
1693 ],
1694 'catBorder' => [
1695 'type' => 'object',
1696 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1697 'style' => [
1698 (object)[
1699 'depends' => [
1700 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1701 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1702 ],
1703 'selector'=>'{{ULTP}} .ultp-category-grid a'
1704 ],
1705 ],
1706 ],
1707 'catRadius' => [
1708 'type' => 'object',
1709 'default' => (object)['lg' =>'2', 'unit' =>'px'],
1710 'style' => [
1711 (object)[
1712 'depends' => [
1713 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1714 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1715 ],
1716 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1717 ],
1718 ],
1719 ],
1720 'catHoverColor' => [
1721 'type' => 'string',
1722 'default' => '#fff',
1723 'style' => [
1724 (object)[
1725 'depends' => [
1726 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1727 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1728 ],
1729 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1730 ],
1731 ],
1732 ],
1733 'catBgHoverColor' => [
1734 'type' => 'object',
1735 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff'],
1736 'style' => [
1737 (object)[
1738 'depends' => [
1739 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1740 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1741 ],
1742 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1743 ],
1744 ],
1745 ],
1746 'catHoverBorder' => [
1747 'type' => 'object',
1748 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1749 'style' => [
1750 (object)[
1751 'depends' => [
1752 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1753 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1754 ],
1755 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1756 ],
1757 ],
1758 ],
1759 'catSacing' => [
1760 'type' => 'object',
1761 'default' => (object)['lg' =>(object)['top' => -65,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1762 'style' => [
1763 (object)[
1764 'depends' => [
1765 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1766 ],
1767 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1768 ],
1769 ],
1770 ],
1771 'catPadding' => [
1772 'type' => 'object',
1773 'default' => (object)['lg' =>(object)['top' => 8,'bottom' => 6,'left' => 16,'right' => 16, 'unit' =>'px']],
1774 'style' => [
1775 (object)[
1776 'depends' => [
1777 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1778 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1779 ],
1780 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1781 ],
1782 ],
1783 ],
1784
1785
1786 //--------------------------
1787 // Image Overlay Setting/Style
1788 //--------------------------
1789 'imgCrop' => [
1790 'type' => 'string',
1791 'default' => 'full',
1792 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']]
1793 ],
1794 'imgOverlay' => [
1795 'type' => 'boolean',
1796 'default' => false,
1797 ],
1798 'imgOverlayType' => [
1799 'type' => 'string',
1800 'default' => 'default',
1801 'style' => [
1802 (object)[
1803 'depends' => [
1804 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1805 ]
1806 ],
1807 ]
1808 ],
1809 'overlayColor' => [
1810 'type' => 'object',
1811 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1812 'style' => [
1813 (object)[
1814 'depends' => [
1815 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1816 ],
1817 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1818 ],
1819 ],
1820
1821 ],
1822 'imgOpacity' => [
1823 'type' => 'string',
1824 'default' => .7,
1825 'style' => [
1826 (object)[
1827 'depends' => [
1828 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1829 ],
1830 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1831 ],
1832 ],
1833 ],
1834
1835 'imgGrayScale' => [
1836 'type' => 'object',
1837 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1838 'style' => [
1839 (object)[
1840 'depends' => [
1841 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1842 ],
1843 'selector'=>'{{ULTP}} .ultp-block-image img { filter: grayscale({{imgGrayScale}}); }'
1844 ],
1845 ],
1846 ],
1847 'imgHoverGrayScale' => [
1848 'type' => 'object',
1849 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1850 'style' => [
1851 (object)[
1852 'depends' => [
1853 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1854 ],
1855 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image img { filter: grayscale({{imgHoverGrayScale}}); }'
1856 ],
1857 ],
1858 ],
1859 'imgRadius' => [
1860 'type' => 'object',
1861 'default' => (object)['lg' =>'', 'unit' =>'px'],
1862 'style' => [
1863 (object)[
1864 'depends' => [
1865 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1866 ],
1867 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1868 ],
1869 ],
1870 ],
1871 'imgHoverRadius' => [
1872 'type' => 'object',
1873 'default' => (object)['lg' =>'', 'unit' =>'px'],
1874 'style' => [
1875 (object)[
1876 'depends' => [
1877 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1878 ],
1879 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1880 ],
1881 ],
1882 ],
1883 'imgShadow' => [
1884 'type' => 'object',
1885 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1886 'style' => [
1887 (object)[
1888 'depends' => [
1889 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1890 ],
1891 'selector'=>'{{ULTP}} .ultp-block-image'
1892 ],
1893 ],
1894 ],
1895 'imgHoverShadow' => [
1896 'type' => 'object',
1897 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1898 'style' => [
1899 (object)[
1900 'depends' => [
1901 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1902 ],
1903 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1904 ],
1905 ],
1906 ],
1907 'imgSrcset' => [
1908 'type' => 'boolean',
1909 'default' => false,
1910 ],
1911 'imgLazy' => [
1912 'type' => 'boolean',
1913 'default' => false,
1914 ],
1915
1916
1917 //--------------------------
1918 // Read more Setting/Style
1919 //--------------------------
1920 'readMoreText' => [
1921 'type' => 'string',
1922 'default' => ''
1923 ],
1924 'readMoreIcon' => [
1925 'type' => 'string',
1926 'default' => 'rightArrowLg',
1927 ],
1928 'readMoreTypo' => [
1929 'type' => 'object',
1930 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '500', 'decoration' => 'none','family'=>'' ],
1931 'style' => [
1932 (object)[
1933 'depends' => [
1934 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1935 ],
1936 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
1937 ],
1938 ],
1939 ],
1940 'readMoreIconSize' => [
1941 'type' => 'object',
1942 'default' => (object)['lg' =>'', 'unit' =>'px'],
1943 'style' => [
1944 (object)[
1945 'depends' => [
1946 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1947 ],
1948 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
1949 ],
1950 ]
1951 ],
1952 'readMoreColor' => [
1953 'type' => 'string',
1954 'default' => '#000',
1955 'style' => [
1956 (object)[
1957 'depends' => [
1958 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1959 ],
1960 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
1961 ],
1962 ],
1963 ],
1964 'readMoreBgColor' => [
1965 'type' => 'object',
1966 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => '#037fff'],
1967 'style' => [
1968 (object)[
1969 'depends' => [
1970 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1971 ],
1972 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1973 ],
1974 ],
1975 ],
1976 'readMoreBorder' => [
1977 'type' => 'object',
1978 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1979 'style' => [
1980 (object)[
1981 'depends' => [
1982 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1983 ],
1984 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1985 ],
1986 ],
1987 ],
1988 'readMoreRadius' => [
1989 'type' => 'object',
1990 'default' => (object)['lg' =>'', 'unit' =>'px'],
1991 'style' => [
1992 (object)[
1993 'depends' => [
1994 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1995 ],
1996 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
1997 ],
1998 ],
1999 ],
2000 'readMoreHoverColor' => [
2001 'type' => 'string',
2002 'default' => '#037fff',
2003 'style' => [
2004 (object)[
2005 'depends' => [
2006 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2007 ],
2008 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
2009 ],
2010 ],
2011 ],
2012 'readMoreBgHoverColor' => [
2013 'type' => 'object',
2014 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#0c32d8'],
2015 'style' => [
2016 (object)[
2017 'depends' => [
2018 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2019 ],
2020 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2021 ],
2022 ],
2023 ],
2024 'readMoreHoverBorder' => [
2025 'type' => 'object',
2026 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2027 'style' => [
2028 (object)[
2029 'depends' => [
2030 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2031 ],
2032 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2033 ],
2034 ],
2035 ],
2036 'readMoreHoverRadius' => [
2037 'type' => 'object',
2038 'default' => (object)['lg' =>'', 'unit' =>'px'],
2039 'style' => [
2040 (object)[
2041 'depends' => [
2042 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2043 ],
2044 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
2045 ],
2046 ],
2047 ],
2048 'readMoreSacing' => [
2049 'type' => 'object',
2050 'default' => (object)['lg' =>(object)['top' => 30,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2051 'style' => [
2052 (object)[
2053 'depends' => [
2054 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2055 ],
2056 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
2057 ],
2058 ],
2059 ],
2060 'readMorePadding' => [
2061 'type' => 'object',
2062 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2063 'style' => [
2064 (object)[
2065 'depends' => [
2066 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2067 ],
2068 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
2069 ],
2070 ],
2071 ],
2072
2073 //--------------------------
2074 // Meta Setting/Style
2075 //--------------------------
2076 'metaPosition' => [
2077 'type' => 'string',
2078 'default' => 'top',
2079 ],
2080 'metaStyle' => [
2081 'type' => 'string',
2082 'default' => 'icon',
2083 ],
2084 'metaSeparator' => [
2085 'type' => 'string',
2086 'default' => 'dash',
2087 ],
2088 'metaList' => [
2089 'type' => 'string',
2090 'default' => '["metaAuthor","metaDate","metaRead"]',
2091 ],
2092 'metaMinText' => [
2093 'type' => 'string',
2094 'default' => 'min read',
2095 ],
2096 'metaAuthorPrefix' => [
2097 'type' => 'string',
2098 'default' => 'By',
2099 ],
2100 'metaDateFormat' => [
2101 'type' => 'string',
2102 'default' => 'M j, Y',
2103 ],
2104 'metaTypo' => [
2105 'type' => 'object',
2106 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2107 'style' => [
2108 (object)[
2109 'depends' => [
2110 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2111 ],
2112 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
2113 ],
2114 ],
2115 ],
2116 'metaColor' => [
2117 'type' => 'string',
2118 'default' => '#989898',
2119 'style' => [
2120 (object)[
2121 'depends' => [
2122 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2123 ],
2124 '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}}; }'
2125 ],
2126 ],
2127 ],
2128 'metaHoverColor' => [
2129 'type' => 'string',
2130 'default' => '#037fff',
2131 'style' => [
2132 (object)[
2133 'depends' => [
2134 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2135 ],
2136 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }'
2137 ],
2138 ],
2139 ],
2140 'metaSpacing' => [
2141 'type' => 'object',
2142 'default' => (object)['lg' =>'15', 'unit' =>'px'],
2143 'style' => [
2144 (object)[
2145 'depends' => [
2146 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2147 ],
2148 'selector'=>'{{ULTP}} .ultp-block-meta span { margin-right:{{metaSpacing}}; } {{ULTP}} .ultp-block-meta span { padding-left: {{metaSpacing}}; }'
2149 ],
2150 ],
2151 ],
2152 'metaMargin' => [
2153 'type' => 'object',
2154 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
2155 'style' => [
2156 (object)[
2157 'depends' => [
2158 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2159 ],
2160 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
2161 ],
2162 ],
2163 ],
2164 'metaPadding' => [
2165 'type' => 'object',
2166 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
2167 'style' => [
2168 (object)[
2169 'depends' => [
2170 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2171 ],
2172 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
2173 ],
2174 ],
2175 ],
2176 'metaBorder' => [
2177 'type' => 'object',
2178 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
2179 'style' => [
2180 (object)[
2181 'depends' => [
2182 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2183 ],
2184 'selector'=>'{{ULTP}} .ultp-block-meta'
2185 ],
2186 ],
2187 ],
2188 'metaBg' => [
2189 'type' => 'string',
2190 'default' => '',
2191 'style' => [
2192 (object)[
2193 'depends' => [
2194 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2195 ],
2196 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
2197 ],
2198 ],
2199 ],
2200
2201
2202 //--------------------------
2203 // Wrapper Style
2204 //--------------------------
2205 'wrapBg' => [
2206 'type' => 'object',
2207 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2208 'style' => [
2209 (object)[
2210 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2211 ],
2212 ],
2213 ],
2214 'wrapBorder' => [
2215 'type' => 'object',
2216 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2217 'style' => [
2218 (object)[
2219 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2220 ],
2221 ],
2222 ],
2223 'wrapShadow' => [
2224 'type' => 'object',
2225 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2226 'style' => [
2227 (object)[
2228 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2229 ],
2230 ],
2231 ],
2232 'wrapRadius' => [
2233 'type' => 'object',
2234 'default' => (object)['lg' =>'', 'unit' =>'px'],
2235 'style' => [
2236 (object)[
2237 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2238 ],
2239 ],
2240 ],
2241 'wrapHoverBackground' => [
2242 'type' => 'object',
2243 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2244 'style' => [
2245 (object)[
2246 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2247 ],
2248 ],
2249 ],
2250 'wrapHoverBorder' => [
2251 'type' => 'object',
2252 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2253 'style' => [
2254 (object)[
2255 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2256 ],
2257 ],
2258 ],
2259 'wrapHoverRadius' => [
2260 'type' => 'object',
2261 'default' => (object)['lg' =>'', 'unit' =>'px'],
2262 'style' => [
2263 (object)[
2264 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2265 ],
2266 ],
2267 ],
2268 'wrapHoverShadow' => [
2269 'type' => 'object',
2270 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2271 'style' => [
2272 (object)[
2273 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2274 ],
2275 ],
2276 ],
2277 'wrapMargin' => [
2278 'type' => 'object',
2279 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2280 'style' => [
2281 (object)[
2282 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2283 ],
2284 ],
2285 ],
2286 'wrapOuterPadding' => [
2287 'type' => 'object',
2288 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
2289 'style' => [
2290 (object)[
2291 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2292 ],
2293 ],
2294 ],
2295 'wrapInnerPadding' => [
2296 'type' => 'object',
2297 'default' => (object)['lg' =>(object)['unit' =>'px']],
2298 'style' => [
2299 (object)[
2300 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
2301 ],
2302 ],
2303 ],
2304 'advanceId' => [
2305 'type' => 'string',
2306 'default' => '',
2307 ],
2308 'advanceZindex' => [
2309 'type' => 'number',
2310 'default' => '',
2311 'style' => [
2312 (object)[
2313 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}'
2314 ],
2315 ],
2316 ],
2317 'hideExtraLarge' => [
2318 'type' => 'boolean',
2319 'default' => false,
2320 'style' => [
2321 (object)[
2322 'selector' => '{{ULTP}} {display:none;}'
2323 ],
2324 ],
2325 ],
2326 'hideTablet' => [
2327 'type' => 'boolean',
2328 'default' => false,
2329 'style' => [
2330 (object)[
2331 'selector' => '{{ULTP}} {display:none;}'
2332 ],
2333 ],
2334 ],
2335 'hideMobile' => [
2336 'type' => 'boolean',
2337 'default' => false,
2338 'style' => [
2339 (object)[
2340 'selector' => '{{ULTP}} {display:none;}'
2341 ],
2342 ],
2343 ],
2344 'advanceCss' => [
2345 'type' => 'string',
2346 'default' => '',
2347 'style' => [(object)['selector' => '']],
2348 ]
2349
2350 );
2351
2352 if( $default ){
2353 $temp = array();
2354 foreach ($attributes as $key => $value) {
2355 if( isset($value['default']) ){
2356 $temp[$key] = $value['default'];
2357 }
2358 }
2359 return $temp;
2360 }else{
2361 return $attributes;
2362 }
2363 }
2364
2365 public function register() {
2366 register_block_type( 'ultimate-post/post-slider-1',
2367 array(
2368 'title' => __('Post Slider #1', 'ultimate-post'),
2369 'attributes' => $this->get_attributes(),
2370 'render_callback' => array($this, 'content')
2371 )
2372 );
2373 }
2374
2375 public function content($attr, $noAjax) {
2376
2377 if(!$noAjax){
2378 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2379 $attr['paged'] = $paged ? $paged : 1;
2380 }
2381
2382 $block_name = 'post-slider-1';
2383 $page_post_id = ultimate_post()->get_ID();
2384 $wraper_before = $wraper_after = $post_loop = '';
2385 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
2386 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
2387
2388 if ( $recent_posts->have_posts() ) {
2389 $wraper_before .= '<div id="'.$attr["blockId"].'" class="wp-block-ultimate-post-'.$block_name.' ultp-block-'.$attr["blockId"].''.(isset($attr["align"])? ' align' .$attr["align"]:'').''.(isset($attr["className"])?' '.$attr["className"]:'').'">';
2390 $wraper_before .= '<div class="ultp-block-wrapper">';
2391 if ($attr['headingShow']) {
2392 $wraper_before .= '<div class="ultp-heading-filter">';
2393 $wraper_before .= '<div class="ultp-heading-filter-in">';
2394 include ULTP_PATH.'blocks/template/heading.php';
2395 $wraper_before .= '</div>';
2396 $wraper_before .= '</div>';
2397 }
2398 $wraper_before .= '<div class="ultp-block-items-wrap" data-arrows="'.$attr['arrows'].'" data-dots="'.$attr['dots'].'" data-autoplay="'.$attr['autoPlay'].'" data-slidespeed="'.$attr['slideSpeed'].'" data-fade="'.$attr['fade'].'">';
2399 $idx = $noAjax ? 1 : 0;
2400 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
2401
2402 include ULTP_PATH.'blocks/template/data.php';
2403
2404 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">';
2405 $post_loop .= '<div class="ultp-block-slider-wrap">';
2406
2407 $post_loop .= '<div class="ultp-block-image-inner">';
2408 if(has_post_thumbnail()) {
2409 $post_loop .= '<div class="ultp-block-image '.($attr["imgOverlay"] ? ' ultp-block-image-overlay ultp-block-image-'.$attr["imgOverlayType"].' ultp-block-image-'.$attr["imgOverlayType"].$idx : '' ).'">';
2410 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title, $attr['imgSrcset'], $attr['imgLazy']).'</a>';
2411 $post_loop .= '</div>'; //.ultp-block-image
2412 }
2413 $post_loop .= '</div>'; //.ultp-block-image-inner
2414
2415 $post_loop .= '<div class="ultp-block-content ultp-block-content-'.$attr['contentVerticalPosition'].' ultp-block-content-'.$attr['contentHorizontalPosition'].'">';
2416 $post_loop .= '<div class="ultp-block-content-inner">';
2417
2418 include ULTP_PATH.'blocks/template/category.php';
2419 $post_loop .= $category;
2420
2421 if ($title && $attr['titleShow'] && $attr['titlePosition']) {
2422 include ULTP_PATH.'blocks/template/title.php';
2423 }
2424
2425 if( $attr['metaPosition'] =='top' ) {
2426 include ULTP_PATH.'blocks/template/meta.php';
2427 }
2428
2429 if ($title && $attr['titleShow'] && !$attr['titlePosition']) {
2430 include ULTP_PATH.'blocks/template/title.php';
2431 }
2432
2433 if ($attr['excerptShow']) {
2434 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>';
2435 }
2436
2437 if ($attr['readMore']) {
2438 $post_loop .= '<div class="ultp-block-readmore"><a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.($attr['readMoreText'] ? $attr['readMoreText'] : __( "Read More", "ultimate-post" )).ultimate_post()->svg_icon($attr['readMoreIcon']).'</a></div>';
2439 }
2440
2441 if( $attr['metaPosition'] =='bottom' ) {
2442 include ULTP_PATH.'blocks/template/meta.php';
2443 }
2444
2445 $post_loop .= '</div>'; //.ultp-block-content-inner
2446 $post_loop .= '</div>'; //.ultp-block-content
2447
2448 $post_loop .= '</div>'; //.ultp-block-slider-wrap
2449 $post_loop .= '</'.$attr['contentTag'].'>'; //.ultp-block-item
2450
2451 endwhile;
2452
2453 $wraper_after .= '</div>'; //.ultp-block-items-wrap
2454
2455 if($attr['arrows']){
2456 $wraper_after .= '<div class="ultp-slick-nav" style="display:none">';
2457 $nav = explode('#', $attr['arrowStyle']);
2458 $wraper_after .= '<div class="ultp-slick-prev"><div class="slick-arrow slick-prev">'.ultimate_post()->svg_icon($nav[0]).'</div></div>';
2459 $wraper_after .= '<div class="ultp-slick-next"><div class="slick-arrow slick-next">'.ultimate_post()->svg_icon($nav[1]).'</div></div>';
2460 $wraper_after .= '</div>';
2461 }
2462
2463 $wraper_after .= '</div>'; //.ultp-block-wrapper
2464 $wraper_after .= '</div>'; //.wp-block-ultimate-post-post-slider-1
2465
2466 wp_reset_query();
2467 }
2468
2469 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
2470 }
2471
2472 }