Automad
 All Classes Functions Variables Pages
sidebar.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 namespace Automad\Core;
39 
40 
41 defined('AUTOMAD') or die('Direct access not permitted!');
42 
43 
44 ?>
45 
46  <?php if ($this->user()) { ?>
47  <div class="column nav">
48  <div class="scroll">
49  <div class="inner">
50  <ul class="nav nav-pills nav-stacked">
51  <li class="<?php if (Parse::queryKey('context') == 'system_settings') { echo ' active'; }?>">
52  <a href="?context=system_settings"><span class="glyphicon glyphicon-cog hidden-md"></span> <?php echo $this->tb['sys_title']; ?></a>
53  </li>
54  <li class="<?php if (Parse::queryKey('context') == 'edit_shared') { echo ' active'; }?>">
55  <a href="?context=edit_shared"><span class="glyphicon glyphicon-globe hidden-md"></span> <?php echo $this->tb['shared_title']; ?></a>
56  </li>
57  </ul>
58  <?php echo $this->siteTree('', $this->collection, array('context' => 'edit_page'), false); ?>
59  </div>
60  </div>
61  </div>
62  <?php } ?>
63