PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.11.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.11.1
2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 All 80 releases
ablocks / includes / blocks / taxonomy-listing / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.11.1, at includes/blocks/taxonomy-listing/attributes.php

279 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 use ABlocks\Controls\Alignment;
8 use ABlocks\Controls\Typography;
9 use ABlocks\Controls\BoxShadow;
10 use ABlocks\Controls\Icon;
11
12 $attributes = [
13 'block_id' => [
14 'type' => 'string',
15 'default' => '',
16 ],
17 'selectedPostType' => [
18 'type' => 'string',
19 'default' => 'post',
20 ],
21 'selectedTerms' => [
22 'type' => 'object',
23 'default' => [],
24 ],
25 'activeTaxonomy' => [
26 'type' => 'array',
27 'default' => [],
28 ],
29 'selectedTaxonomies' => [
30 'type' => 'array',
31 'default' => [],
32 ],
33 'numberOfPosts' => [
34 'type' => 'number',
35 'default' => 6,
36 ],
37 'postOrder' => [
38 'type' => 'string',
39 'default' => 'desc',
40 ],
41 'postOrderBy' => [
42 'type' => 'string',
43 'default' => 'date',
44 ],
45 'taxonomyLayout' => [
46 'type' => 'string',
47 'default' => 'flex',
48 'copyStyle' => true,
49 ],
50 'pageLinks' => [
51 'type' => 'string',
52 'default' => 'singlePagelink',
53 'copyStyle' => true,
54 ],
55 'itemsPerRow' => [
56 'type' => 'number',
57 'default' => 3,
58 'copyStyle' => true,
59 ],
60 'showTermCount' => [
61 'type' => 'boolean',
62 'default' => true,
63 ],
64 'enableReloadButton' => [
65 'type' => 'boolean',
66 'default' => false,
67 ],
68 'allowIcon' => [
69 'type' => 'boolean',
70 'default' => false,
71 ],
72 'textPostColor' => [
73 'type' => 'string',
74 'default' => false,
75 ],
76 'postCountBorder' => [
77 'type' => 'object',
78 'default' => '',
79 ],
80 'postCountBgColor' => [
81 'type' => 'string',
82 'default' => '',
83 ],
84 'postCountColor' => [
85 'type' => 'string',
86 'default' => '',
87 ],
88 'taxonomyTitlePadding' => [
89 'type' => 'object',
90 'default' => '',
91 ],
92 'taxonomyTitletBgColor' => [
93 'type' => 'string',
94 'default' => '',
95 ],
96 'taxonomyTitlecolor' => [
97 'type' => 'string',
98 'default' => '',
99 ],
100 'taxonomyTitleDirection' => [
101 'type' => 'object',
102 'default' => '',
103 ],
104 'taxonomyTitlePosition' => [
105 'type' => 'object',
106 'default' => 'space-between',
107 ],
108 'taxonomyTitleBorder' => [
109 'type' => 'object',
110 'default' => '2',
111 ],
112 'postTitleColor' => [
113 'type' => 'string',
114 'default' => '',
115 ],
116 'postTitleHoverColor' => [
117 'type' => 'string',
118 'default' => '',
119 ],
120 'postTitleTypography' => [
121 'type' => 'object',
122 'default' => '',
123 ],
124 'buttonPadding' => [
125 'type' => 'object',
126 'default' => '',
127 ],
128 'buttonBorder' => [
129 'type' => 'object',
130 'default' => '',
131 ],
132 'butttonColor' => [
133 'type' => 'string',
134 'default' => '',
135 ],
136 'buttonBgColor' => [
137 'type' => 'string',
138 'default' => '',
139 ],
140 'buttonHoverBgColor' => [
141 'type' => 'string',
142 'default' => '',
143 ],
144 'buttonColor' => [
145 'type' => 'string',
146 'default' => '',
147 ],
148 'buttonHoverColor' => [
149 'type' => 'string',
150 'default' => '',
151 ],
152 'buttonTypography' => [
153 'type' => 'object',
154 'default' => '',
155 ],
156 'buttonPosition' => [
157 'type' => 'object',
158 'default' => 'block',
159 ],
160 'cardBgColor' => [
161 'type' => 'string',
162 'default' => 'block',
163 ],
164 'cardPadding' => [
165 'type' => 'object',
166 'default' => 'block',
167 ],
168 'cardBorder' => [
169 'type' => 'object',
170 'default' => 'block',
171 ],
172
173 'icon' => [
174 'type' => 'object',
175 'default' => 'block',
176 ],
177 'buttonText' => [
178 'type' => 'string',
179 'default' => 'View More',
180 ],
181 'showTab' => [
182 'type' => 'boolean',
183 'default' => false
184 ],
185 'showTabScrolling' => [
186 'type' => 'boolean',
187 'default' => false
188 ],
189 'hoverPostBackgroundColor' => [
190 'type' => 'string',
191 'default' => '',
192 ],
193 'activePostBackgroundColor' => [
194 'type' => 'string',
195 'default' => '',
196 ],
197 'postTitleActiveColor' => [
198 'type' => 'string',
199 'default' => '',
200 ],
201 'activePostBorder' => [
202 'type' => 'object',
203 'default' => '',
204 ],
205 'postBorder' => [
206 'type' => 'object',
207 'default' => '',
208 ],
209 'postBackgroundColor' => [
210 'type' => 'string',
211 'default' => '',
212 ],
213 'showPost' => [
214 'type' => 'boolean',
215 'default' => true,
216 ],
217 'cardBgHoverColor' => [
218 'type' => 'string',
219 'default' => '',
220 ],
221 'showPostLink' => [
222 'type' => 'boolean',
223 'default' => false,
224 ],
225 'showInherit' => [
226 'type' => 'boolean',
227 'default' => false,
228 ],
229 'showTermCountPrefix' => [
230 'type' => 'boolean',
231 'default' => false,
232 ],
233 'countPrefixText' => [
234 'type' => 'string',
235 'default' => '',
236 ],
237 'iconColor' => [
238 'type' => 'string',
239 'default' => '',
240 ],
241 'showIconDffent' => [
242 'type' => 'boolean',
243 'default' => false,
244 ],
245 'iconBgColor' => [
246 'type' => 'string',
247 'default' => '',
248 ],
249 'iconPadding' => [
250 'type' => 'object',
251 'default' => '',
252 ],
253 'postPadding' => [
254 'type' => 'object',
255 'default' => '',
256 ],
257 'iconBorderRadius' => [
258 'type' => 'object',
259 'default' => '',
260 ],
261 'postCountWidth' => [
262 'type' => 'number',
263 'default' => '',
264 ],
265
266 ];
267
268 $attributes = array_merge(
269 $attributes,
270 Icon::get_attribute(),
271 Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
272 Typography::get_attribute( 'taxonomyTitleTypography', true ),
273 Typography::get_attribute( 'postTitleTypography', true ),
274 Typography::get_attribute( 'postCountTypography', true ),
275 BoxShadow::get_attribute( 'cardBoxShadow', true ),
276 );
277
278 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
279