summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-07-17 05:13:49 +0100
committerAndrew Dolgov <[email protected]>2008-07-17 05:13:49 +0100
commit27f5a18fcdd588a7f2f067ab8d7b9165b8b0e0e8 (patch)
tree70f9914b3360c2f546d862d6cd70a368749f66a5
parent64eb624cad460c26bbebfc9dbfeecc1e0172b523 (diff)
add support for user stylesheets in mobile versions; specify ids for body elements in main pages
-rw-r--r--mobile/tt-rss.php7
-rw-r--r--prefs.php2
-rw-r--r--tt-rss.php2
3 files changed, 8 insertions, 3 deletions
diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php
index 1fcea79fc..241dd3e58 100644
--- a/mobile/tt-rss.php
+++ b/mobile/tt-rss.php
@@ -99,8 +99,13 @@
<link rel="stylesheet" type="text/css" href="mobile.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="tt-rss.js"></script>
+
+ <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
+ <?php if ($user_css_url) { ?>
+ <link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/>
+ <?php } ?>
</head>
-<body>
+<body id="ttrssMobile">
<div id="content">
<?php
diff --git a/prefs.php b/prefs.php
index bf89d3a03..bc0f5212f 100644
--- a/prefs.php
+++ b/prefs.php
@@ -58,7 +58,7 @@
</script>
</head>
-<body>
+<body id="ttrssPrefs">
<div id="overlay">
<div id="overlay_inner">
diff --git a/tt-rss.php b/tt-rss.php
index 74e84bea5..f98d774b8 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -59,7 +59,7 @@
</script>
</head>
-<body onresize="resize_headlines()">
+<body onresize="resize_headlines()" id="ttrssMain">
<div id="overlay">
<div id="overlay_inner">