feat: add age-gating check

This commit is contained in:
David Bailey 2024-01-11 16:54:37 +01:00
parent 2ea575f229
commit 7f2c7edf76
4 changed files with 69 additions and 1 deletions

View file

@ -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);
}