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-image / 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-image/attributes.php

556 lines 15.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Smart image 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 'blockName' => array(
15 'type' => 'string',
16 'default' => '',
17 ),
18 'uniqueId' => array(
19 'type' => 'string',
20 'default' => '',
21 ),
22 'fontLists' => array(
23 'type' => 'string',
24 'default' => '',
25 ),
26 'fontListsEditPage' => array(
27 'type' => 'string',
28 'default' => '',
29 ),
30 'customCss' => array(
31 'type' => 'string',
32 'default' => '',
33 ),
34 'selectImageSizes' => array(
35 'type' => 'array',
36 'default' => array(),
37 ),
38 'selectImage' => array(
39 'type' => 'object',
40 'default' => array(),
41 ),
42 'selectImageId' => array(
43 'type' => 'number',
44 'default' => '',
45 ),
46 'imageSize' => array(
47 'type' => 'string',
48 'default' => 'full',
49 ),
50 'aspectRatio' => array(
51 'type' => 'string',
52 'default' => 'original',
53 ),
54 'maxWidth' => $this->ranger_attribute( '', '', '', '%' ),
55 'smartImageWidth' => $this->ranger_attribute( '', '', '', 'px' ),
56 'smartImageHeight' => $this->ranger_attribute( '', '', '', 'px' ),
57 'imageZoom' => $this->ranger_attribute( 1.1, '', '', false ),
58 'imageFocalPoint' => array(
59 'type' => 'object',
60 'default' => array(
61 'x' => 0.5,
62 'y' => 0.5,
63 ),
64 ),
65 'enableLink' => array(
66 'type' => 'boolean',
67 'default' => false,
68 ),
69 'linkType' => array(
70 'type' => 'string',
71 'default' => 'full-img',
72 ),
73 'linkUrl' => array(
74 'type' => 'string',
75 'default' => '',
76 ),
77 'openInTab' => array(
78 'type' => 'boolean',
79 'default' => false,
80 ),
81 'buttonLabel' => array(
82 'type' => 'string',
83 'default' => 'View Details',
84 ),
85 'buttonPosition' => array(
86 'type' => 'string',
87 'default' => 'center-center',
88 ),
89 'imageAltText' => array(
90 'type' => 'string',
91 'default' => '',
92 ),
93 'doubleResolutionRetina' => array(
94 'type' => 'boolean',
95 'default' => false,
96 ),
97 'lazyLoad' => array(
98 'type' => 'boolean',
99 'default' => false,
100 ),
101 'imageBorder' => array(
102 'type' => 'object',
103 'default' => array(
104 'style' => 'none',
105 'color' => '#ddd',
106 'hoverColor' => '#ddd',
107 ),
108 ),
109 'imageBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ),
110 'imageBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ),
111 'imageBoxShadowEnable' => array(
112 'type' => 'boolean',
113 'default' => false,
114 ),
115 'imageBoxShadow' => array(
116 'type' => 'object',
117 'default' => array(
118 'device' => array(
119 'Desktop' => array(
120 'top' => '',
121 'right' => '',
122 'bottom' => '',
123 'left' => '',
124 ),
125 'Tablet' => array(
126 'top' => '',
127 'right' => '',
128 'bottom' => '',
129 'left' => '',
130 ),
131 'Mobile' => array(
132 'top' => '',
133 'right' => '',
134 'bottom' => '',
135 'left' => '',
136 ),
137 ),
138 'unit' => array(
139 'Desktop' => 'outset',
140 'Tablet' => 'outset',
141 'Mobile' => 'outset',
142 ),
143 'color' => '#F2F2F2',
144 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
145 ),
146 ),
147 'imageFilter' => array(
148 'type' => 'boolean',
149 'default' => false,
150 ),
151 'imageBlur' => $this->ranger_attribute( '', '', '', false ),
152 'imageBrightness' => $this->ranger_attribute( '', '', '', false ),
153 'imageContrast' => $this->ranger_attribute( '', '', '', false ),
154 'imageSaturation' => $this->ranger_attribute( '', '', '', false ),
155 'imageHue' => $this->ranger_attribute( '', '', '', false ),
156 'linkBtnTypography' => array(
157 'type' => 'object',
158 'default' => array(
159 'googleFont' => array(
160 'family' => 'Default',
161 'variants' => array( '300', '400', '500', '600', '700', '800' ),
162 ),
163 'typography' => array(
164 'family' => '',
165 'fontWeight' => '600',
166 'style' => 'normal',
167 'transform' => 'capitalize',
168 'decoration' => 'none',
169 ),
170 ),
171 ),
172 'linkBtnFontSize' => $this->ranger_attribute( 19, '', '', 'px' ),
173 'linkBtnLineHeight' => array(
174 'type' => 'object',
175 'default' => array(
176 'device' => array(
177 'Desktop' => '',
178 'Tablet' => '',
179 'Mobile' => '',
180 ),
181 ),
182 ),
183 'linkBtnLetterSpacing' => $this->ranger_attribute( 0, '', '', 'px' ),
184 'linkBtnWordSpacing' => $this->ranger_attribute( '', '', '', 'px' ),
185 'linkButtonColor' => array(
186 'type' => 'object',
187 'default' => array(
188 'color' => '#FFFFFF',
189 'hover' => '',
190 ),
191 ),
192 'linkButtonBg' => array(
193 'type' => 'object',
194 'default' => array(
195 'color' => array(
196 'style' => 'bgColor',
197 'transparent' => '',
198 'solidColor' => '#1A74E4',
199 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
200 ),
201 'hover' => array(
202 'style' => '',
203 'transparent' => '',
204 'solidColor' => '',
205 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
206 ),
207 ),
208 ),
209 'linkButtonBorder' => array(
210 'type' => 'object',
211 'default' => array(
212 'style' => 'none',
213 'color' => '#ddd',
214 'hoverColor' => '#ddd',
215 ),
216 ),
217 'linkBtnBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ),
218 'linkBtnBorderWidthHover' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ),
219 'linkBtnBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ),
220 'linkBtnBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ),
221 'linkBtnBoxShadowEnable' => array(
222 'type' => 'boolean',
223 'default' => false,
224 ),
225 'linkBtnBoxShadow' => array(
226 'type' => 'object',
227 'default' => array(
228 'device' => array(
229 'Desktop' => array(
230 'top' => '',
231 'right' => '',
232 'bottom' => '',
233 'left' => '',
234 ),
235 'Tablet' => array(
236 'top' => '',
237 'right' => '',
238 'bottom' => '',
239 'left' => '',
240 ),
241 'Mobile' => array(
242 'top' => '',
243 'right' => '',
244 'bottom' => '',
245 'left' => '',
246 ),
247 ),
248 'unit' => array(
249 'Desktop' => 'outset',
250 'Tablet' => 'outset',
251 'Mobile' => 'outset',
252 ),
253 'color' => '#F2F2F2',
254 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
255 ),
256 ),
257 'linkBtnBoxShadowEnableHover' => array(
258 'type' => 'boolean',
259 'default' => false,
260 ),
261 'linkBtnBoxShadowHover' => array(
262 'type' => 'object',
263 'default' => array(
264 'device' => array(
265 'Desktop' => array(
266 'top' => '',
267 'right' => '',
268 'bottom' => '',
269 'left' => '',
270 ),
271 'Tablet' => array(
272 'top' => '',
273 'right' => '',
274 'bottom' => '',
275 'left' => '',
276 ),
277 'Mobile' => array(
278 'top' => '',
279 'right' => '',
280 'bottom' => '',
281 'left' => '',
282 ),
283 ),
284 'unit' => array(
285 'Desktop' => 'outset',
286 'Tablet' => 'outset',
287 'Mobile' => 'outset',
288 ),
289 'color' => '#F2F2F2',
290 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
291 ),
292 ),
293 'linkBtnPadding' => $this->spacing_attribute( 12, 22, 12, 22, 'px', false ),
294 'imgMaskingEnable' => array(
295 'type' => 'boolean',
296 'default' => false,
297 ),
298 'imageShapeSet' => array(
299 'type' => 'string',
300 'default' => 'shape-set',
301 ),
302 'selectImageShape' => array(
303 'type' => 'string',
304 'default' => 'original',
305 ),
306 'maskingShapedUpload' => array(
307 'type' => 'object',
308 'default' => array(),
309 ),
310 'maskSize' => array(
311 'type' => 'string',
312 'default' => 'contain',
313 ),
314 'smartImgBgEnable' => array(
315 'type' => 'boolean',
316 'default' => false,
317 ),
318 'smartImgBg' => array(
319 'type' => 'object',
320 'default' => array(
321 'color' => array(
322 'style' => 'bgColor',
323 'solidColor' => '',
324 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
325 ),
326 'hover' => array(
327 'style' => '',
328 'solidColor' => '',
329 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
330 ),
331 ),
332 ),
333 // 'smartImgBgType' => array(
334 // 'type' => 'string',
335 // 'default' => 'image',
336 // ),
337 'smartImageBgImage' => array(
338 'type' => 'object',
339 'default' => array(),
340 ),
341 'smartImgOverlayType' => array(
342 'type' => 'string',
343 'default' => 'custom',
344 ),
345 'smartImgOverlayColor' => array(
346 'type' => 'object',
347 'default' => array(
348 'color' => '',
349 'hover' => '',
350 ),
351 ),
352 'smartBgImgOverlayBlandMode' => array(
353 'type' => 'string',
354 'default' => 'normal',
355 ),
356 'smartBgImgBlur' => $this->ranger_attribute( 2.5, '', '', false ),
357 'smartBgImgOverlayBlandModeHover' => array(
358 'type' => 'string',
359 'default' => 'normal',
360 ),
361 'smartBgImgBlurHover' => $this->ranger_attribute( 5, '', '', false ),
362 'smartBgImgBorder' => array(
363 'type' => 'object',
364 'default' => array(
365 'style' => 'none',
366 'color' => '#ddd',
367 'hoverColor' => '#ddd',
368 ),
369 ),
370 'smartBgImgBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ),
371 // 'smartBgImgBorderRadius' => array(
372 // 'type' => 'object',
373 // 'default' => array(
374 // 'top' => '',
375 // 'right' => '',
376 // 'bottom' => '',
377 // 'left' => '',
378 // 'unit' => 'px',
379 // 'allChange' => true,
380 // ),
381 // ),
382 'smartBgImgBorderRadius' => array(
383 'type' => 'object',
384 'default' => array(
385 'value' => array(
386 'top' => '',
387 'right' => '',
388 'bottom' => '',
389 'left' => '',
390 ),
391 'unit' => 'px',
392 'allChange' => true,
393 ),
394 ),
395 'smartBgFixImage' => array(
396 'type' => 'boolean',
397 'default' => false,
398 ),
399 'smartBgImgInnerPadding' => $this->spacing_attribute( 0, 0, 0, 0, 'px', false ),
400 'imgTitleEnable' => array(
401 'type' => 'boolean',
402 'default' => false,
403 ),
404 'imgTitleLabel' => array(
405 'type' => 'string',
406 'default' => '',
407 ),
408 'imgTitleTypography' => array(
409 'type' => 'object',
410 'default' => array(
411 'googleFont' => array(
412 'family' => 'Default',
413 'variants' => array( '300', '400', '500', '600', '700', '800' ),
414 ),
415 'typography' => array(
416 'family' => '',
417 'fontWeight' => '600',
418 'style' => 'normal',
419 'transform' => 'capitalize',
420 'decoration' => 'none',
421 ),
422 ),
423 ),
424 'imgTitleFontSize' => $this->ranger_attribute( 16, '', '', 'px' ),
425 'imgTitleLineHeight' => array(
426 'type' => 'object',
427 'default' => array(
428 'device' => array(
429 'Desktop' => '',
430 'Tablet' => '',
431 'Mobile' => '',
432 ),
433 ),
434 ),
435 'imgTitleLetterSpacing' => $this->ranger_attribute( 0, '', '', 'px' ),
436 'imgTitleWordSpacing' => $this->ranger_attribute( 4, '', '', 'px' ),
437 'imgCaptionEnable' => array(
438 'type' => 'boolean',
439 'default' => false,
440 ),
441 'imgCaptionLabel' => array(
442 'type' => 'string',
443 'default' => '',
444 ),
445 'imgCaptionTypography' => array(
446 'type' => 'object',
447 'default' => array(
448 'googleFont' => array(
449 'family' => 'Default',
450 'variants' => array( '300', '400', '500', '600', '700', '800' ),
451 ),
452 'typography' => array(
453 'family' => '',
454 'fontWeight' => '400',
455 'style' => 'normal',
456 'transform' => 'capitalize',
457 'decoration' => 'none',
458 ),
459 ),
460 ),
461 'imgCapFontSize' => $this->ranger_attribute( 16, '', '', 'px' ),
462 'imgCapLineHeight' => array(
463 'type' => 'object',
464 'default' => array(
465 'device' => array(
466 'Desktop' => '',
467 'Tablet' => '',
468 'Mobile' => '',
469 ),
470 ),
471 ),
472 'imgCapLetterSpacing' => $this->ranger_attribute( 0, '', '', 'px' ),
473 'imgCapWordSpacing' => $this->ranger_attribute( 4, '', '', 'px' ),
474 'imgTextVisibility' => array(
475 'type' => 'string',
476 'default' => 'show-always',
477 ),
478 'imgTextColor' => array(
479 'type' => 'object',
480 'default' => array(
481 'color' => '',
482 'hover' => '',
483 ),
484 ),
485 'imgTextPosition' => array(
486 'type' => 'string',
487 'default' => 'bottom',
488 ),
489 'imgTextHorizontal' => array(
490 'type' => 'string',
491 'default' => 'center',
492 ),
493 'imgTextVertical' => array(
494 'type' => 'string',
495 'default' => 'bottom',
496 ),
497 'imgTextPadding' => $this->spacing_attribute( 20, 20, 20, 20, 'px', false ),
498 'imgAnimationEffect' => array(
499 'type' => 'string',
500 'default' => '',
501 ),
502 'imgAnimationSpeed' => $this->ranger_attribute( 0.5, '', '', 's' ),
503 'imgAnimationLineWidth' => $this->ranger_attribute( 2, '', '', 'px' ),
504 'imgAnimationNormal' => array(
505 'type' => 'string',
506 'default' => 'zoom-in',
507 ),
508 'imgHoverOverlayEnable' => array(
509 'type' => 'boolean',
510 'default' => false,
511 ),
512 'imgHoverOverlayColor' => array(
513 'type' => 'object',
514 'default' => array(
515 'color' => array(
516 'style' => 'bgColor',
517 'solidColor' => '',
518 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
519 ),
520 'hover' => array(
521 'style' => '',
522 'solidColor' => '',
523 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
524 ),
525 ),
526 ),
527 'additionalCssClass' => array(
528 'type' => 'string',
529 'default' => '',
530 ),
531 'hideOnDesktop' => array(
532 'type' => 'boolean',
533 'default' => false,
534 ),
535 'hideOnTablet' => array(
536 'type' => 'boolean',
537 'default' => false,
538 ),
539 'hideOnMobile' => array(
540 'type' => 'boolean',
541 'default' => false,
542 ),
543 'generateImgPrompt' => array(
544 'type' => 'string',
545 'default' => '',
546 ),
547 'imgHoverEffectOpacity' => array(
548 'type' => 'number',
549 'default' => 0.6,
550 ),
551 'imgAlignment' => array(
552 'type' => 'string',
553 'default' => 'left',
554 ),
555 );
556