PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.3
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.3
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 / button / attributes.php

attributes.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.3, at blocks/includes/button/attributes.php

291 lines 7.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Button 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 exit;
11 }
12
13 return array(
14 'uniqueId' => array(
15 'type' => 'string',
16 'default' => '',
17 ),
18 'innerBlockId' => array(
19 'type' => 'string',
20 'default' => '',
21 ),
22 'dynamicCss' => array( 'type' => 'string' ),
23 'buttonLabel' => array(
24 'type' => 'string',
25 'default' => 'Click Here',
26 ),
27 'buttonLabelTypography' => array(
28 'type' => 'object',
29 'default' => array(
30 'googleFont' => array(
31 'family' => 'Default',
32 'variants' => array( '300', '400', '500', '600', '700', '800' ),
33 ),
34 'typography' => array(
35 'family' => '',
36 'fontWeight' => '',
37 'style' => '',
38 'transform' => '',
39 'decoration' => '',
40 ),
41 ),
42 ),
43 'buttonLabelGlobalTypography' => array(
44 'type' => 'object',
45 'default' => array(),
46 ),
47 'buttonLabelLineHeight' => array(
48 'type' => 'object',
49 'default' => array(
50 'device' => array(
51 'Desktop' => '',
52 'Tablet' => '',
53 'Mobile' => '',
54 ),
55 ),
56 ),
57 'buttonLabelFontSize' => $this->ranger_attribute(),
58 'buttonLabelLatterSpacing' => $this->ranger_attribute(),
59 'buttonLabelWordSpacing' => $this->ranger_attribute(),
60 'buttonLabelColor' => array(
61 'type' => 'object',
62 'default' => array(
63 'color' => '#ffffffff',
64 'hoverColor' => '',
65 ),
66 ),
67 'buttonLabelMargin' => $this->spacing_attribute( '0', '0', '15', '0', 'px', false ),
68 'iconSource' => array(
69 'type' => 'string',
70 'default' => 'chevron-solid',
71 ),
72 'iconSize' => $this->ranger_attribute( 14 ),
73 'iconGap' => $this->ranger_attribute( 8 ),
74 'iconColor' => array(
75 'type' => 'object',
76 'default' => array(
77 'color' => '#fff',
78 'hoverColor' => '',
79 ),
80 ),
81 'iconPosition' => array(
82 'type' => 'string',
83 'default' => 'right',
84 ),
85 'buttonBgColor' => array(
86 'type' => 'object',
87 'default' => array(
88 'color' => '',
89 'hoverColor' => 'var(--smart-post-secondary)',
90 ),
91 ),
92 'buttonBorder' => array(
93 'type' => 'object',
94 'default' => array(
95 'style' => 'solid',
96 'color' => 'var(--smart-post-secondary)',
97 ),
98 ),
99 'buttonBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ),
100
101
102 'buttonBorderGradient' => array(
103 'type' => 'object',
104 'default' => array(
105 'style' => 'solid',
106 'color' => 'var(--smart-post-secondary)',
107 ),
108 ),
109 'buttonBorderGradientWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
110
111
112 'buttonBorderGradientHover' => array(
113 'type' => 'object',
114 'default' => array(
115 'style' => 'solid',
116 'color' => 'var(--smart-post-secondary)',
117 ),
118 ),
119 'buttonBorderGradientWidthHover' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
120 'buttonBorderGradientRadiusHover' => $this->spacing_attribute( 5, 5, 5, 5, 'px', true ),
121
122
123 'buttonHoverBorder' => array(
124 'type' => 'object',
125 'default' => array(
126 'style' => 'solid',
127 'color' => 'var(--smart-post-secondary)',
128 ),
129 ),
130 'buttonHoverBorderWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
131 'buttonBorderRadius' => $this->spacing_attribute( 5, 5, 5, 5, 'px', true ),
132
133 'buttonHoverBorderRadius' => $this->spacing_attribute( 5, 5, 5, 5, 'px', true ),
134 'buttonBoxShadowEnable' => array(
135 'type' => 'boolean',
136 'default' => false,
137 ),
138 'buttonHoverBoxShadowEnable' => array(
139 'type' => 'boolean',
140 'default' => false,
141 ),
142 'buttonBoxShadow' => array(
143 'type' => 'object',
144 'default' => array(
145 'device' => array(
146 'Desktop' => array(
147 'top' => 8,
148 'right' => 8,
149 'bottom' => 16,
150 'left' => 0,
151 ),
152 'Tablet' => array(
153 'top' => '',
154 'right' => '',
155 'bottom' => '',
156 'left' => '',
157 ),
158 'Mobile' => array(
159 'top' => '',
160 'right' => '',
161 'bottom' => '',
162 'left' => '',
163 ),
164 ),
165 'unit' => array(
166 'Desktop' => 'outset',
167 'Tablet' => 'outset',
168 'Mobile' => 'outset',
169 ),
170 'color' => '#4E4F521A',
171 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
172 ),
173 ),
174 'buttonHoverBoxShadow' => array(
175 'type' => 'object',
176 'default' => array(
177 'device' => array(
178 'Desktop' => array(
179 'top' => 8,
180 'right' => 8,
181 'bottom' => 16,
182 'left' => 0,
183 ),
184 'Tablet' => array(
185 'top' => '',
186 'right' => '',
187 'bottom' => '',
188 'left' => '',
189 ),
190 'Mobile' => array(
191 'top' => '',
192 'right' => '',
193 'bottom' => '',
194 'left' => '',
195 ),
196 ),
197 'unit' => array(
198 'Desktop' => 'outset',
199 'Tablet' => 'outset',
200 'Mobile' => 'outset',
201 ),
202 'color' => '#4E4F521A',
203 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
204 ),
205 ),
206 'buttonLink' => array(
207 'type' => 'string',
208 'default' => '#',
209 ),
210 'buttonPadding' => $this->spacing_attribute( 14, 28, 14, 28, 'px', false ),
211 'buttonStyle' => array(
212 'type' => 'string',
213 'default' => 'default',
214 ),
215 'hoverEffects' => array(
216 'type' => 'string',
217 'default' => 'defaultHover',
218 ),
219 'shadowColor' => array(
220 'type' => 'string',
221 'default' => '#641DD7',
222 ),
223 'buttonGradientBg' => array(
224 'type' => 'string',
225 'default' => 'linear-gradient(81deg, #FF0035 1.03%, #F902CB 45.49%, #5D13FF 97.36%)',
226 ),
227 'buttonGradientHoverBg' => array(
228 'type' => 'string',
229 'default' => 'linear-gradient(81deg, #5D13FF 1.03%, #F902CB 45.49%, #FF0035 97.36%)',
230 ),
231
232 'openNewTab' => array(
233 'type' => 'boolean',
234 'default' => false,
235 ),
236 'enableIcon' => array(
237 'type' => 'boolean',
238 'default' => false,
239 ),
240 'additionalCssClass' => array(
241 'type' => 'string',
242 'default' => '',
243 ),
244 'customCss' => array(
245 'type' => 'string',
246 'default' => '',
247 ),
248 'buttonLabelEnable' => array(
249 'type' => 'boolean',
250 'default' => true,
251 ),
252 'hideOnDesktop' => array(
253 'type' => 'boolean',
254 'default' => false,
255 ),
256 'hideOnTablet' => array(
257 'type' => 'boolean',
258 'default' => false,
259 ),
260 'hideOnMobile' => array(
261 'type' => 'boolean',
262 'default' => false,
263 ),
264 'smartBtnIconSize' => array(
265 'type' => 'object',
266 'default' => array(
267 'device' => array(
268 'Desktop' => 14,
269 'Tablet' => '',
270 'Mobile' => '',
271 ),
272 'unit' => array(
273 'Desktop' => 'px',
274 'Tablet' => 'px',
275 'Mobile' => 'px',
276 ),
277 ),
278 ),
279 'smartBtnIconColor' => array(
280 'type' => 'object',
281 'default' => array(
282 'color' => '#FFF',
283 'hover' => '',
284 ),
285 ),
286 'globalBreakPointData' => array(
287 'type' => 'object',
288 'default' => array(),
289 ),
290 );
291