From 7ca6a859ef605ca6551a8fa79ec4c078ca8e8278 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 29 Oct 2019 10:02:06 +0000 Subject: [PATCH] Read sidebar togglestate from cookie, conditonally load linkquality.js --- index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 86d81921..8acc5775 100755 --- a/index.php +++ b/index.php @@ -45,9 +45,12 @@ if (!isset($_COOKIE['theme'])) { } else { $theme = $_COOKIE['theme']; } - $theme_url = 'app/css/'.htmlspecialchars($theme, ENT_QUOTES); +if ($_COOKIE['sidebar'] == 'true' ) { + $toggleState = "toggled"; +} + ?> @@ -99,7 +102,7 @@ $theme_url = 'app/css/'.htmlspecialchars($theme, ENT_QUOTES);
-