| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "b-blocks/instagram", |
| 5 |
"title": "Instagram Feed", |
| 6 |
"category": "bBlocks", |
| 7 |
"description": "Show an Instagram feed as a responsive gallery, with profile header, captions and a lightbox.", |
| 8 |
"keywords": [ |
| 9 |
"instagram", |
| 10 |
"feed", |
| 11 |
"social", |
| 12 |
"gallery", |
| 13 |
"photos" |
| 14 |
], |
| 15 |
"textdomain": "b-blocks", |
| 16 |
"supports": { |
| 17 |
"html": false, |
| 18 |
"align": [ |
| 19 |
"wide", |
| 20 |
"full" |
| 21 |
] |
| 22 |
}, |
| 23 |
"attributes": { |
| 24 |
"blockId": { |
| 25 |
"type": "string", |
| 26 |
"default": "" |
| 27 |
}, |
| 28 |
"align": { |
| 29 |
"type": "string", |
| 30 |
"default": "" |
| 31 |
}, |
| 32 |
"source": { |
| 33 |
"type": "object", |
| 34 |
"default": { |
| 35 |
"account": "", |
| 36 |
"limit": 24, |
| 37 |
"perPage": 12, |
| 38 |
"cacheMinutes": 30 |
| 39 |
} |
| 40 |
}, |
| 41 |
"elements": { |
| 42 |
"type": "object", |
| 43 |
"default": { |
| 44 |
"profile": true, |
| 45 |
"profilePhoto": true, |
| 46 |
"profileName": false, |
| 47 |
"profileBio": false, |
| 48 |
"followButton": true, |
| 49 |
"followInFooter": false, |
| 50 |
"followLabel": "Follow On Instagram", |
| 51 |
"caption": true, |
| 52 |
"stripHashtags": false, |
| 53 |
"linkHashtags": true, |
| 54 |
"captionLength": 65, |
| 55 |
"mediaIcon": true, |
| 56 |
"loadMore": true, |
| 57 |
"loadMoreLabel": "Load More", |
| 58 |
"lightbox": true, |
| 59 |
"linkPosts": true, |
| 60 |
"openInNewTab": true |
| 61 |
} |
| 62 |
}, |
| 63 |
"grid": { |
| 64 |
"type": "object", |
| 65 |
"default": { |
| 66 |
"desktop": { |
| 67 |
"columns": 4, |
| 68 |
"columnGap": "15px", |
| 69 |
"rowGap": "15px", |
| 70 |
"ratio": "1/1" |
| 71 |
}, |
| 72 |
"tablet": { |
| 73 |
"columns": 2, |
| 74 |
"columnGap": "", |
| 75 |
"rowGap": "", |
| 76 |
"ratio": "" |
| 77 |
}, |
| 78 |
"mobile": { |
| 79 |
"columns": 1, |
| 80 |
"columnGap": "", |
| 81 |
"rowGap": "", |
| 82 |
"ratio": "" |
| 83 |
} |
| 84 |
} |
| 85 |
}, |
| 86 |
"box": { |
| 87 |
"type": "object", |
| 88 |
"default": { |
| 89 |
"desktop": { |
| 90 |
"padding": { |
| 91 |
"top": "", |
| 92 |
"right": "", |
| 93 |
"bottom": "", |
| 94 |
"left": "" |
| 95 |
}, |
| 96 |
"radius": { |
| 97 |
"top": "", |
| 98 |
"right": "", |
| 99 |
"bottom": "", |
| 100 |
"left": "" |
| 101 |
} |
| 102 |
}, |
| 103 |
"tablet": { |
| 104 |
"padding": { |
| 105 |
"top": "", |
| 106 |
"right": "", |
| 107 |
"bottom": "", |
| 108 |
"left": "" |
| 109 |
}, |
| 110 |
"radius": { |
| 111 |
"top": "", |
| 112 |
"right": "", |
| 113 |
"bottom": "", |
| 114 |
"left": "" |
| 115 |
} |
| 116 |
}, |
| 117 |
"mobile": { |
| 118 |
"padding": { |
| 119 |
"top": "", |
| 120 |
"right": "", |
| 121 |
"bottom": "", |
| 122 |
"left": "" |
| 123 |
}, |
| 124 |
"radius": { |
| 125 |
"top": "", |
| 126 |
"right": "", |
| 127 |
"bottom": "", |
| 128 |
"left": "" |
| 129 |
} |
| 130 |
}, |
| 131 |
"background": { |
| 132 |
"color": "" |
| 133 |
}, |
| 134 |
"border": {}, |
| 135 |
"shadow": { |
| 136 |
"normal": [], |
| 137 |
"hover": [] |
| 138 |
} |
| 139 |
} |
| 140 |
}, |
| 141 |
"item": { |
| 142 |
"type": "object", |
| 143 |
"default": { |
| 144 |
"hoverEffect": "zoom-in", |
| 145 |
"desktop": { |
| 146 |
"radius": { |
| 147 |
"top": "", |
| 148 |
"right": "", |
| 149 |
"bottom": "", |
| 150 |
"left": "" |
| 151 |
} |
| 152 |
}, |
| 153 |
"tablet": { |
| 154 |
"radius": { |
| 155 |
"top": "", |
| 156 |
"right": "", |
| 157 |
"bottom": "", |
| 158 |
"left": "" |
| 159 |
} |
| 160 |
}, |
| 161 |
"mobile": { |
| 162 |
"radius": { |
| 163 |
"top": "", |
| 164 |
"right": "", |
| 165 |
"bottom": "", |
| 166 |
"left": "" |
| 167 |
} |
| 168 |
}, |
| 169 |
"border": {}, |
| 170 |
"shadow": { |
| 171 |
"normal": [], |
| 172 |
"hover": [] |
| 173 |
}, |
| 174 |
"overlayColor": "", |
| 175 |
"iconColor": "#ffffff", |
| 176 |
"iconSize": "22px" |
| 177 |
} |
| 178 |
}, |
| 179 |
"caption": { |
| 180 |
"type": "object", |
| 181 |
"default": { |
| 182 |
"style": "overlay-center", |
| 183 |
"align": "center", |
| 184 |
"color": "#ffffff", |
| 185 |
"linkColor": "#ffffff", |
| 186 |
"background": { |
| 187 |
"color": "#00000099" |
| 188 |
}, |
| 189 |
"padding": { |
| 190 |
"top": "12px", |
| 191 |
"right": "12px", |
| 192 |
"bottom": "12px", |
| 193 |
"left": "12px" |
| 194 |
}, |
| 195 |
"typo": { |
| 196 |
"fontSize": { |
| 197 |
"desktop": 15, |
| 198 |
"tablet": 14, |
| 199 |
"mobile": 13 |
| 200 |
} |
| 201 |
} |
| 202 |
} |
| 203 |
}, |
| 204 |
"profile": { |
| 205 |
"type": "object", |
| 206 |
"default": { |
| 207 |
"photo": "", |
| 208 |
"photoSize": "55px", |
| 209 |
"gap": "12px", |
| 210 |
"usernameColor": "#4527a4", |
| 211 |
"nameColor": "", |
| 212 |
"nameText": "", |
| 213 |
"bioColor": "", |
| 214 |
"bioText": "", |
| 215 |
"usernameTypo": { |
| 216 |
"fontSize": { |
| 217 |
"desktop": 18, |
| 218 |
"tablet": "", |
| 219 |
"mobile": "" |
| 220 |
} |
| 221 |
}, |
| 222 |
"metaTypo": { |
| 223 |
"fontSize": { |
| 224 |
"desktop": 14, |
| 225 |
"tablet": "", |
| 226 |
"mobile": "" |
| 227 |
} |
| 228 |
} |
| 229 |
} |
| 230 |
}, |
| 231 |
"followBtn": { |
| 232 |
"type": "object", |
| 233 |
"default": { |
| 234 |
"normal": { |
| 235 |
"color": "#ffffff", |
| 236 |
"background": { |
| 237 |
"color": "#4527a4" |
| 238 |
}, |
| 239 |
"border": {} |
| 240 |
}, |
| 241 |
"hover": { |
| 242 |
"color": "#ffffff", |
| 243 |
"background": { |
| 244 |
"color": "#8344c5" |
| 245 |
}, |
| 246 |
"border": {} |
| 247 |
}, |
| 248 |
"typo": { |
| 249 |
"fontSize": { |
| 250 |
"desktop": 13, |
| 251 |
"tablet": "", |
| 252 |
"mobile": "" |
| 253 |
} |
| 254 |
}, |
| 255 |
"padding": { |
| 256 |
"top": "10px", |
| 257 |
"right": "18px", |
| 258 |
"bottom": "10px", |
| 259 |
"left": "18px" |
| 260 |
}, |
| 261 |
"radius": { |
| 262 |
"top": "4px", |
| 263 |
"right": "4px", |
| 264 |
"bottom": "4px", |
| 265 |
"left": "4px" |
| 266 |
} |
| 267 |
} |
| 268 |
}, |
| 269 |
"loadMoreBtn": { |
| 270 |
"type": "object", |
| 271 |
"default": { |
| 272 |
"normal": { |
| 273 |
"color": "#ffffff", |
| 274 |
"background": { |
| 275 |
"color": "#4527a4" |
| 276 |
}, |
| 277 |
"border": {} |
| 278 |
}, |
| 279 |
"hover": { |
| 280 |
"color": "#ffffff", |
| 281 |
"background": { |
| 282 |
"color": "#8344c5" |
| 283 |
}, |
| 284 |
"border": {} |
| 285 |
}, |
| 286 |
"typo": { |
| 287 |
"fontSize": { |
| 288 |
"desktop": 14, |
| 289 |
"tablet": "", |
| 290 |
"mobile": "" |
| 291 |
} |
| 292 |
}, |
| 293 |
"padding": { |
| 294 |
"top": "10px", |
| 295 |
"right": "22px", |
| 296 |
"bottom": "10px", |
| 297 |
"left": "22px" |
| 298 |
}, |
| 299 |
"radius": { |
| 300 |
"top": "4px", |
| 301 |
"right": "4px", |
| 302 |
"bottom": "4px", |
| 303 |
"left": "4px" |
| 304 |
} |
| 305 |
} |
| 306 |
}, |
| 307 |
"lightbox": { |
| 308 |
"type": "object", |
| 309 |
"default": { |
| 310 |
"backdrop": "#000000e6", |
| 311 |
"showCaption": true, |
| 312 |
"showProfile": true, |
| 313 |
"showLink": true |
| 314 |
} |
| 315 |
}, |
| 316 |
"advanced": { |
| 317 |
"type": "object", |
| 318 |
"default": { |
| 319 |
"css": "" |
| 320 |
} |
| 321 |
} |
| 322 |
}, |
| 323 |
"editorScript": "file:../index.js", |
| 324 |
"style": "file:./view.css", |
| 325 |
"render": "file:./render.php", |
| 326 |
"viewScript": "file:./view.js" |
| 327 |
} |