| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/course-curriculum", |
| 5 |
"title": "Course Curriculum", |
| 6 |
"category": "bkbg-blog", |
| 7 |
"icon": "book", |
| 8 |
"description": "Expandable course curriculum / syllabus with sections and lessons. Each lesson shows duration, type, and free/locked status. Perfect for online courses and training pages.", |
| 9 |
"keywords": [ |
| 10 |
"course", |
| 11 |
"curriculum", |
| 12 |
"syllabus", |
| 13 |
"lessons", |
| 14 |
"education", |
| 15 |
"lms", |
| 16 |
"outline" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-course-curriculum-editor", |
| 20 |
"style": "bkbg-course-curriculum-style", |
| 21 |
"viewScript": "bkbg-course-curriculum-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"courseTitle": { |
| 33 |
"type": "string", |
| 34 |
"default": "Complete Web Development Bootcamp" |
| 35 |
}, |
| 36 |
"courseMeta": { |
| 37 |
"type": "string", |
| 38 |
"default": "12 sections • 48 lessons • 24 hours total" |
| 39 |
}, |
| 40 |
"showCourseMeta": { |
| 41 |
"type": "boolean", |
| 42 |
"default": true |
| 43 |
}, |
| 44 |
"showSearch": { |
| 45 |
"type": "boolean", |
| 46 |
"default": false |
| 47 |
}, |
| 48 |
"expandAll": { |
| 49 |
"type": "boolean", |
| 50 |
"default": false |
| 51 |
}, |
| 52 |
"defaultOpen": { |
| 53 |
"type": "number", |
| 54 |
"default": 0 |
| 55 |
}, |
| 56 |
"sections": { |
| 57 |
"type": "array", |
| 58 |
"default": [ |
| 59 |
{ |
| 60 |
"id": "sec1", |
| 61 |
"title": "1. Getting Started with HTML", |
| 62 |
"lessons": [ |
| 63 |
{ |
| 64 |
"id": "l1", |
| 65 |
"title": "Introduction to HTML", |
| 66 |
"duration": "12:30", |
| 67 |
"type": "video", |
| 68 |
"free": true |
| 69 |
}, |
| 70 |
{ |
| 71 |
"id": "l2", |
| 72 |
"title": "HTML Document Structure", |
| 73 |
"duration": "18:45", |
| 74 |
"type": "video", |
| 75 |
"free": true |
| 76 |
}, |
| 77 |
{ |
| 78 |
"id": "l3", |
| 79 |
"title": "HTML Elements & Tags", |
| 80 |
"duration": "22:10", |
| 81 |
"type": "video", |
| 82 |
"free": false |
| 83 |
}, |
| 84 |
{ |
| 85 |
"id": "l4", |
| 86 |
"title": "HTML Quiz", |
| 87 |
"duration": "5 Q", |
| 88 |
"type": "quiz", |
| 89 |
"free": false |
| 90 |
} |
| 91 |
] |
| 92 |
}, |
| 93 |
{ |
| 94 |
"id": "sec2", |
| 95 |
"title": "2. CSS Fundamentals", |
| 96 |
"lessons": [ |
| 97 |
{ |
| 98 |
"id": "l5", |
| 99 |
"title": "CSS Selectors & Specificity", |
| 100 |
"duration": "25:00", |
| 101 |
"type": "video", |
| 102 |
"free": false |
| 103 |
}, |
| 104 |
{ |
| 105 |
"id": "l6", |
| 106 |
"title": "Box Model Deep Dive", |
| 107 |
"duration": "30:15", |
| 108 |
"type": "video", |
| 109 |
"free": false |
| 110 |
}, |
| 111 |
{ |
| 112 |
"id": "l7", |
| 113 |
"title": "Flexbox & Grid Layouts", |
| 114 |
"duration": "40:00", |
| 115 |
"type": "video", |
| 116 |
"free": false |
| 117 |
}, |
| 118 |
{ |
| 119 |
"id": "l8", |
| 120 |
"title": "Hands-on: Build a Layout", |
| 121 |
"duration": "45 min", |
| 122 |
"type": "exercise", |
| 123 |
"free": false |
| 124 |
} |
| 125 |
] |
| 126 |
}, |
| 127 |
{ |
| 128 |
"id": "sec3", |
| 129 |
"title": "3. JavaScript Essentials", |
| 130 |
"lessons": [ |
| 131 |
{ |
| 132 |
"id": "l9", |
| 133 |
"title": "Variables, Types & Scope", |
| 134 |
"duration": "20:30", |
| 135 |
"type": "video", |
| 136 |
"free": false |
| 137 |
}, |
| 138 |
{ |
| 139 |
"id": "l10", |
| 140 |
"title": "Functions & Arrow Functions", |
| 141 |
"duration": "18:00", |
| 142 |
"type": "video", |
| 143 |
"free": false |
| 144 |
}, |
| 145 |
{ |
| 146 |
"id": "l11", |
| 147 |
"title": "DOM Manipulation", |
| 148 |
"duration": "35:20", |
| 149 |
"type": "video", |
| 150 |
"free": false |
| 151 |
}, |
| 152 |
{ |
| 153 |
"id": "l12", |
| 154 |
"title": "Reading: JS Best Practices", |
| 155 |
"duration": "8 min", |
| 156 |
"type": "article", |
| 157 |
"free": false |
| 158 |
} |
| 159 |
] |
| 160 |
} |
| 161 |
] |
| 162 |
}, |
| 163 |
"totalLessons": { |
| 164 |
"type": "number", |
| 165 |
"default": 48 |
| 166 |
}, |
| 167 |
"totalHours": { |
| 168 |
"type": "string", |
| 169 |
"default": "24 hours" |
| 170 |
}, |
| 171 |
"ctaLabel": { |
| 172 |
"type": "string", |
| 173 |
"default": "Enroll Now" |
| 174 |
}, |
| 175 |
"ctaUrl": { |
| 176 |
"type": "string", |
| 177 |
"default": "#" |
| 178 |
}, |
| 179 |
"showCta": { |
| 180 |
"type": "boolean", |
| 181 |
"default": true |
| 182 |
}, |
| 183 |
"accentColor": { |
| 184 |
"type": "string", |
| 185 |
"default": "#6c3fb5" |
| 186 |
}, |
| 187 |
"cardBg": { |
| 188 |
"type": "string", |
| 189 |
"default": "#ffffff" |
| 190 |
}, |
| 191 |
"cardBorder": { |
| 192 |
"type": "string", |
| 193 |
"default": "#e5e7eb" |
| 194 |
}, |
| 195 |
"sectionBg": { |
| 196 |
"type": "string", |
| 197 |
"default": "#f9fafb" |
| 198 |
}, |
| 199 |
"sectionBorder": { |
| 200 |
"type": "string", |
| 201 |
"default": "#e5e7eb" |
| 202 |
}, |
| 203 |
"sectionHoverBg": { |
| 204 |
"type": "string", |
| 205 |
"default": "#f3f0fc" |
| 206 |
}, |
| 207 |
"lessonBg": { |
| 208 |
"type": "string", |
| 209 |
"default": "#ffffff" |
| 210 |
}, |
| 211 |
"lessonHoverBg": { |
| 212 |
"type": "string", |
| 213 |
"default": "#f9fafb" |
| 214 |
}, |
| 215 |
"freeBg": { |
| 216 |
"type": "string", |
| 217 |
"default": "#dcfce7" |
| 218 |
}, |
| 219 |
"freeColor": { |
| 220 |
"type": "string", |
| 221 |
"default": "#16a34a" |
| 222 |
}, |
| 223 |
"lockedColor": { |
| 224 |
"type": "string", |
| 225 |
"default": "#9ca3af" |
| 226 |
}, |
| 227 |
"titleColor": { |
| 228 |
"type": "string", |
| 229 |
"default": "#111827" |
| 230 |
}, |
| 231 |
"sectionTitleColor": { |
| 232 |
"type": "string", |
| 233 |
"default": "#1f2937" |
| 234 |
}, |
| 235 |
"lessonTitleColor": { |
| 236 |
"type": "string", |
| 237 |
"default": "#374151" |
| 238 |
}, |
| 239 |
"metaColor": { |
| 240 |
"type": "string", |
| 241 |
"default": "#9ca3af" |
| 242 |
}, |
| 243 |
"btnBg": { |
| 244 |
"type": "string", |
| 245 |
"default": "#6c3fb5" |
| 246 |
}, |
| 247 |
"btnColor": { |
| 248 |
"type": "string", |
| 249 |
"default": "#ffffff" |
| 250 |
}, |
| 251 |
"cardRadius": { |
| 252 |
"type": "number", |
| 253 |
"default": 16 |
| 254 |
}, |
| 255 |
"sectionRadius": { |
| 256 |
"type": "number", |
| 257 |
"default": 10 |
| 258 |
}, |
| 259 |
"btnRadius": { |
| 260 |
"type": "number", |
| 261 |
"default": 8 |
| 262 |
}, |
| 263 |
"titleSize": { |
| 264 |
"type": "number", |
| 265 |
"default": 26 |
| 266 |
}, |
| 267 |
"sectionTitleSize": { |
| 268 |
"type": "number", |
| 269 |
"default": 16 |
| 270 |
}, |
| 271 |
"lessonTitleSize": { |
| 272 |
"type": "number", |
| 273 |
"default": 14 |
| 274 |
}, |
| 275 |
"bgColor": { |
| 276 |
"type": "string", |
| 277 |
"default": "" |
| 278 |
}, |
| 279 |
"paddingTop": { |
| 280 |
"type": "number", |
| 281 |
"default": 0 |
| 282 |
}, |
| 283 |
"paddingBottom": { |
| 284 |
"type": "number", |
| 285 |
"default": 0 |
| 286 |
}, |
| 287 |
"typoTitle": { |
| 288 |
"type": "object", |
| 289 |
"default": {} |
| 290 |
}, |
| 291 |
"typoSection": { |
| 292 |
"type": "object", |
| 293 |
"default": {} |
| 294 |
}, |
| 295 |
"typoLesson": { |
| 296 |
"type": "object", |
| 297 |
"default": {} |
| 298 |
} |
| 299 |
} |
| 300 |
} |
| 301 |
|