| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/business-hours", |
| 5 |
"title": "Business Hours", |
| 6 |
"category": "blockenberg", |
| 7 |
"icon": "calendar-alt", |
| 8 |
"description": "Display business opening hours with current status indicator.", |
| 9 |
"keywords": ["hours", "schedule", "time", "open", "closed", "business", "working"], |
| 10 |
"textdomain": "blockenberg", |
| 11 |
"editorScript": "bkbg-business-hours-editor", |
| 12 |
"editorStyle": "bkbg-business-hours-style", |
| 13 |
"style": "bkbg-business-hours-style", |
| 14 |
"viewScript": "bkbg-business-hours-frontend", |
| 15 |
"supports": { |
| 16 |
"html": false, |
| 17 |
"anchor": true, |
| 18 |
"className": true, |
| 19 |
"align": ["wide"] |
| 20 |
}, |
| 21 |
"attributes": { |
| 22 |
"days": { |
| 23 |
"type": "array", |
| 24 |
"default": [ |
| 25 |
{ "day": "Monday", "open": "09:00", "close": "18:00", "closed": false }, |
| 26 |
{ "day": "Tuesday", "open": "09:00", "close": "18:00", "closed": false }, |
| 27 |
{ "day": "Wednesday", "open": "09:00", "close": "18:00", "closed": false }, |
| 28 |
{ "day": "Thursday", "open": "09:00", "close": "18:00", "closed": false }, |
| 29 |
{ "day": "Friday", "open": "09:00", "close": "18:00", "closed": false }, |
| 30 |
{ "day": "Saturday", "open": "10:00", "close": "16:00", "closed": false }, |
| 31 |
{ "day": "Sunday", "open": "", "close": "", "closed": true } |
| 32 |
] |
| 33 |
}, |
| 34 |
"title": { |
| 35 |
"type": "string", |
| 36 |
"default": "Business Hours" |
| 37 |
}, |
| 38 |
"showTitle": { |
| 39 |
"type": "boolean", |
| 40 |
"default": true |
| 41 |
}, |
| 42 |
"showCurrentStatus": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"highlightToday": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"compactMode": { |
| 51 |
"type": "boolean", |
| 52 |
"default": false |
| 53 |
}, |
| 54 |
"timeFormat": { |
| 55 |
"type": "string", |
| 56 |
"default": "12h" |
| 57 |
}, |
| 58 |
"closedText": { |
| 59 |
"type": "string", |
| 60 |
"default": "Closed" |
| 61 |
}, |
| 62 |
"openNowText": { |
| 63 |
"type": "string", |
| 64 |
"default": "Open Now" |
| 65 |
}, |
| 66 |
"closedNowText": { |
| 67 |
"type": "string", |
| 68 |
"default": "Closed Now" |
| 69 |
}, |
| 70 |
"layoutStyle": { |
| 71 |
"type": "string", |
| 72 |
"default": "list" |
| 73 |
}, |
| 74 |
"showDividers": { |
| 75 |
"type": "boolean", |
| 76 |
"default": true |
| 77 |
}, |
| 78 |
"timezone": { |
| 79 |
"type": "string", |
| 80 |
"default": "" |
| 81 |
}, |
| 82 |
"dayBg": { |
| 83 |
"type": "string", |
| 84 |
"default": "#ffffff" |
| 85 |
}, |
| 86 |
"dayColor": { |
| 87 |
"type": "string", |
| 88 |
"default": "#1e293b" |
| 89 |
}, |
| 90 |
"timeBg": { |
| 91 |
"type": "string", |
| 92 |
"default": "transparent" |
| 93 |
}, |
| 94 |
"timeColor": { |
| 95 |
"type": "string", |
| 96 |
"default": "#64748b" |
| 97 |
}, |
| 98 |
"todayBg": { |
| 99 |
"type": "string", |
| 100 |
"default": "#f0f9ff" |
| 101 |
}, |
| 102 |
"todayColor": { |
| 103 |
"type": "string", |
| 104 |
"default": "#0369a1" |
| 105 |
}, |
| 106 |
"closedColor": { |
| 107 |
"type": "string", |
| 108 |
"default": "#ef4444" |
| 109 |
}, |
| 110 |
"openColor": { |
| 111 |
"type": "string", |
| 112 |
"default": "#22c55e" |
| 113 |
}, |
| 114 |
"dividerColor": { |
| 115 |
"type": "string", |
| 116 |
"default": "#e2e8f0" |
| 117 |
}, |
| 118 |
"statusBg": { |
| 119 |
"type": "string", |
| 120 |
"default": "" |
| 121 |
}, |
| 122 |
"borderRadius": { |
| 123 |
"type": "number", |
| 124 |
"default": 8 |
| 125 |
}, |
| 126 |
"padding": { |
| 127 |
"type": "number", |
| 128 |
"default": 16 |
| 129 |
}, |
| 130 |
"gap": { |
| 131 |
"type": "number", |
| 132 |
"default": 12 |
| 133 |
}, |
| 134 |
"dayFontSize": { |
| 135 |
"type": "number", |
| 136 |
"default": 15 |
| 137 |
}, |
| 138 |
"dayFontWeight": { |
| 139 |
"type": "number", |
| 140 |
"default": 500 |
| 141 |
}, |
| 142 |
"timeFontSize": { |
| 143 |
"type": "number", |
| 144 |
"default": 15 |
| 145 |
}, |
| 146 |
"timeFontWeight": { |
| 147 |
"type": "number", |
| 148 |
"default": 400 |
| 149 |
}, |
| 150 |
"titleFontSize": { |
| 151 |
"type": "number", |
| 152 |
"default": 20 |
| 153 |
}, |
| 154 |
"titleFontWeight": { |
| 155 |
"type": "number", |
| 156 |
"default": 600 |
| 157 |
} |
| 158 |
} |
| 159 |
} |
| 160 |
|