PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
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 / section-heading / attributes.php

attributes.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at blocks/includes/section-heading/attributes.php

195 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Section Heading 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 '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 'dynamicCss' => array(
27 'type' => 'object',
28 'default' => array(),
29 ),
30 'sectionHeadingHTMLTag' => array(
31 'type' => 'string',
32 'default' => 'h2',
33 ),
34 'sectionHeadingLabel' => array(
35 'type' => 'string',
36 'default' => '',
37 ),
38 'sectionHeading' => array(
39 'type' => 'string',
40 'default' => 'heading',
41 ),
42 'showSectionHeading' => array(
43 'type' => 'boolean',
44 'default' => true,
45 ),
46 'showSubHeading' => array(
47 'type' => 'boolean',
48 'default' => false,
49 ),
50 'sectionHeadingClassNames' => array(
51 'type' => 'object',
52 'default' => array(),
53 ),
54 'sectionHeadingStyle' => array(
55 'type' => 'string',
56 'default' => 'section-heading-one',
57 ),
58 'sectionHeadingStyleBackgroundColor' => array(
59 'type' => 'object',
60 'default' => array(
61 'color' => 'var(--smart-post-secondary)',
62 'hover' => '',
63 ),
64 ),
65 'sectionHeadingStyleColor' => array(
66 'type' => 'object',
67 'default' => array(
68 'color' => '#2271B1',
69 'hover' => '',
70 ),
71 ),
72 'sectionHeadingAliment' => array(
73 'type' => 'string',
74 'default' => 'left',
75 ),
76 'sectionHeadingBorderRadius' => array(
77 'type' => 'object',
78 'default' => array(
79 'value' => 0,
80 'unit' => 'px',
81 ),
82 ),
83 'subHeadingLabel' => array(
84 'type' => 'string',
85 'default' => '',
86 ),
87 'sectionSubHeadingAliment' => array(
88 'type' => 'string',
89 'default' => 'left',
90 ),
91 'sectionHeadingLinkUrl' => array(
92 'type' => 'string',
93 'default' => '',
94 ),
95 'sectionHeadingTypography' => array(
96 'type' => 'object',
97 'default' => array(
98 'googleFont' => array(
99 'family' => 'Default',
100 'variants' => array( '300', '400', '500', '600', '700', '800' ),
101 ),
102 'typography' => array(
103 'family' => '',
104 'fontWeight' => '',
105 'style' => '',
106 'transform' => '',
107 'decoration' => '',
108 ),
109 ),
110 ),
111 'sectionHeadingStyleLineHeight' => $this->ranger_attribute( 4 ),
112 'sectionHeadingFontSize' => $this->ranger_attribute(),
113 'sectionHeadingLineHeight' => array(
114 'type' => 'object',
115 'default' => array(
116 'device' => array(
117 'Desktop' => '',
118 'Tablet' => '',
119 'Mobile' => '',
120 ),
121 ),
122 ),
123 'sectionHeadingGlobalTypo' => array(
124 'type' => 'object',
125 'default' => array(),
126 ),
127 'sectionHeadingFontSpacing' => $this->ranger_attribute( 0 ),
128 'sectionHeadingWordSpacing' => $this->ranger_attribute( 0 ),
129 'sectionHeadingColor' => array(
130 'type' => 'object',
131 'default' => array(
132 'color' => '',
133 'hover' => '',
134 ),
135 ),
136 'sectionHeadingMargin' => $this->spacing_attribute( '', '', '', '', 'px', true ),
137 'sectionHeadingPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ),
138 'sectionSubHeadingTypography' => array(
139 'type' => 'object',
140 'default' => array(
141 'googleFont' => array(
142 'family' => 'Default',
143 'variants' => array( '300', '400', '500', '600', '700', '800' ),
144 ),
145 'typography' => array(
146 'family' => '',
147 'fontWeight' => '',
148 'style' => '',
149 'transform' => '',
150 'decoration' => '',
151 ),
152 ),
153 ),
154 'sectionSubHeadingGlobalTypography' => array(
155 'type' => 'object',
156 'default' => array(),
157 ),
158 'sectionSubHeadingFontSize' => $this->ranger_attribute(),
159 'sectionSubHeadingFontSpacing' => $this->ranger_attribute( 0 ),
160 'sectionSubHeadingWordSpacing' => $this->ranger_attribute( 0 ),
161 'sectionSubHeadingLineHeight' => array(
162 'type' => 'object',
163 'default' => array(
164 'device' => array(
165 'Desktop' => '',
166 'Tablet' => '',
167 'Mobile' => '',
168 ),
169 ),
170 ),
171 'sectionSubHeadingColor' => array(
172 'type' => 'object',
173 'default' => array(
174 'color' => '#1A261F',
175 'hover' => '',
176 ),
177 ),
178 'sectionSubHeadingMargin' => $this->spacing_attribute( 0, 0, 0, 0, 'px' ),
179 'sectionHeadingWidth' => array(
180 'type' => 'string',
181 'default' => '100%',
182 ),
183 'isPreview' => array(
184 'type' => 'boolean',
185 'default' => false,
186 ),
187 'customCss' => array( 'type' => 'string' ),
188 'additionalCssClass' => array( 'type' => 'string' ),
189 'globalBreakPointData' => array(
190 'type' => 'object',
191 'default' => array(),
192 ),
193 'headingLineThickness' => $this->ranger_attribute( 2 ),
194 );
195