]>
Commit | Line | Data |
---|---|---|
1ca77e0a | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
c01f40f4 AD |
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 | ||
4 | <html> | |
5 | <head> | |
4311cc7e | 6 | <title>Tiny Tiny RSS</title> |
ba7e88e5 | 7 | |
0f12ead5 AD |
8 | <?php |
9 | require_once "lib/Mobile_Detect.php"; | |
10 | $mobile = new Mobile_Detect(); | |
11 | ||
12 | if ($mobile->isMobile() || @$_REQUEST['mode'] == 'mobile') { | |
13 | $_SESSION["digest_mobile"] = 1; | |
14 | echo stylesheet_tag("plugins/digest/mobile.css"); | |
15 | } else { | |
16 | $_SESSION["digest_mobile"] = 0; | |
17 | echo stylesheet_tag("plugins/digest/digest.css"); | |
18 | } | |
19 | ?> | |
20 | ||
21 | <meta name="viewport" content="width=device-width, | |
22 | minimum-scale=1.0, maximum-scale=1.0" /> | |
c01f40f4 AD |
23 | |
24 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
25 | ||
6322ac79 | 26 | <?php print_user_stylesheet(); ?> |
c01f40f4 AD |
27 | |
28 | <link rel="shortcut icon" type="image/png" href="images/favicon.png"/> | |
29 | ||
2d2d08fc AD |
30 | <?php |
31 | foreach (array("lib/prototype.js", | |
32 | "lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls", | |
2d2d08fc AD |
33 | "js/functions.js", |
34 | "plugins/digest/digest.js", | |
35 | "errors.php?mode=js") as $jsfile) { | |
36 | ||
37 | echo javascript_tag($jsfile); | |
2d2d08fc | 38 | } ?> |
c01f40f4 | 39 | |
9515f1cc AD |
40 | <script type="text/javascript"> |
41 | <?php init_js_translations(); ?> | |
42 | </script> | |
43 | ||
ac220751 | 44 | <script type="text/javascript" src="plugins/digest/digest.js"></script> |
c01f40f4 AD |
45 | |
46 | <script type="text/javascript"> | |
47 | Event.observe(window, 'load', function() { | |
0f12ead5 | 48 | init(<?php echo $_SESSION["digest_mobile"] ?>); |
c01f40f4 AD |
49 | }); |
50 | </script> | |
51 | </head> | |
2d2d08fc | 52 | <body id="ttrssDigest"> |
c7a5c8a5 AD |
53 | <div id="overlay" style="display : block"> |
54 | <div id="overlay_inner"> | |
55 | <noscript> | |
56 | <p> | |
e5c3f0b2 | 57 | <?php print_error(__("Your browser doesn't support Javascript, which is required for this application to function properly. Please check your browser settings.")) ?></p> |
c7a5c8a5 AD |
58 | </noscript> |
59 | ||
60 | <img src="images/indicator_white.gif"/> | |
61 | <?php echo __("Loading, please wait...") ?> | |
62 | </div> | |
1ca77e0a | 63 | </div> |
c7a5c8a5 | 64 | |
c01f40f4 | 65 | <div id="header"> |
0f12ead5 AD |
66 | <a style="float : left" href="#" onclick="go_back()"> |
67 | <?php echo __("Go back") ?></a> | |
c01f40f4 AD |
68 | |
69 | <div class="links"> | |
c8b31978 | 70 | |
bb4cd19b | 71 | <?php if (!$_SESSION["hide_hello"]) { ?> |
c01f40f4 AD |
72 | <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> | |
73 | <?php } ?> | |
bb4cd19b | 74 | <?php if (!$_SESSION["hide_logout"]) { ?> |
310fa2dd | 75 | <a href="backend.php?op=logout"><?php echo __('Logout') ?></a> | |
c01f40f4 | 76 | <?php } ?> |
310fa2dd AD |
77 | <a href='<?php echo get_self_url_prefix() ?>/index.php?mobile=false'> |
78 | <?php echo __("Regular version") ?></a> | |
79 | ||
c01f40f4 | 80 | </div> |
c01f40f4 | 81 | </div> |
c01f40f4 | 82 | |
bb674f94 | 83 | <div id="article"><div id="article-content"> </div></div> |
c01f40f4 | 84 | |
bb674f94 | 85 | <div id="content"> |
c01f40f4 AD |
86 | |
87 | <div id="feeds"> | |
c01f40f4 AD |
88 | <ul id="feeds-content"> </ul> |
89 | </div> | |
90 | ||
91 | <div id="headlines"> | |
c01f40f4 AD |
92 | <ul id="headlines-content"> </ul> |
93 | </div> | |
c01f40f4 AD |
94 | </div> |
95 | ||
c01f40f4 | 96 | </body> |
a2998811 | 97 | </html> |