feat: ✨ add age-gating check
This commit is contained in:
parent
2ea575f229
commit
7f2c7edf76
4 changed files with 69 additions and 1 deletions
|
@ -107,6 +107,8 @@ function render_twig($template, $args = []) {
|
|||
|
||||
$args['site_config'] = $SITE_CONFIG;
|
||||
|
||||
$args['age_gate'] = (!isset($_COOKIE['AgeConfirmed'])) && isset($SITE_CONFIG['age_gate']);
|
||||
|
||||
echo $twig->render($template, $args);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue