Persist selected theme in dropdown

This commit is contained in:
billz
2017-10-09 14:04:59 +00:00
parent f6c983d8ff
commit 8a501c075f
3 changed files with 27 additions and 10 deletions

View File

@@ -66,10 +66,11 @@ if (empty($_SESSION['csrf_token'])) {
$csrf_token = $_SESSION['csrf_token'];
if(!isset($_COOKIE['theme'])) {
$theme_url = "dist/css/custom.css";
$theme = "custom.css";
} else {
$theme_url = $_COOKIE['theme'];
$theme = $_COOKIE['theme'];
}
$theme_url = 'dist/css/' . $theme;
?>
<!DOCTYPE html>