PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.7
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / blocks / includes / smart-lists / attributes.php

attributes.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.7, at blocks/includes/smart-lists/attributes.php

606 lines 13.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Smart list block attributes file for Smart Post Show Blocks.
4 *
5 * @package Smart_Post_Show_Pro
6 * @subpackage Smart_Post_Show_Pro/blocks/includes
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 die;
11 }
12
13 return array(
14 'isPreview' => array(
15 'type' => 'boolean',
16 'default' => false,
17 ),
18 'uniqueId' => array(
19 'type' => 'string',
20 ),
21 'blockName' => array(
22 'type' => 'string',
23 ),
24 'dynamicCss' => array( 'type' => 'string' ),
25 'fontLists' => array(
26 'type' => 'string',
27 'default' => '',
28 ),
29 // SmartListsGeneralTab.
30 'smartListsLayout' => array(
31 'type' => 'string',
32 'default' => 'layout-one',
33 ),
34 'listOrientation' => array(
35 'type' => 'string',
36 'default' => 'vertical',
37 ),
38 'listsAlignment' => array(
39 'type' => 'string',
40 'default' => 'start',
41 ),
42 'spaceBetweenLists' => $this->ranger_attribute( 8 ),
43 'iconContentGap' => $this->ranger_attribute( 10 ),
44
45 'dividerEnable' => array(
46 'type' => 'boolean',
47 'default' => false,
48 ),
49 'dividerStyle' => array(
50 'type' => 'string',
51 'default' => 'solid',
52 ),
53 'dividerWidth' => array(
54 'type' => 'object',
55 'default' => array(
56 'device' => array(
57 'Desktop' => 1,
58 'Tablet' => '',
59 'Mobile' => '',
60 ),
61 'unit' => array(
62 'Desktop' => 'px',
63 'Tablet' => 'px',
64 'Mobile' => 'px',
65 ),
66 ),
67 ),
68 'dividerColor' => array(
69 'type' => 'string',
70 'default' => '#D9D9D9',
71 ),
72 'connectionLineEnable' => array(
73 'type' => 'boolean',
74 'default' => false,
75 ),
76
77 // SmartListsStyleTab.
78 'smartListsBg' => array(
79 'type' => 'object',
80 'default' => array(
81 'color' => array(
82 'style' => 'bgColor',
83 'solidColor' => 'transparent',
84 'gradient' => '',
85 ),
86 'hover' => array(
87 'style' => 'bgColor',
88 'solidColor' => '',
89 'gradient' => '',
90 ),
91 ),
92 ),
93
94 'smartListsBgImage' => array(
95 'type' => 'object',
96 ),
97 'smartListsRadialShape' => array(
98 'type' => 'string',
99 'default' => 'circle',
100 ),
101 'smartListsRadialPosition' => array(
102 'type' => 'string',
103 'default' => 'center center',
104 ),
105 'smartListsBgImageScale' => array(
106 'type' => 'string',
107 'default' => 'cover',
108 ),
109 'bgImageOverlayEnable' => array(
110 'type' => 'boolean',
111 'default' => false,
112 ),
113 'borderStyle' => array(
114 'type' => 'object',
115 'default' => array(
116 'style' => 'solid',
117 'color' => '#cccccc',
118 ),
119 ),
120 'borderStyleWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
121 'borderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
122 'boxShadowEnable' => array(
123 'type' => 'boolean',
124 'default' => false,
125 ),
126 'boxShadow' => array(
127 'type' => 'object',
128 'default' => array(
129 'device' => array(
130 'Desktop' => array(
131 'top' => 8,
132 'right' => 8,
133 'bottom' => 16,
134 'left' => 0,
135 ),
136 'Tablet' => array(
137 'top' => '',
138 'right' => '',
139 'bottom' => '',
140 'left' => '',
141 ),
142 'Mobile' => array(
143 'top' => '',
144 'right' => '',
145 'bottom' => '',
146 'left' => '',
147 ),
148 ),
149 'unit' => array(
150 'Desktop' => 'outset',
151 'Tablet' => 'outset',
152 'Mobile' => 'outset',
153 ),
154 'color' => '#4E4F521A',
155 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
156 ),
157 ),
158 'smartListsHoverBgImage' => array(
159 'type' => 'object',
160 ),
161 'smartListsHoverRadialShape' => array(
162 'type' => 'string',
163 'default' => 'circle',
164 ),
165 'smartListsHoverRadialPosition' => array(
166 'type' => 'string',
167 'default' => 'center center',
168 ),
169 'smartListsBgHoverImageScale' => array(
170 'type' => 'string',
171 'default' => 'cover',
172 ),
173 'bgImageOverlayHoverEnable' => array(
174 'type' => 'boolean',
175 'default' => false,
176 ),
177 'bgImageHoverOverlayOpacity' => array(
178 'type' => 'number',
179 'default' => 0.5,
180 ),
181 'borderHoverStyle' => array(
182 'type' => 'object',
183 'default' => array(
184 'style' => 'solid',
185 'color' => '#cccccc',
186 ),
187 ),
188 'borderHoverStyleWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
189 'borderHoverRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
190 'boxShadowHoverEnable' => array(
191 'type' => 'boolean',
192 'default' => false,
193 ),
194 'boxShadowHover' => array(
195 'type' => 'object',
196 'default' => array(
197 'device' => array(
198 'Desktop' => array(
199 'top' => 8,
200 'right' => 8,
201 'bottom' => 16,
202 'left' => 0,
203 ),
204 'Tablet' => array(
205 'top' => '',
206 'right' => '',
207 'bottom' => '',
208 'left' => '',
209 ),
210 'Mobile' => array(
211 'top' => '',
212 'right' => '',
213 'bottom' => '',
214 'left' => '',
215 ),
216 ),
217 'unit' => array(
218 'Desktop' => 'outset',
219 'Tablet' => 'outset',
220 'Mobile' => 'outset',
221 ),
222 'color' => '#4E4F521A',
223 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
224 ),
225 ),
226
227 'padding' => $this->spacing_attribute( 12, 12, 12, 12, 'px', true ),
228 'margin' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
229 'bgImageOverlayColor' => array(
230 'type' => 'object',
231 'default' => array(
232 'color' => 'var(--smart-post-secondary)',
233 'hoverColor' => '#012B60',
234 ),
235 ),
236 'bgImageOverlayOpacity' => array(
237 'type' => 'number',
238 'default' => 0.5,
239 ),
240 // IconImageGeneralTab.
241 'iconEnable' => array(
242 'type' => 'boolean',
243 'default' => true,
244 ),
245 'iconSource' => array(
246 'type' => 'string',
247 'default' => 'iconSet',
248 ),
249 'svgIconName' => array(
250 'type' => 'string',
251 'default' => 'FillStar',
252 ),
253 'iconName' => array(
254 'type' => 'string',
255 'default' => 'fas fa-asterisk',
256 ),
257 'iconSize' => array(
258 'type' => 'object',
259 'default' => array(
260 'device' => array(
261 'Desktop' => 24,
262 'Tablet' => '',
263 'Mobile' => '',
264 ),
265 'unit' => array(
266 'Desktop' => 'px',
267 'Tablet' => 'px',
268 'Mobile' => 'px',
269 ),
270 ),
271 ),
272 'iconSourceCustom' => array(
273 'type' => 'object',
274 ),
275 'iconCustomWidth' => array(
276 'type' => 'object',
277 'default' => array(
278 'device' => array(
279 'Desktop' => 24,
280 'Tablet' => '',
281 'Mobile' => '',
282 ),
283 'unit' => array(
284 'Desktop' => 'px',
285 'Tablet' => 'px',
286 'Mobile' => 'px',
287 ),
288 ),
289 ),
290
291 'iconCustomHeight' => array(
292 'type' => 'object',
293 'default' => array(
294 'device' => array(
295 'Desktop' => 24,
296 'Tablet' => '',
297 'Mobile' => '',
298 ),
299 'unit' => array(
300 'Desktop' => 'px',
301 'Tablet' => 'px',
302 'Mobile' => 'px',
303 ),
304 ),
305 ),
306 'iconPosition' => array(
307 'type' => 'string',
308 'default' => '0',
309 ),
310 'iconAlignment' => array(
311 'type' => 'string',
312 'default' => 'center',
313 ),
314 // IconImageStyleTab.
315 'iconBackgroundEnable' => array(
316 'type' => 'boolean',
317 'default' => false,
318 ),
319 'backgroundShape' => array(
320 'type' => 'string',
321 'default' => 'backgroundShapeSquare',
322 ),
323 'iconColor' => array(
324 'type' => 'object',
325 'default' => array(
326 'color' => '#757575',
327 'hoverColor' => '#757575',
328 ),
329 ),
330 'iconBg' => array(
331 'type' => 'object',
332 'default' => array(
333 'color' => array(
334 'style' => 'bgColor',
335 'solidColor' => '#dddddd',
336 'gradient' => 'linear-gradient(135deg, #D70067, #D76700, #F59E0B)',
337 ),
338 'hover' => array(
339 'style' => 'bgColor',
340 'solidColor' => '#dddddd',
341 'gradient' => 'linear-gradient(135deg, #D70067, #D76700, #F59E0B)',
342 ),
343 ),
344 ),
345 'iconBgRadialShape' => array(
346 'type' => 'string',
347 'default' => 'circle',
348 ),
349 'iconBgRadialPosition' => array(
350 'type' => 'string',
351 'default' => 'center center',
352 ),
353 'iconBorderStyle' => array(
354 'type' => 'object',
355 'default' => array(
356 'style' => 'solid',
357 'color' => '#cccccc',
358 ),
359 ),
360 'iconBorderStyleWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
361 'iconBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
362 'iconBgHoverRadialShape' => array(
363 'type' => 'string',
364 'default' => 'circle',
365 ),
366 'iconBgHoverRadialPosition' => array(
367 'type' => 'string',
368 'default' => 'center center',
369 ),
370 'iconHoverBorderStyle' => array(
371 'type' => 'object',
372 'default' => array(
373 'style' => 'solid',
374 'color' => '#cccccc',
375 ),
376 ),
377 'iconHoverBorderStyleWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
378 'iconHoverBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
379 'iconPadding' => $this->spacing_attribute( 6, 6, 6, 6, 'px', true ),
380
381 // ContentGeneralTab.
382 'listTitleEnable' => array(
383 'type' => 'boolean',
384 'default' => true,
385 ),
386 'descriptionEnable' => array(
387 'type' => 'boolean',
388 'default' => false,
389 ),
390 'titleDescriptionGap' => array(
391 'type' => 'object',
392 'default' => array(
393 'device' => array(
394 'Desktop' => 6,
395 'Tablet' => '',
396 'Mobile' => '',
397 ),
398 'unit' => array(
399 'Desktop' => 'px',
400 'Tablet' => 'px',
401 'Mobile' => 'px',
402 ),
403 ),
404 ),
405 'contentAlignment' => array(
406 'type' => 'string',
407 'default' => 'left',
408 ),
409 // ContentStyleTab.
410 'titleTypography' => array(
411 'type' => 'object',
412 'default' => array(
413 'googleFont' => array(
414 'family' => '',
415 'variants' => array( '300', '400', '500', '600', '700', '800' ),
416 ),
417 'typography' => array(
418 'family' => '',
419 'fontWeight' => '500',
420 'style' => 'normal',
421 'transform' => 'none',
422 'decoration' => 'none',
423 ),
424 ),
425 ),
426 'titleFontSize' => array(
427 'type' => 'object',
428 'default' => array(
429 'device' => array(
430 'Desktop' => 16,
431 'Tablet' => '',
432 'Mobile' => '',
433 ),
434 'unit' => array(
435 'Desktop' => 'px',
436 'Tablet' => 'px',
437 'Mobile' => 'px',
438 ),
439 ),
440 ),
441 'titleLatterSpacing' => array(
442 'type' => 'object',
443 'default' => array(
444 'device' => array(
445 'Desktop' => 0,
446 'Tablet' => '',
447 'Mobile' => '',
448 ),
449 'unit' => array(
450 'Desktop' => 'px',
451 'Tablet' => 'px',
452 'Mobile' => 'px',
453 ),
454 ),
455 ),
456 'titleLineHeight' => array(
457 'type' => 'object',
458 'default' => array(
459 'device' => array(
460 'Desktop' => 1.3,
461 'Tablet' => '',
462 'Mobile' => '',
463 ),
464 // 'unit' => array(
465 // 'Desktop' => '%',
466 // 'Tablet' => 'px',
467 // 'Mobile' => 'px',
468 // ),
469 ),
470 ),
471 'titleWordSpacing' => array(
472 'type' => 'object',
473 'default' => array(
474 'device' => array(
475 'Desktop' => 0,
476 'Tablet' => '',
477 'Mobile' => '',
478 ),
479 'unit' => array(
480 'Desktop' => 'px',
481 'Tablet' => 'px',
482 'Mobile' => 'px',
483 ),
484 ),
485 ),
486 'descriptionTypography' => array(
487 'type' => 'object',
488 'default' => array(
489 'googleFont' => array(
490 'family' => '',
491 'variants' => array( '300', '400', '500', '600', '700', '800' ),
492 ),
493 'typography' => array(
494 'family' => '',
495 'fontWeight' => '400',
496 'style' => 'normal',
497 'transform' => 'none',
498 'decoration' => 'none',
499 ),
500 ),
501 ),
502 'descriptionFontSize' => array(
503 'type' => 'object',
504 'default' => array(
505 'device' => array(
506 'Desktop' => 11,
507 'Tablet' => '',
508 'Mobile' => '',
509 ),
510 'unit' => array(
511 'Desktop' => 'px',
512 'Tablet' => 'px',
513 'Mobile' => 'px',
514 ),
515 ),
516 ),
517 'descriptionLatterSpacing' => array(
518 'type' => 'object',
519 'default' => array(
520 'device' => array(
521 'Desktop' => 0,
522 'Tablet' => '',
523 'Mobile' => '',
524 ),
525 'unit' => array(
526 'Desktop' => 'px',
527 'Tablet' => 'px',
528 'Mobile' => 'px',
529 ),
530 ),
531 ),
532
533 'descriptionLineHeight' => array(
534 'type' => 'object',
535 'default' => array(
536 'device' => array(
537 'Desktop' => 1.2,
538 'Tablet' => '',
539 'Mobile' => '',
540 ),
541 ),
542 ),
543 'descriptionWordSpacing' => array(
544 'type' => 'object',
545 'default' => array(
546 'device' => array(
547 'Desktop' => 0,
548 'Tablet' => '',
549 'Mobile' => '',
550 ),
551 'unit' => array(
552 'Desktop' => 'px',
553 'Tablet' => 'px',
554 'Mobile' => 'px',
555 ),
556 ),
557 ),
558 'titleColor' => array(
559 'type' => 'object',
560 'default' => array(
561 'color' => '#2F2F2F',
562 'hoverColor' => '#2F2F2F',
563 ),
564 ),
565 'descriptionColor' => array(
566 'type' => 'object',
567 'default' => array(
568 'color' => '#757575',
569 'hoverColor' => '#757575',
570 ),
571 ),
572
573 // AdvancedTab.
574 'additionalCssClass' => array(
575 'type' => 'string',
576 'default' => '',
577 ),
578 'hideOnDesktop' => array(
579 'type' => 'boolean',
580 'default' => false,
581 ),
582 'hideOnTablet' => array(
583 'type' => 'boolean',
584 'default' => false,
585 ),
586 'hideOnMobile' => array(
587 'type' => 'boolean',
588 'default' => false,
589 ),
590 'listItemsWidth' => array(
591 'type' => 'object',
592 'default' => array(
593 'device' => array(
594 'Desktop' => '',
595 'Tablet' => '',
596 'Mobile' => '',
597 ),
598 'unit' => array(
599 'Desktop' => 'px',
600 'Tablet' => 'px',
601 'Mobile' => 'px',
602 ),
603 ),
604 ),
605 );
606