| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/week-schedule", |
| 5 |
"title": "Weekly Schedule", |
| 6 |
"category": "bkbg-blog", |
| 7 |
"icon": "calendar", |
| 8 |
"description": "Visual weekly schedule grid with Mon–Sun columns and color-coded time-slot events. Ideal for fitness classes, teachers, and consultants.", |
| 9 |
"keywords": [ |
| 10 |
"schedule", |
| 11 |
"timetable", |
| 12 |
"calendar", |
| 13 |
"weekly", |
| 14 |
"classes", |
| 15 |
"fitness", |
| 16 |
"agenda", |
| 17 |
"planner" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-week-schedule-editor", |
| 21 |
"editorStyle": "bkbg-week-schedule-style", |
| 22 |
"style": "bkbg-week-schedule-style", |
| 23 |
"viewScript": "bkbg-week-schedule-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"events": { |
| 35 |
"type": "array", |
| 36 |
"default": [ |
| 37 |
{ |
| 38 |
"day": 0, |
| 39 |
"startHour": 9, |
| 40 |
"startMinute": 0, |
| 41 |
"duration": 1, |
| 42 |
"title": "Morning Yoga", |
| 43 |
"instructor": "Emma T.", |
| 44 |
"location": "Studio A", |
| 45 |
"color": "#6366f1" |
| 46 |
}, |
| 47 |
{ |
| 48 |
"day": 1, |
| 49 |
"startHour": 10, |
| 50 |
"startMinute": 0, |
| 51 |
"duration": 1.5, |
| 52 |
"title": "HIIT Training", |
| 53 |
"instructor": "Mike R.", |
| 54 |
"location": "Gym Floor", |
| 55 |
"color": "#ef4444" |
| 56 |
}, |
| 57 |
{ |
| 58 |
"day": 2, |
| 59 |
"startHour": 9, |
| 60 |
"startMinute": 0, |
| 61 |
"duration": 1, |
| 62 |
"title": "Morning Yoga", |
| 63 |
"instructor": "Emma T.", |
| 64 |
"location": "Studio A", |
| 65 |
"color": "#6366f1" |
| 66 |
}, |
| 67 |
{ |
| 68 |
"day": 3, |
| 69 |
"startHour": 11, |
| 70 |
"startMinute": 0, |
| 71 |
"duration": 2, |
| 72 |
"title": "Pilates", |
| 73 |
"instructor": "Sara L.", |
| 74 |
"location": "Studio B", |
| 75 |
"color": "#0ea5e9" |
| 76 |
}, |
| 77 |
{ |
| 78 |
"day": 4, |
| 79 |
"startHour": 10, |
| 80 |
"startMinute": 0, |
| 81 |
"duration": 1.5, |
| 82 |
"title": "HIIT Training", |
| 83 |
"instructor": "Mike R.", |
| 84 |
"location": "Gym Floor", |
| 85 |
"color": "#ef4444" |
| 86 |
}, |
| 87 |
{ |
| 88 |
"day": 5, |
| 89 |
"startHour": 9, |
| 90 |
"startMinute": 0, |
| 91 |
"duration": 1, |
| 92 |
"title": "Weekend Yoga", |
| 93 |
"instructor": "Emma T.", |
| 94 |
"location": "Studio A", |
| 95 |
"color": "#22c55e" |
| 96 |
}, |
| 97 |
{ |
| 98 |
"day": 0, |
| 99 |
"startHour": 18, |
| 100 |
"startMinute": 0, |
| 101 |
"duration": 1, |
| 102 |
"title": "Evening Stretch", |
| 103 |
"instructor": "Sara L.", |
| 104 |
"location": "Studio B", |
| 105 |
"color": "#f59e0b" |
| 106 |
}, |
| 107 |
{ |
| 108 |
"day": 2, |
| 109 |
"startHour": 18, |
| 110 |
"startMinute": 0, |
| 111 |
"duration": 1, |
| 112 |
"title": "Evening Stretch", |
| 113 |
"instructor": "Sara L.", |
| 114 |
"location": "Studio B", |
| 115 |
"color": "#f59e0b" |
| 116 |
}, |
| 117 |
{ |
| 118 |
"day": 4, |
| 119 |
"startHour": 18, |
| 120 |
"startMinute": 30, |
| 121 |
"duration": 1, |
| 122 |
"title": "Spin Class", |
| 123 |
"instructor": "James K.", |
| 124 |
"location": "Cycling Room", |
| 125 |
"color": "#8b5cf6" |
| 126 |
} |
| 127 |
] |
| 128 |
}, |
| 129 |
"dayLabels": { |
| 130 |
"type": "array", |
| 131 |
"default": [ |
| 132 |
"Mon", |
| 133 |
"Tue", |
| 134 |
"Wed", |
| 135 |
"Thu", |
| 136 |
"Fri", |
| 137 |
"Sat", |
| 138 |
"Sun" |
| 139 |
] |
| 140 |
}, |
| 141 |
"startHour": { |
| 142 |
"type": "number", |
| 143 |
"default": 8 |
| 144 |
}, |
| 145 |
"endHour": { |
| 146 |
"type": "number", |
| 147 |
"default": 20 |
| 148 |
}, |
| 149 |
"cellHeight": { |
| 150 |
"type": "number", |
| 151 |
"default": 60 |
| 152 |
}, |
| 153 |
"showTime": { |
| 154 |
"type": "boolean", |
| 155 |
"default": true |
| 156 |
}, |
| 157 |
"showInstructor": { |
| 158 |
"type": "boolean", |
| 159 |
"default": true |
| 160 |
}, |
| 161 |
"showLocation": { |
| 162 |
"type": "boolean", |
| 163 |
"default": false |
| 164 |
}, |
| 165 |
"showWeekend": { |
| 166 |
"type": "boolean", |
| 167 |
"default": true |
| 168 |
}, |
| 169 |
"timeFormat": { |
| 170 |
"type": "string", |
| 171 |
"default": "12h" |
| 172 |
}, |
| 173 |
"title": { |
| 174 |
"type": "string", |
| 175 |
"default": "Class Schedule" |
| 176 |
}, |
| 177 |
"showTitle": { |
| 178 |
"type": "boolean", |
| 179 |
"default": true |
| 180 |
}, |
| 181 |
"bgColor": { |
| 182 |
"type": "string", |
| 183 |
"default": "#ffffff" |
| 184 |
}, |
| 185 |
"headerBg": { |
| 186 |
"type": "string", |
| 187 |
"default": "#f8fafc" |
| 188 |
}, |
| 189 |
"headerColor": { |
| 190 |
"type": "string", |
| 191 |
"default": "#1e293b" |
| 192 |
}, |
| 193 |
"gridColor": { |
| 194 |
"type": "string", |
| 195 |
"default": "#f1f5f9" |
| 196 |
}, |
| 197 |
"borderColor": { |
| 198 |
"type": "string", |
| 199 |
"default": "#e2e8f0" |
| 200 |
}, |
| 201 |
"timeBg": { |
| 202 |
"type": "string", |
| 203 |
"default": "#f8fafc" |
| 204 |
}, |
| 205 |
"timeColor": { |
| 206 |
"type": "string", |
| 207 |
"default": "#64748b" |
| 208 |
}, |
| 209 |
"borderRadius": { |
| 210 |
"type": "number", |
| 211 |
"default": 8 |
| 212 |
}, |
| 213 |
"eventRadius": { |
| 214 |
"type": "number", |
| 215 |
"default": 6 |
| 216 |
}, |
| 217 |
"fontSize": { |
| 218 |
"type": "number", |
| 219 |
"default": 12 |
| 220 |
}, |
| 221 |
"titleTypo": { |
| 222 |
"type": "object", |
| 223 |
"default": {} |
| 224 |
}, |
| 225 |
"eventTypo": { |
| 226 |
"type": "object", |
| 227 |
"default": {} |
| 228 |
} |
| 229 |
} |
| 230 |
} |
| 231 |
|