Automad
 All Classes Functions Variables Pages
navbar.php
1 <?php
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  * AUTOMAD
29  *
30  * Copyright (c) 2014 by Marc Anton Dahmen
31  * http://marcdahmen.de
32  *
33  * Licensed under the MIT license.
34  * http://automad.org/license
35  */
36 
37 
38 defined('AUTOMAD') or die('Direct access not permitted!');
39 
40 
41 ?>
42 
43  <nav class="navbar navbar-default navbar-fixed-top hidden-sm hidden-xs" role="navigation">
44  <div class="container">
45  <div class="inner clearfix">
46  <div class="navbar-left">
47  <div class="logo"><a href="<?php echo AM_BASE_URL . AM_INDEX . AM_PAGE_GUI; ?>"><span class="glyphicon automad"></span></a></div>
48  </div>
49  <ul class="nav navbar-nav navbar-right">
50  <li>
51  <a href="<?php echo AM_BASE_URL; ?>/" target="_blank">
52  <span class="glyphicon glyphicon-home"></span><span class="hidden-md"> <?php echo $this->siteName(); ?></span>
53  </a>
54  </li>
55  <li>
56  <a href="http://automad.org" target="_blank">
57  <span class="glyphicon glyphicon-question-sign"></span><span class="hidden-md"> <?php echo $this->tb['btn_docs']; ?></span>
58  </a>
59  </li>
60  <?php if ($this->user()) { ?><li>
61  <a href="?context=logout">
62  <span class="glyphicon glyphicon-off"></span> <?php echo $this->tb['log_out_title']; ?> "<?php echo ucwords($this->user()); ?>"
63  </a>
64  </li><?php } ?>
65  </ul>
66  </div>
67  </div>
68  </nav>
69