| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/age-gate", |
| 5 |
"title": "Age Gate", |
| 6 |
"category": "bkbg-marketing", |
| 7 |
"icon": "shield", |
| 8 |
"description": "Age verification overlay that protects page content behind a customizable age confirmation dialog.", |
| 9 |
"textdomain": "blockenberg", |
| 10 |
"editorScript": "bkbg-age-gate-editor", |
| 11 |
"style": "bkbg-age-gate-style", |
| 12 |
"viewScript": "bkbg-age-gate-frontend", |
| 13 |
"supports": { |
| 14 |
"html": false, |
| 15 |
"anchor": true, |
| 16 |
"className": true, |
| 17 |
"align": [ |
| 18 |
"wide", |
| 19 |
"full" |
| 20 |
] |
| 21 |
}, |
| 22 |
"attributes": { |
| 23 |
"minimumAge": { |
| 24 |
"type": "number", |
| 25 |
"default": 18 |
| 26 |
}, |
| 27 |
"verificationMode": { |
| 28 |
"type": "string", |
| 29 |
"default": "yesno" |
| 30 |
}, |
| 31 |
"logoUrl": { |
| 32 |
"type": "string", |
| 33 |
"default": "" |
| 34 |
}, |
| 35 |
"title": { |
| 36 |
"type": "string", |
| 37 |
"default": "Age Verification Required" |
| 38 |
}, |
| 39 |
"message": { |
| 40 |
"type": "string", |
| 41 |
"default": "You must be at least 18 years old to access this website. Please confirm your age below." |
| 42 |
}, |
| 43 |
"confirmText": { |
| 44 |
"type": "string", |
| 45 |
"default": "Yes, I am old enough" |
| 46 |
}, |
| 47 |
"denyText": { |
| 48 |
"type": "string", |
| 49 |
"default": "No, take me back" |
| 50 |
}, |
| 51 |
"denyRedirectUrl": { |
| 52 |
"type": "string", |
| 53 |
"default": "" |
| 54 |
}, |
| 55 |
"rememberDays": { |
| 56 |
"type": "number", |
| 57 |
"default": 30 |
| 58 |
}, |
| 59 |
"disclaimer": { |
| 60 |
"type": "string", |
| 61 |
"default": "By entering, you agree to our Terms & Conditions and Privacy Policy." |
| 62 |
}, |
| 63 |
"cardRadius": { |
| 64 |
"type": "number", |
| 65 |
"default": 16 |
| 66 |
}, |
| 67 |
"cardPadding": { |
| 68 |
"type": "number", |
| 69 |
"default": 48 |
| 70 |
}, |
| 71 |
"cardMaxWidth": { |
| 72 |
"type": "number", |
| 73 |
"default": 480 |
| 74 |
}, |
| 75 |
"logoSize": { |
| 76 |
"type": "number", |
| 77 |
"default": 80 |
| 78 |
}, |
| 79 |
"titleSize": { |
| 80 |
"type": "number", |
| 81 |
"default": 26 |
| 82 |
}, |
| 83 |
"messageSize": { |
| 84 |
"type": "number", |
| 85 |
"default": 15 |
| 86 |
}, |
| 87 |
"overlayBg": { |
| 88 |
"type": "string", |
| 89 |
"default": "rgba(0,0,0,0.75)" |
| 90 |
}, |
| 91 |
"cardBg": { |
| 92 |
"type": "string", |
| 93 |
"default": "#ffffff" |
| 94 |
}, |
| 95 |
"titleColor": { |
| 96 |
"type": "string", |
| 97 |
"default": "#1e1b4b" |
| 98 |
}, |
| 99 |
"messageColor": { |
| 100 |
"type": "string", |
| 101 |
"default": "#64748b" |
| 102 |
}, |
| 103 |
"confirmBg": { |
| 104 |
"type": "string", |
| 105 |
"default": "#6366f1" |
| 106 |
}, |
| 107 |
"confirmColor": { |
| 108 |
"type": "string", |
| 109 |
"default": "#ffffff" |
| 110 |
}, |
| 111 |
"denyBg": { |
| 112 |
"type": "string", |
| 113 |
"default": "#f1f5f9" |
| 114 |
}, |
| 115 |
"denyColor": { |
| 116 |
"type": "string", |
| 117 |
"default": "#64748b" |
| 118 |
}, |
| 119 |
"accentColor": { |
| 120 |
"type": "string", |
| 121 |
"default": "#6366f1" |
| 122 |
}, |
| 123 |
"titleTypo": { |
| 124 |
"type": "object", |
| 125 |
"default": {} |
| 126 |
}, |
| 127 |
"messageTypo": { |
| 128 |
"type": "object", |
| 129 |
"default": {} |
| 130 |
} |
| 131 |
} |
| 132 |
} |
| 133 |
|