PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / affiliate-box / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at blocks/affiliate-box/block.json

312 lines 7.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "blockenberg/affiliate-box",
5 "title": "Affiliate Review Box",
6 "category": "bkbg-marketing",
7 "description": "Structured product review block with score badge, pros & cons columns, verdict summary, price display, and affiliate CTA button.",
8 "textdomain": "blockenberg",
9 "editorScript": "bkbg-affiliate-box-editor",
10 "style": "bkbg-affiliate-box-style",
11 "viewScript": "bkbg-affiliate-box-frontend",
12 "supports": {
13 "html": false,
14 "anchor": true,
15 "className": true,
16 "align": [
17 "wide",
18 "full"
19 ]
20 },
21 "attributes": {
22 "productName": {
23 "type": "string",
24 "default": "Sony WH-1000XM5"
25 },
26 "tagline": {
27 "type": "string",
28 "default": "The best noise-cancelling headphones you can buy"
29 },
30 "imageUrl": {
31 "type": "string",
32 "default": ""
33 },
34 "imageId": {
35 "type": "integer",
36 "default": 0
37 },
38 "overallScore": {
39 "type": "number",
40 "default": 9.2
41 },
42 "maxScore": {
43 "type": "number",
44 "default": 10
45 },
46 "scoreLabel": {
47 "type": "string",
48 "default": "Expert Score"
49 },
50 "verdict": {
51 "type": "string",
52 "default": "The WH-1000XM5 sets the standard for consumer noise-cancelling headphones. Outstanding ANC, superb sound quality, and excellent call performance make it the go-to choice for frequent travellers and remote workers."
53 },
54 "verdictLabel": {
55 "type": "string",
56 "default": "Our Verdict"
57 },
58 "showVerdict": {
59 "type": "boolean",
60 "default": true
61 },
62 "pros": {
63 "type": "array",
64 "default": [
65 {
66 "id": "p1",
67 "text": "Best-in-class active noise cancellation"
68 },
69 {
70 "id": "p2",
71 "text": "Exceptional 30-hour battery life"
72 },
73 {
74 "id": "p3",
75 "text": "Premium build quality with multipoint connection"
76 },
77 {
78 "id": "p4",
79 "text": "Outstanding transparency / ambient sound mode"
80 }
81 ],
82 "items": {
83 "type": "object"
84 }
85 },
86 "cons": {
87 "type": "array",
88 "default": [
89 {
90 "id": "c1",
91 "text": "Expensive compared to competition"
92 },
93 {
94 "id": "c2",
95 "text": "No IP rating (not waterproof)"
96 },
97 {
98 "id": "c3",
99 "text": "Plastic build feels less premium than price suggests"
100 }
101 ],
102 "items": {
103 "type": "object"
104 }
105 },
106 "prosLabel": {
107 "type": "string",
108 "default": "Pros"
109 },
110 "consLabel": {
111 "type": "string",
112 "default": "Cons"
113 },
114 "price": {
115 "type": "string",
116 "default": "379.99"
117 },
118 "priceLabel": {
119 "type": "string",
120 "default": "Check Price"
121 },
122 "originalPrice": {
123 "type": "string",
124 "default": ""
125 },
126 "showOriginalPrice": {
127 "type": "boolean",
128 "default": false
129 },
130 "currency": {
131 "type": "string",
132 "default": "$"
133 },
134 "showImage": {
135 "type": "boolean",
136 "default": true
137 },
138 "showScore": {
139 "type": "boolean",
140 "default": true
141 },
142 "showPrice": {
143 "type": "boolean",
144 "default": true
145 },
146 "ctaLabel": {
147 "type": "string",
148 "default": "Check Best Price →"
149 },
150 "ctaUrl": {
151 "type": "string",
152 "default": "#"
153 },
154 "ctaTarget": {
155 "type": "string",
156 "default": "_blank"
157 },
158 "showAffiliateNote": {
159 "type": "boolean",
160 "default": true
161 },
162 "affiliateNote": {
163 "type": "string",
164 "default": "We may earn a commission if you buy through our links."
165 },
166 "layout": {
167 "type": "string",
168 "default": "horizontal"
169 },
170 "imageRadius": {
171 "type": "integer",
172 "default": 12
173 },
174 "cardRadius": {
175 "type": "integer",
176 "default": 16
177 },
178 "cardPadding": {
179 "type": "integer",
180 "default": 32
181 },
182 "scoreSize": {
183 "type": "integer",
184 "default": 48
185 },
186 "scoreRadius": {
187 "type": "integer",
188 "default": 12
189 },
190 "verdictRadius": {
191 "type": "integer",
192 "default": 10
193 },
194 "ctaRadius": {
195 "type": "integer",
196 "default": 8
197 },
198 "namSize": {
199 "type": "integer",
200 "default": 22
201 },
202 "taglineSize": {
203 "type": "integer",
204 "default": 14
205 },
206 "verdictSize": {
207 "type": "integer",
208 "default": 14
209 },
210 "listItemSize": {
211 "type": "integer",
212 "default": 14
213 },
214 "scoreBg": {
215 "type": "string",
216 "default": "#6c3fb5"
217 },
218 "scoreColor": {
219 "type": "string",
220 "default": "#ffffff"
221 },
222 "prosHeaderColor": {
223 "type": "string",
224 "default": "#16a34a"
225 },
226 "prosIconColor": {
227 "type": "string",
228 "default": "#16a34a"
229 },
230 "prosBg": {
231 "type": "string",
232 "default": "#f0fdf4"
233 },
234 "consHeaderColor": {
235 "type": "string",
236 "default": "#dc2626"
237 },
238 "consIconColor": {
239 "type": "string",
240 "default": "#dc2626"
241 },
242 "consBg": {
243 "type": "string",
244 "default": "#fef2f2"
245 },
246 "ctaBg": {
247 "type": "string",
248 "default": "#6c3fb5"
249 },
250 "ctaColor": {
251 "type": "string",
252 "default": "#ffffff"
253 },
254 "verdictBg": {
255 "type": "string",
256 "default": "#f5f3ff"
257 },
258 "verdictBorderColor": {
259 "type": "string",
260 "default": "#6c3fb5"
261 },
262 "verdictColor": {
263 "type": "string",
264 "default": "#374151"
265 },
266 "nameColor": {
267 "type": "string",
268 "default": "#111827"
269 },
270 "taglineColor": {
271 "type": "string",
272 "default": "#6b7280"
273 },
274 "cardBg": {
275 "type": "string",
276 "default": "#ffffff"
277 },
278 "borderColor": {
279 "type": "string",
280 "default": "#e5e7eb"
281 },
282 "bgColor": {
283 "type": "string",
284 "default": ""
285 },
286 "paddingTop": {
287 "type": "integer",
288 "default": 48
289 },
290 "paddingBottom": {
291 "type": "integer",
292 "default": 48
293 },
294 "nameTypo": {
295 "type": "object",
296 "default": {}
297 },
298 "taglineTypo": {
299 "type": "object",
300 "default": {}
301 },
302 "listTypo": {
303 "type": "object",
304 "default": {}
305 },
306 "verdictTypo": {
307 "type": "object",
308 "default": {}
309 }
310 }
311 }
312