PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.2
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.2
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.2, at blocks/includes/smart-lists/attributes.php

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