summaryrefslogtreecommitdiff
path: root/index.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 /index.php
parent56b61583a2eb657964b136af14389c4e3cfad110 (diff)
add ability to select CSS files in themes/
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index 7b4e64136..7c8230273 100644
--- a/index.php
+++ b/index.php
@@ -65,6 +65,14 @@
<?php echo stylesheet_tag("tt-rss.css"); ?>
<?php echo stylesheet_tag("cdm.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) ?>
<style type="text/css">