From 503eb3498a037c8772289d4baf6044261b4f9f31 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 26 Nov 2005 07:48:37 +0100 Subject: generic theme support, misc compact stylesheet iframe fixes --- backend.php | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index fa3be8dc6..98c77e37c 100644 --- a/backend.php +++ b/backend.php @@ -160,6 +160,12 @@ Tiny Tiny RSS : Feedlist "; + $user_theme = $_SESSION["theme"]; + if ($user_theme) { + print ""; + } + if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { print ""; @@ -533,8 +539,23 @@ if ($addheader) { print " Tiny Tiny RSS : Article $id - - + "; + + $user_theme = $_SESSION["theme"]; + if ($user_theme) { + print ""; + } + + if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { + print ""; + } else { + print ""; + } + + print " "; } @@ -623,6 +644,12 @@ Tiny Tiny RSS : Feed $feed "; + $user_theme = $_SESSION["theme"]; + if ($user_theme) { + print ""; + } + if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { print ""; @@ -631,6 +658,7 @@ print ""; } + print " @@ -2263,6 +2291,8 @@ theme_id = (SELECT id FROM ttrss_themes WHERE theme_name = '$theme') WHERE id = " . $_SESSION["uid"]); + $_SESSION["theme"] = $theme; + header("Location: prefs.php"); } else { -- cgit v1.2.3-54-g00ecf