'/', 'samesite' => 'Lax']; if($toogle === 'dark') { $_COOKIE['dark_mode'] = TRUE; setcookie('dark_mode', TRUE, $options); } else { unset($_COOKIE['dark_mode']); setcookie('dark_mode', NULL, array_merge($options, ['expires' => -1])); } } $theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'main'; ?>
" />