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