1 {{* we have modified the navmenu (look at function frio_remote_nav() ) to have remote links. $nav.userinfo is a new variable and replaces the original $userinfo variable *}}
4 {{* {{$langselector}} *}}
6 <div id="site-location">{{$sitelocation}}</div>
7 <div id="banner" class="hidden-sm hidden-xs">
8 {{* show on remote/visitor connections an other logo which symols that fact*}}
10 <a href="{{$baseurl}}">
11 <div id="remote-logo-img" aria-label="{{$home}}"></div>
14 {{* #logo-img is the the placeholder to insert a mask (friendica logo) into this div
15 For Firefox we have to call the paths of the mask (look at the bottom of this file).
16 Because for FF we need relative paths we apply them with js after the page is loaded (look at theme.js *}}
17 <a href="{{$baseurl}}">
18 <div id="logo-img" aria-label="{{$home}}"></div>
23 <nav id="topbar-first" class="topbar">
24 <div class="container">
25 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 no-padding">
26 <!-- div for navbar width-->
27 <!-- Brand and toggle get grouped for better mobile display -->
28 <div class="topbar-nav" role="navigation">
30 {{* Buttons for the mobile view *}}
31 <button type="button" class="navbar-toggle offcanvas-right-toggle pull-right"
32 aria-controls="offcanvasUsermenu" aria-haspopup="true">
33 <span class="sr-only">Toggle navigation</span>
34 <i class="fa fa-ellipsis-v fa-fw fa-lg" aria-hidden="true"></i>
36 <button type="button" class="navbar-toggle collapsed pull-right" data-toggle="collapse"
37 data-target="#search-mobile" aria-expanded="false" aria-controls="search-mobile">
38 <span class="sr-only">Toggle Search</span>
39 <i class="fa fa-search fa-fw fa-lg" aria-hidden="true"></i>
41 <button type="button" class="navbar-toggle collapsed pull-left visible-sm visible-xs"
42 data-toggle="offcanvas" data-target="aside" aria-haspopup="true">
43 <span class="sr-only">Toggle navigation</span>
44 <i class="fa fa-ellipsis-v fa-fw fa-lg" aria-hidden="true"></i>
47 {{* Left section of the NavBar with navigation shortcuts/icons *}}
48 <ul class="nav navbar-left" role="menubar">
50 <li class="nav-segment">
51 <a accesskey="n" class="nav-menu {{$sel.network}}" href="{{$nav.network.0}}"
52 data-toggle="tooltip" aria-label="{{$nav.network.3}}" title="{{$nav.network.3}}"><i
53 class="fa fa-lg fa-th fa-fw" aria-hidden="true"></i><span id="net-update"
54 class="nav-network-badge badge nav-notification"></span></a>
58 <li class="nav-segment">
59 <a accesskey="p" class="nav-menu {{$sel.home}}" href="{{$nav.home.0}}" data-toggle="tooltip"
60 aria-label="{{$nav.home.3}}" title="{{$nav.home.3}}"><i class="fa fa-lg fa-home fa-fw"
61 aria-hidden="true"></i><span id="home-update"
62 class="nav-home-badge badge nav-notification"></span></a>
67 <li class="nav-segment">
68 <a accesskey="c" class="nav-menu {{$sel.community}}" href="{{$nav.community.0}}"
69 data-toggle="tooltip" aria-label="{{$nav.community.3}}" title="{{$nav.community.3}}"><i
70 class="fa fa-lg fa-bullseye fa-fw" aria-hidden="true"></i></a>
75 <li class="nav-segment hidden-xs">
76 <a accesskey="m" id="nav-messages-link" href="{{$nav.messages.0}}" data-toggle="tooltip"
77 aria-label="{{$nav.messages.1}}" title="{{$nav.messages.1}}"
78 class="nav-menu {{$sel.messages}}"><i class="fa fa-envelope fa-lg fa-fw"
79 aria-hidden="true"></i><span id="mail-update"
80 class="nav-mail-badge badge nav-notification"></span></a>
85 <li class="nav-segment hidden-xs">
86 <a accesskey="e" id="nav-events-link" href="{{$nav.events.0}}" data-toggle="tooltip"
87 aria-label="{{$nav.events.1}}" title="{{$nav.events.1}}" class="nav-menu"><i
88 class="fa fa-lg fa-calendar fa-fw"></i></a>
93 <li class="nav-segment hidden-xs">
94 <a accesskey="k" id="nav-contacts-link" href="{{$nav.contacts.0}}" data-toggle="tooltip"
95 aria-label="{{$nav.contacts.1}}" title="{{$nav.contacts.1}}"
96 class="nav-menu {{$sel.contacts}} {{$nav.contacts.2}}"><i
97 class="fa fa-users fa-lg fa-fw"></i></a>
101 {{* The notifications dropdown *}}
102 {{if $nav.notifications}}
103 <li id="nav-notification" class="nav-segment dropdown" role="presentation">
104 <button id="nav-notifications-menu-btn" class="btn-link dropdown-toggle" data-toggle="dropdown"
105 type="button" aria-haspopup="true" aria-expanded="false"
106 aria-controls="nav-notifications-menu">
107 <span id="notification-update" class="nav-notification-badge badge nav-notification"></span>
108 <i class="fa fa-bell fa-lg" aria-label="{{$nav.notifications.1}}"></i>
110 {{* The notifications dropdown menu. There are two parts of menu. The second is at the bottom of this file. It is loaded via js. Look at nav-notifications-template *}}
111 <ul id="nav-notifications-menu" class="dropdown-menu menu-popup" role="menu"
112 aria-labelledby="nav-notifications-menu-btn">
113 {{* the following list entry must have the id "nav-notificaionts-mark-all". Without it this isn't visable. ....strange behavior :-/ *}}
114 <li role="presentation" id="nav-notifications-mark-all" class="dropdown-header">
115 <div class="arrow"></div>
116 {{$nav.notifications.1}}
117 <div class="dropdown-header-link">
118 <button role="menuitem" type="button" class="btn-link"
119 onclick="notificationMarkAll();" data-toggle="tooltip"
120 aria-label="{{$nav.notifications.mark.3}}"
121 title="{{$nav.notifications.mark.3}}">{{$nav.notifications.mark.1}}</button>
126 <li role="presentation">
127 <p role="menuitem" class="text-muted"><i>{{$emptynotifications}}</i></p>
136 {{* This is the right part of the NavBar. It includes the search and the user menu *}}
137 <div class="topbar-actions pull-right">
140 {{* The search box *}}
142 <li id="search-box" class="hidden-xs">
143 <form class="navbar-form" role="search" method="get" action="{{$nav.search.0}}">
144 <!-- <img class="hidden-xs" src="{{$nav.userinfo.icon}}" alt="{{$nav.userinfo.name}}" style="max-width:33px; max-height:33px; min-width:33px; min-height:33px; width:33px; height:33px;"> -->
145 <div class="form-group form-group-search">
146 <input accesskey="s" id="nav-search-input-field" class="form-control form-search"
147 type="text" name="q" data-toggle="tooltip" title="{{$search_hint}}"
148 placeholder="{{$nav.search.1}}">
149 <button class="btn btn-default btn-sm form-button-search"
150 type="submit">{{$nav.search.1}}</button>
156 {{* The user dropdown menu *}}
158 <li id="nav-user-linkmenu" class="dropdown account nav-menu hidden-xs">
159 <button accesskey="u" id="main-menu" class="btn-link dropdown-toggle nav-avatar"
160 data-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false"
161 aria-controls="nav-user-menu">
162 <div aria-hidden="true" class="user-title pull-left hidden-xs hidden-sm hidden-md">
163 <strong>{{$nav.userinfo.name}}</strong><br>
164 {{if $nav.remote}}<span class="trunctate">{{$nav.remote}}</span>{{/if}}
167 <img id="avatar" src="{{$nav.userinfo.icon}}" alt="{{$nav.userinfo.name}}">
168 <span class="caret"></span>
171 {{* The list of available usermenu links *}}
172 <ul id="nav-user-menu" class="dropdown-menu pull-right menu-popup" role="menu"
173 aria-labelledby="main-menu">
176 <li id="nav-sitename" role="menuitem">{{$nav.sitename}}</li>
177 <li role="presentation" class="divider"></li>
180 {{foreach $nav.usermenu as $usermenu}}
181 <li role="presentation">
182 <a role="menuitem" class="{{$usermenu.2}}" href="{{$usermenu.0}}"
183 title="{{$usermenu.3}}">
188 <li role="presentation" class="divider"></li>
189 {{if $nav.notifications}}
190 <li role="presentation">
191 <a role="menuitem" href="{{$nav.notifications.all.0}}" title="{{$nav.notifications.1}}">
192 <i class="fa fa-bell fa-fw" aria-hidden="true"></i>
193 {{$nav.notifications.1}}
198 <li role="presentation"><a role="menuitem"
199 class="nav-commlink {{$nav.messages.2}} {{$sel.messages}}"
200 href="{{$nav.messages.0}}" title="{{$nav.messages.3}}">
201 <i class="fa fa-envelope fa-fw" aria-hidden="true"></i>
202 {{$nav.messages.1}} <span id="mail-update-li"
203 class="nav-mail-badge badge nav-notification"></span>
207 <li role="presentation" class="divider"></li>
209 <li role="presentation"><a role="menuitem" id="nav-menu-contacts-link"
210 class="nav-link {{$nav.contacts.2}}" href="{{$nav.contacts.0}}"
211 title="{{$nav.contacts.3}}">
212 <i class="fa fa-users fa-fw" aria-hidden="true"></i>
217 {{if $nav.delegation}}
218 <li role="presentation">
219 <a role="menuitem" id="nav-delegation-link"
220 class="nav-commlink {{$nav.delegation.2}} {{$sel.delegation}}"
221 href="{{$nav.delegation.0}}" title="{{$nav.delegation.3}}">
222 <i class="fa fa-flag fa-fw" aria-hidden="true"></i> {{$nav.delegation.1}}
226 <li role="presentation">
227 <a role="menuitem" id="nav-directory-link" class="nav-link {{$nav.directory.2}}"
228 href="{{$nav.directory.0}}" title="{{$nav.directory.3}}">
229 <i class="fa fa-sitemap fa-fw" aria-hidden="true"></i>{{$nav.directory.1}}
232 <li role="presentation" class="divider"></li>
234 <li role="presentation">
235 <a role="menuitem" id="nav-apps-link" class="nav-link {{$nav.apps.2}}"
236 href="{{$nav.apps.0}}" title="{{$nav.apps.3}}">
237 <i class="fa fa-puzzle-piece fa-fw" aria-hidden="true"></i> {{$nav.apps.1}}
239 <li role="presentation" class="divider"></li>
242 <li role="presentation">
243 <a role="menuitem" id="nav-help-link" class="nav-link {{$nav.help.2}}"
244 href="{{$nav.help.0}}" title="{{$nav.help.3}}">
245 <i class="fa fa-question-circle fa-fw" aria-hidden="true"></i> {{$nav.help.1}}
250 <li role="presentation">
251 <a role="menuitem" id="nav-settings-link" class="nav-link {{$nav.settings.2}}"
252 href="{{$nav.settings.0}}" title="{{$nav.settings.3}}">
253 <i class="fa fa-cog fa-fw" aria-hidden="true"></i> {{$nav.settings.1}}
258 <li role="presentation"><a accesskey="a" role="menuitem" id="nav-admin-link"
259 class="nav-link {{$nav.admin.2}}" href="{{$nav.admin.0}}"
260 title="{{$nav.admin.3}}"><i class="fa fa-user-secret fa-fw" aria-hidden="true"></i>
261 {{$nav.admin.1}}</a></li>
264 <li role="presentation" class="divider"></li>
265 <li role="presentation"><a role="menuitem" id="nav-tos-link" class="nav-link {{$nav.tos.2}}"
266 href="{{$nav.tos.0}}" title="{{$nav.tos.3}}"><i class="fa fa-file-text"
267 aria-hidden="true"></i> {{$nav.tos.1}}</a></li>
269 <li role="presentation" class="divider"></li>
271 <li role="presentation"><a role="menuitem" id="nav-logout-link"
272 class="nav-link {{$nav.logout.2}}" href="{{$nav.logout.0}}"
273 title="{{$nav.logout.3}}"><i class="fa fa fa-sign-out fa-fw" aria-hidden="true"></i>
274 {{$nav.logout.1}}</a></li>
276 <li role="presentation"><a role="menuitem" id="nav-login-link"
277 class="nav-login-link {{$nav.login.2}}" href="{{$nav.login.0}}"
278 title="{{$nav.login.3}}"><i class="fa fa-power-off fa-fw" aria-hidden="true"></i>
279 {{$nav.login.1}}</a></li>
282 </li>{{* End of userinfo dropdown menu *}}
285 <!-- Language selector, I do not find it relevant, activate if necessary.
286 <li>{{$langselector}}</li>
289 </div>{{* End of right navbar *}}
291 {{* The usermenu dropdown for the mobile view. Offcanvas on the right side of the screen.
292 It is called via the buttons. Have a look at the top of this file *}}
293 <div class="offcanvas-right-overlay visible-xs-block"></div>
294 <div id="offcanvasUsermenu" class="offcanvas-right visible-xs-block">
295 <div class="nav-container">
296 <ul role="menu" class="list-group">
299 <li role="menuitem" class="nav-sitename list-group-item">{{$nav.sitename}}</li>
302 <li role="presentation" class="list-group-item">
303 <img src="{{$nav.userinfo.icon}}" alt="{{$nav.userinfo.name}}"
304 style="max-width:15px; max-height:15px; min-width:15px; min-height:15px; width:15px; height:15px;">
305 {{$nav.userinfo.name}}{{if $nav.remote}} ({{$nav.remote}}){{/if}}
307 {{foreach $nav.usermenu as $usermenu}}
308 <li role="menuitem" class="list-group-item"><a role="menuitem" class="{{$usermenu.2}}"
309 href="{{$usermenu.0}}" title="{{$usermenu.3}}">{{$usermenu.1}}</a></li>
311 {{if $nav.notifications || $nav.contacts || $nav.messages || $nav.delegation}}
312 <li role="presentation" class="divider"></li>
314 {{if $nav.notifications}}
315 <li role="presentation" class="list-group-item"><a role="menuitem"
316 href="{{$nav.notifications.all.0}}" title="{{$nav.notifications.1}}"><i
317 class="fa fa-bell fa-fw" aria-hidden="true"></i> {{$nav.notifications.1}}</a>
321 <li role="presentation" class="list-group-item"><a role="menuitem"
322 class="nav-link {{$nav.contacts.2}}" href="{{$nav.contacts.0}}"
323 title="{{$nav.contacts.3}}"><i class="fa fa-users fa-fw" aria-hidden="true"></i>
324 {{$nav.contacts.1}}</a></li>
327 <li role="presentation" class="list-group-item"><a role="menuitem"
328 class="nav-link {{$nav.messages.2}} {{$sel.messages}}" href="{{$nav.messages.0}}"
329 title="{{$nav.messages.3}}"><i class="fa fa-envelope fa-fw" aria-hidden="true"></i>
330 {{$nav.messages.1}}</a></li>
332 {{if $nav.delegation}}
333 <li role="presentation" class="list-group-item"><a role="menuitem"
334 class="nav-commlink {{$nav.delegation.2}} {{$sel.delegation}}"
335 href="{{$nav.delegation.0}}" title="{{$nav.delegation.3}}"><i class="fa fa-flag fa-fw"
336 aria-hidden="true"></i> {{$nav.delegation.1}}</a></li>
338 {{if $nav.settings || $nav.admin || $nav.logout}}
339 <li role="presentation" class="divider"></li>
342 <li role="presentation" class="list-group-item">
343 <a role="menuitem" class="nav-link {{$nav.settings.2}}" href="{{$nav.settings.0}}"
344 title="{{$nav.settings.3}}"><i class="fa fa-cog fa-fw" aria-hidden="true"></i>
345 {{$nav.settings.1}}</a>
349 <li role="presentation" class="list-group-item"><a role="menuitem"
350 class="nav-link {{$nav.admin.2}}" href="{{$nav.admin.0}}" title="{{$nav.admin.3}}"><i
351 class="fa fa-user-secret fa-fw" aria-hidden="true"></i>
352 {{$nav.admin.1}}</a></li>
355 <li role="presentation" class="list-group-item"><a role="menuitem"
356 class="nav-link {{$nav.logout.2}}" href="{{$nav.logout.0}}" title="{{$nav.logout.3}}"><i
357 class="fa fa fa-sign-out fa-fw" aria-hidden="true"></i>
358 {{$nav.logout.1}}</a></li>
360 <li role="presentation" class="list-group-item"><a role="menuitem"
361 class="nav-login-link {{$nav.login.2}}" href="{{$nav.login.0}}"
362 title="{{$nav.login.3}}"><i class="fa fa-power-off fa-fw" aria-hidden="true"></i>
363 {{$nav.login.1}}</a></li>
368 <!--/.sidebar-offcanvas-->
369 </div><!-- end of div for navbar width-->
370 </div><!-- /.container -->
371 </nav><!-- /.navbar -->
375 {{* The navbar for users which are not logged in *}}
376 {{if $nav.userinfo == ''}}
377 <nav class="navbar navbar-fixed-top">
378 <div class="container">
379 <div class="navbar-header pull-left">
380 <a class="navbar-brand" href="#">
381 <div id="navbrand-container">
382 <div id="logo-img"></div>
383 <div id="navbar-brand-text"> Friendica</div>
387 <div class="pull-right">
388 <ul class="nav navbar-nav navbar-right">
389 <li role="presentation">
390 <a href="login?mode=none" id="nav-login" data-toggle="tooltip" aria-label="{{$nav.login.3}}"
391 title="{{$nav.login.3}}">
392 <i class="fa fa-sign-in fa-fw" aria-hidden="true"></i>
395 <li role="presentation">
396 <a href="{{$nav.about.0}}" id="nav-about" data-toggle="tooltip" aria-label="{{$nav.about.3}}"
397 title="{{$nav.about.3}}">
398 <i class="fa fa-info fa-fw" aria-hidden="true"></i>
408 {{* provide a a search input for mobile view, which expands by pressing the search icon *}}
409 <div id="search-mobile" class="hidden-lg hidden-md hidden-sm collapse row well">
410 <div class="col-xs-12">
411 <form class="navbar-form" role="search" method="get" action="{{$nav.search.0}}">
412 <!-- <img class="hidden-xs" src="{{$nav.userinfo.icon}}" alt="{{$nav.userinfo.name}}" style="max-width:33px; max-height:33px; min-width:33px; min-height:33px; width:33px; height:33px;"> -->
413 <div class="form-group form-group-search">
414 <input id="nav-search-input-field-mobile" class="form-control form-search" type="text" name="q"
415 data-toggle="tooltip" title="{{$search_hint}}" placeholder="{{$nav.search.1}}">
416 <button class="btn btn-default btn-sm form-button-search" type="submit">{{$nav.search.1}}</button>
422 {{* The second navbar which contains nav points of the actual page - (nav points are actual handled by this theme throug js *}}
423 <div id="topbar-second" class="topbar">
424 <div class="container">
425 <div class="col-lg-3 col-md-3 hidden-sm hidden-xs" id="nav-short-info"></div>
426 <div class="col-lg-7 col-md-7 col-sm-11 col-xs-10" id="tabmenu"></div>
427 <div class="col-lg-2 col-md-2 col-sm-1 col-xs-2" id="navbar-button"></div>
431 {{*The second part of the notifications dropdown menu. It handles the notifications *}}
432 {{if $nav.notifications}}
433 <ul id="nav-notifications-template" class="media-list" style="display:none;" rel="template">
434 <li class="{4} notif-entry">
435 <div class="notif-entry-wrapper media">
436 <div class="notif-photo-wrapper media-object pull-left" aria-hidden="true"><a href="{6}"
437 class="userinfo click-card" tabIndex="-1"><img data-src="{1}"></a></div>
438 <a href="{0}" class="notif-desc-wrapper media-body">
440 <div><time class="notif-when time" data-toggle="tooltip" title="{5}">{3}</time></div>
447 {{* This is the mask of the firefox logo. We set the background of #logo-img to the user icon color and apply this mask to it
448 The result is a friendica logo in the user icon color.*}}
449 <svg id="friendica-logo-mask" x="0px" y="0px" width="0px" height="0px" viewBox="0 0 250 250">
451 <mask id="logo-mask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox">
452 <path style="fill-rule:evenodd;clip-rule:evenodd;fill:#ffffff;"
453 d="M0.796,0L0.172,0.004C0.068,0.008,0.008,0.068,0,0.172V0.824c0,0.076,0.06,0.16,0.168,0.172h0.652c0.072,0,0.148-0.06,0.172-0.144V0.14C1,0.06,0.908,0,0.796,0zM0.812,0.968H0.36v-0.224h0.312v-0.24H0.36V0.3h0.316l0-0.264l0.116-0c0.088,0,0.164,0.044,0.164,0.096l0,0.696C0.96,0.912,0.876,0.968,0.812,0.968z">