summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 21:04:29 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 21:04:29 +0400
commit5d40efc9b00fae24ab71d38c9508285a61743a8f (patch)
tree62fd761a97dda8fbf384c5a488346fddc6966cab /prefs.php
parent56b61583a2eb657964b136af14389c4e3cfad110 (diff)
add ability to select CSS files in themes/
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/prefs.php b/prefs.php
index 0add206e4..4caac2cea 100644
--- a/prefs.php
+++ b/prefs.php
@@ -39,6 +39,14 @@
<?php echo stylesheet_tag("tt-rss.css"); ?>
<?php echo stylesheet_tag("prefs.css"); ?>
+ <?php if ($_SESSION["uid"]) {
+ $theme = get_pref($link, "USER_CSS_THEME", $_SESSION["uid"], false);
+ if ($theme) {
+ echo stylesheet_tag("themes/$theme");
+ }
+ }
+ ?>
+
<?php print_user_stylesheet($link) ?>
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>