/
home.phtml
160 lines (128 loc) · 7.58 KB
/
home.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<head>
<base href="<?PHP echo $this->base; ?>" />
<meta charset="utf-8">
<title><?PHP echo trim(\F3::get('html_title')); echo $this->statsUnread>0 ? ' ('.$this->statsUnread.')' : ''; ?></title>
<meta name="description" content="selfoss" />
<meta name="author" content="Tobias Zeising" />
<meta name="version" content="<?PHP echo \F3::get('version'); ?>" />
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1" />
<!-- Add support for fullscreen Webapp on iPhone 5 -->
<meta name="viewport" content="initial-scale=1, user-scalable=no, maximum-scale=1" media="(device-height: 568px)" />
<!-- app 'behaviour' when adding link to iDevice springboard -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- app 'behaviour' when adding link to Android Home -->
<meta name="mobile-web-app-capable" content="yes" />
<!-- app tile and notification when adding link to Windows 8 start screen -->
<meta name="application-name" content="Selfoss" />
<meta name="msapplication-TileColor" content="#3d6d69" />
<meta name="msapplication-square70x70logo" content="<?php echo $this->base; ?>win8-70-icon.png" />
<meta name="msapplication-square150x150logo" content="<?php echo $this->base; ?>win8-150-icon.png" />
<meta name="msapplication-wide310x150logo" content="<?php echo $this->base; ?>win8-150-icon.png" />
<meta name="msapplication-square310x310logo" content="<?php echo $this->base; ?>win8-310-icon.png" />
<meta name="msapplication-notification" content="cycle=1; frequency=30; polling-uri=<?php echo $this->base; ?>win8notifs" />
<meta name="msapplication-badge" content="frequency=30; polling-uri=<?php echo $this->base; ?>badge" />
<!-- RSS Feed -->
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="feed" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<!-- all css definitions -->
<?PHP if(\F3::get('use_system_font')!=true) : ?>
<link rel="stylesheet" href="css/fonts.css" />
<?PHP endif; ?>
<link rel="stylesheet" href="<?PHP echo \helpers\View::getGlobalCssFileName(); ?>" />
</head>
<body class="
<?PHP echo $this->publicMode===true ? "publicmode" : ""; ?>
<?PHP echo $this->loggedin===true ? "loggedin" : "notloggedin"; ?>
<?PHP echo \F3::get('auto_mark_as_read')==1 ? "auto_mark_as_read" : ""; ?>
">
<div id="error"></div>
<!-- language settings for jQuery -->
<span id="lang"
data-mark="<?PHP echo \F3::get('lang_mark'); ?>"
data-unmark="<?PHP echo \F3::get('lang_unmark'); ?>"
data-star="<?PHP echo \F3::get('lang_star'); ?>"
data-unstar="<?PHP echo \F3::get('lang_unstar'); ?>"
data-source_warn="<?PHP echo \F3::get('lang_source_warn'); ?>"
data-source_saved="<?PHP echo \F3::get('lang_source_saved'); ?>"
data-source_edit="<?PHP echo \F3::get('lang_source_edit'); ?>"></span>
<!-- other settings -->
<span id="config"
data-anonymizer="<?PHP echo \helpers\Anonymizer::getAnonymizer(); ?>"
data-share="<?PHP echo \F3::get('share'); ?>"
data-wallabag="<?PHP echo \F3::get('wallabag'); ?>"
data-wordpress="<?PHP echo \F3::get('wordpress'); ?>"
data-auto_mark_as_read="<?PHP echo \F3::get('auto_mark_as_read'); ?>"
data-auto_stream_more="<?PHP echo \F3::get('auto_stream_more'); ?>"
data-load_images_on_mobile="<?PHP echo \F3::get('load_images_on_mobile'); ?>"
data-items_perpage="<?PHP echo \F3::get('items_perpage'); ?>"
data-auto_hide_read_on_mobile="<?PHP echo \F3::get('auto_hide_read_on_mobile'); ?>"
data-html_title="<?PHP echo trim(\F3::get('html_title')); ?>"></span>
<!-- menue open for smartphone -->
<div id="nav-mobile">
<div id="nav-mobile-logo"><span class="unread-count<?PHP echo $this->statsUnread>0 ? ' unread' : ''; ?>"><?PHP echo $this->statsUnread; ?></span></div>
<div id="nav-mobile-settings"></div>
</div>
<!-- navigation -->
<div id="nav">
<div id="nav-logo"></div>
<div id="nav-mark"><?PHP echo \F3::get('lang_markread')?></div>
<?PHP $active = (\F3::get('homepage')) ? \F3::get('homepage') : 'newest' ?>
<ul id="nav-filter">
<li id="nav-filter-newest" class="nav-filter-newest<?PHP if($active=='newest') : ?> active<?PHP endif; ?>"><?PHP echo \F3::get('lang_newest')?> <span><?PHP echo $this->statsAll; ?></span></li>
<li id="nav-filter-unread" class="nav-filter-unread<?PHP if($active=='unread') : ?> active<?PHP endif; ?>"><?PHP echo \F3::get('lang_unread')?> <span class="unread-count<?PHP echo $this->statsUnread>0 ? ' unread' : ''; ?>"><?PHP echo $this->statsUnread; ?></span></li>
<li id="nav-filter-starred" class="nav-filter-starred<?PHP if($active=='starred') : ?> active<?PHP endif; ?>"><?PHP echo \F3::get('lang_starred') ?> <span><?PHP echo $this->statsStarred; ?></span></li>
</ul>
<hr>
<div id="nav-tags-wrapper">
<h2 id="nav-tags-title" class="nav-tags-expanded"><?PHP echo \F3::get('lang_tags') ?></h2>
<ul id="nav-tags">
<li class="active nav-tags-all"><?PHP echo \F3::get('lang_alltags')?></li>
<?PHP echo $this->tags; ?>
</ul>
<h2 id="nav-sources-title" class="nav-sources-collapsed"><?PHP echo \F3::get('lang_sources') ?></h2>
<ul id="nav-sources">
<?PHP echo $this->sources; ?>
</ul>
</div>
<hr>
<!-- navigation search input just for smartphone version -->
<div id="nav-search">
<input type="text" id="nav-search-term" /> <input type="button" id="nav-search-button" value="<?PHP echo \F3::get('lang_searchbutton')?>" />
<hr>
</div>
<?PHP if($this->loggedin===true && \F3::get('auth')->enabled()===false) : ?>
<div id="nav-refresh" title="<?PHP echo trim(\F3::get('lang_refreshbutton')); ?>" class="nologin"></div>
<div id="nav-settings" title="<?PHP echo trim(\F3::get('lang_settingsbutton')); ?>" class="nologin"></div>
<?PHP endif; ?>
<?PHP if($this->loggedin===true && \F3::get('auth')->enabled()===true) : ?>
<div id="nav-refresh" title="<?PHP echo trim(\F3::get('lang_refreshbutton')); ?>"></div>
<div id="nav-settings" title="<?PHP echo trim(\F3::get('lang_settingsbutton')); ?>"></div>
<div id="nav-logout" title="<?PHP echo trim(\F3::get('lang_logoutbutton')); ?>"></div>
<?PHP endif; ?>
<?PHP if($this->loggedin===false) : ?>
<div id="nav-login" title="<?PHP echo trim(\F3::get('lang_loginbutton')); ?>"></div>
<?PHP endif; ?>
<a id="nav-copyright" href="http://selfoss.aditu.de" target="_blank">selfoss <?PHP echo \F3::get('version'); ?></a>
</div>
<!-- search -->
<div id="search">
<input type="text" id="search-term" />
<div id="search-remove"></div>
<div id="search-button"></div>
<div id="search-shownav"></div>
</div>
<ul id="search-list">
</ul>
<!-- content -->
<div id="content">
<?PHP echo $this->content; ?>
</div>
<div class="stream-error"><?PHP echo trim(\F3::get('lang_streamerror')); ?></div>
<!-- fullscreen popup -->
<div id="fullscreen-entry"></div>
<script src="<?PHP echo \helpers\View::getGlobalJsFileName(); ?>"></script>
</body>
</html>