]> git.wh0rd.org Git - tt-rss.git/blob - plugins/mobile/index.php
Updated Swedish translation for 1.7.9
[tt-rss.git] / plugins / mobile / index.php
1 <?php
2         error_reporting(E_ERROR | E_WARNING | E_PARSE);
3
4         header('Content-Type: text/html; charset=utf-8');
5
6         define('MOBILE_VERSION', true);
7
8         $basedir = dirname(dirname(dirname(__FILE__)));
9
10         set_include_path(
11                 dirname(__FILE__) . PATH_SEPARATOR .
12                 $basedir . PATH_SEPARATOR .
13                 "$basedir/include" . PATH_SEPARATOR .
14                 get_include_path());
15
16         require_once "config.php";
17         require_once "mobile-functions.php";
18
19         login_sequence(true);
20 ?>
21 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
22          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
23
24 <html xmlns="http://www.w3.org/1999/xhtml">
25 <head>
26 <title>Tiny Tiny RSS</title>
27 <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
28 <link rel="apple-touch-icon" href="iui/iui-logo-touch-icon.png" />
29 <meta name="apple-touch-fullscreen" content="YES" />
30 <style type="text/css" media="screen">@import "iui/iui.css";</style>
31 <script type="application/x-javascript" src="iui/iui.js"></script>
32 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
33 <script type="text/javascript" src="../../lib/prototype.js"></script>
34 <script type="text/javascript" src="mobile.js"></script>
35 <style type="text/css" media="screen">@import "mobile.css";</style>
36 </head>
37
38 <style type="text/css">
39         img { max-width : 75%; }
40
41         li.oldItem {
42                 color : gray;
43         }
44
45         #myBackButton {
46             display: none;
47             left: 6px;
48             right: auto;
49             padding: 0;
50             max-width: 55px;
51             border-width: 0 8px 0 14px;
52             -webkit-border-image: url(iui/backButton.png) 0 8 0 14;
53         }
54
55         img.tinyIcon {
56                 max-width : 16px;
57                 max-height : 16px;
58                 margin-right : 10px;
59                 vertical-align : middle;
60         }
61
62         a img {
63                 border-width : 0px;
64         }
65 </style>
66
67 <body>
68     <div class="toolbar">
69         <h1 id="pageTitle"></h1>
70                   <a id="myBackButton" class="button" href="#"></a>
71         <a class="button" href="prefs.php">Preferences</a>
72     </div>
73
74         <?php
75         $use_cats = mobile_get_pref('ENABLE_CATS');
76         $offset = (int) db_escape_string($_REQUEST["skip"]);
77
78         if ($use_cats) {
79                 render_categories_list($link);
80         } else {
81                 render_flat_feed_list($offset);
82         }
83         ?>
84
85 </body>
86 </html>