| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/sticky-sidebar", |
| 5 |
"title": "Sticky Sidebar", |
| 6 |
"description": "Two-column layout with a rich sticky sidebar \u2014 perfect for articles, docs, pricing pages, and long-form content.", |
| 7 |
"category": "bkbg-layout", |
| 8 |
"icon": "columns", |
| 9 |
"keywords": [ |
| 10 |
"sticky", |
| 11 |
"sidebar", |
| 12 |
"layout", |
| 13 |
"columns", |
| 14 |
"two-column", |
| 15 |
"toc" |
| 16 |
], |
| 17 |
"supports": { |
| 18 |
"html": false, |
| 19 |
"align": [ |
| 20 |
"wide", |
| 21 |
"full" |
| 22 |
] |
| 23 |
}, |
| 24 |
"attributes": { |
| 25 |
"sidebarSide": { |
| 26 |
"type": "string", |
| 27 |
"default": "left" |
| 28 |
}, |
| 29 |
"sidebarWidth": { |
| 30 |
"type": "string", |
| 31 |
"default": "30" |
| 32 |
}, |
| 33 |
"stickyTop": { |
| 34 |
"type": "number", |
| 35 |
"default": 80 |
| 36 |
}, |
| 37 |
"sidebarStyle": { |
| 38 |
"type": "string", |
| 39 |
"default": "card" |
| 40 |
}, |
| 41 |
"gap": { |
| 42 |
"type": "number", |
| 43 |
"default": 40 |
| 44 |
}, |
| 45 |
"containerPadding": { |
| 46 |
"type": "number", |
| 47 |
"default": 0 |
| 48 |
}, |
| 49 |
"mainContent": { |
| 50 |
"type": "string", |
| 51 |
"default": "<p>Add your main article or page content here. This area is scrollable while the sidebar stays fixed on screen.</p><p>Use rich text formatting \u2014 headings, bullet lists, images, and more.</p>" |
| 52 |
}, |
| 53 |
"imageUrl": { |
| 54 |
"type": "string", |
| 55 |
"default": "" |
| 56 |
}, |
| 57 |
"imageId": { |
| 58 |
"type": "number", |
| 59 |
"default": 0 |
| 60 |
}, |
| 61 |
"imageAlt": { |
| 62 |
"type": "string", |
| 63 |
"default": "" |
| 64 |
}, |
| 65 |
"imageStyle": { |
| 66 |
"type": "string", |
| 67 |
"default": "rounded" |
| 68 |
}, |
| 69 |
"imageSize": { |
| 70 |
"type": "number", |
| 71 |
"default": 80 |
| 72 |
}, |
| 73 |
"showImage": { |
| 74 |
"type": "boolean", |
| 75 |
"default": false |
| 76 |
}, |
| 77 |
"heading": { |
| 78 |
"type": "string", |
| 79 |
"default": "Sidebar heading" |
| 80 |
}, |
| 81 |
"showHeading": { |
| 82 |
"type": "boolean", |
| 83 |
"default": true |
| 84 |
}, |
| 85 |
"headingTag": { |
| 86 |
"type": "string", |
| 87 |
"default": "h3" |
| 88 |
}, |
| 89 |
"subText": { |
| 90 |
"type": "string", |
| 91 |
"default": "A helpful sidebar panel that stays in view as your visitor scrolls." |
| 92 |
}, |
| 93 |
"showSubText": { |
| 94 |
"type": "boolean", |
| 95 |
"default": true |
| 96 |
}, |
| 97 |
"bullets": { |
| 98 |
"type": "array", |
| 99 |
"default": [ |
| 100 |
{ |
| 101 |
"text": "Key feature or benefit" |
| 102 |
}, |
| 103 |
{ |
| 104 |
"text": "Another important point" |
| 105 |
} |
| 106 |
] |
| 107 |
}, |
| 108 |
"showBullets": { |
| 109 |
"type": "boolean", |
| 110 |
"default": true |
| 111 |
}, |
| 112 |
"bulletIcon": { |
| 113 |
"type": "string", |
| 114 |
"default": "\u2713" |
| 115 |
}, |
| 116 |
"showCta": { |
| 117 |
"type": "boolean", |
| 118 |
"default": true |
| 119 |
}, |
| 120 |
"ctaLabel": { |
| 121 |
"type": "string", |
| 122 |
"default": "Get Started" |
| 123 |
}, |
| 124 |
"ctaUrl": { |
| 125 |
"type": "string", |
| 126 |
"default": "#" |
| 127 |
}, |
| 128 |
"ctaNewTab": { |
| 129 |
"type": "boolean", |
| 130 |
"default": false |
| 131 |
}, |
| 132 |
"ctaStyle": { |
| 133 |
"type": "string", |
| 134 |
"default": "filled" |
| 135 |
}, |
| 136 |
"showRatingBox": { |
| 137 |
"type": "boolean", |
| 138 |
"default": false |
| 139 |
}, |
| 140 |
"ratingStars": { |
| 141 |
"type": "number", |
| 142 |
"default": 5 |
| 143 |
}, |
| 144 |
"ratingCount": { |
| 145 |
"type": "string", |
| 146 |
"default": "4.9 / 5" |
| 147 |
}, |
| 148 |
"ratingLabel": { |
| 149 |
"type": "string", |
| 150 |
"default": "based on 120 reviews" |
| 151 |
}, |
| 152 |
"showContactInfo": { |
| 153 |
"type": "boolean", |
| 154 |
"default": false |
| 155 |
}, |
| 156 |
"contactPhone": { |
| 157 |
"type": "string", |
| 158 |
"default": "" |
| 159 |
}, |
| 160 |
"contactEmail": { |
| 161 |
"type": "string", |
| 162 |
"default": "" |
| 163 |
}, |
| 164 |
"borderRadius": { |
| 165 |
"type": "number", |
| 166 |
"default": 12 |
| 167 |
}, |
| 168 |
"sidebarPadding": { |
| 169 |
"type": "number", |
| 170 |
"default": 24 |
| 171 |
}, |
| 172 |
"containerBg": { |
| 173 |
"type": "string", |
| 174 |
"default": "" |
| 175 |
}, |
| 176 |
"mainBg": { |
| 177 |
"type": "string", |
| 178 |
"default": "" |
| 179 |
}, |
| 180 |
"sidebarBg": { |
| 181 |
"type": "string", |
| 182 |
"default": "#f8fafc" |
| 183 |
}, |
| 184 |
"sidebarBorderColor": { |
| 185 |
"type": "string", |
| 186 |
"default": "#e2e8f0" |
| 187 |
}, |
| 188 |
"headingColor": { |
| 189 |
"type": "string", |
| 190 |
"default": "#111827" |
| 191 |
}, |
| 192 |
"textColor": { |
| 193 |
"type": "string", |
| 194 |
"default": "#374151" |
| 195 |
}, |
| 196 |
"bulletIconColor": { |
| 197 |
"type": "string", |
| 198 |
"default": "#6366f1" |
| 199 |
}, |
| 200 |
"ctaBg": { |
| 201 |
"type": "string", |
| 202 |
"default": "#6366f1" |
| 203 |
}, |
| 204 |
"ctaColor": { |
| 205 |
"type": "string", |
| 206 |
"default": "#ffffff" |
| 207 |
}, |
| 208 |
"starColor": { |
| 209 |
"type": "string", |
| 210 |
"default": "#f59e0b" |
| 211 |
}, |
| 212 |
"linkColor": { |
| 213 |
"type": "string", |
| 214 |
"default": "#6366f1" |
| 215 |
}, |
| 216 |
"subTextSize": { |
| 217 |
"type": "number", |
| 218 |
"default": 14 |
| 219 |
}, |
| 220 |
"subTextFontWeight": { |
| 221 |
"type": "string", |
| 222 |
"default": "400" |
| 223 |
}, |
| 224 |
"subTextLineHeight": { |
| 225 |
"type": "number", |
| 226 |
"default": 1.5 |
| 227 |
}, |
| 228 |
"headingTypo": { |
| 229 |
"type": "object", |
| 230 |
"default": {} |
| 231 |
}, |
| 232 |
"subTextTypo": { |
| 233 |
"type": "object", |
| 234 |
"default": {} |
| 235 |
} |
| 236 |
}, |
| 237 |
"editorScript": "bkbg-sticky-sidebar-editor", |
| 238 |
"style": "bkbg-sticky-sidebar-style", |
| 239 |
"viewScript": "bkbg-sticky-sidebar-frontend" |
| 240 |
} |