]> git.wh0rd.org Git - tt-rss.git/commitdiff
add support for user stylesheets in mobile versions; specify ids for body elements...
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 Jul 2008 04:13:49 +0000 (05:13 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 Jul 2008 04:13:49 +0000 (05:13 +0100)
mobile/tt-rss.php
prefs.php
tt-rss.php

index 1fcea79fc597874eb53f30bf6c432d15aa248411..241dd3e5866992665477246a67425eb1496e0b2a 100644 (file)
        <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
index bf89d3a03dcfdc39e691c9355b460d8695657f30..bc0f5212f8b2ad708b09618e1472dab5244d52ac 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -58,7 +58,7 @@
        </script>
 </head>
 
-<body>
+<body id="ttrssPrefs">
 
 <div id="overlay">
        <div id="overlay_inner">
index 74e84bea5ffcad94347e55d2ae789a5b1bd0bae0..f98d774b855e5d3631b816ac3b11279e24e11018 100644 (file)
@@ -59,7 +59,7 @@
        </script>
 </head>
 
-<body onresize="resize_headlines()">
+<body onresize="resize_headlines()" id="ttrssMain">
 
 <div id="overlay">
        <div id="overlay_inner">