forked from giterlizzi/dokuwiki-template-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tpl_sidebar.php
executable file
·33 lines (29 loc) · 1.24 KB
/
tpl_sidebar.php
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
<?php
/**
* DokuWiki Bootstrap3 Template: Sidebar
*
* @link http://dokuwiki.org/template:bootstrap3
* @author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
$sidebar_title = $lang['sidebar'];
if (bootstrap3_conf('sidebarShowPageTitle')) {
$sidebar_title = p_get_first_heading(page_findnearest($sidebar_page, bootstrap3_conf('useACL')));
if (! $sidebar_title) $sidebar_title = $lang['sidebar'];
}
?>
<!-- ********** ASIDE ********** -->
<aside id="<?php echo $sidebar_id ?>" class="dw__sidebar <?php echo $sidebar_class ?> hidden-print small">
<div class="dw-sidebar-content">
<div class="dw-sidebar-title hidden-lg hidden-md hidden-sm" data-toggle="collapse" data-target="#<?php echo $sidebar_id ?> .dw-sidebar-body">
<i class="fa fa-fw fa-th-list"></i> <?php echo $sidebar_title ?>
</div>
<div class="dw-sidebar-body collapse in">
<?php tpl_includeFile($sidebar_header) ?>
<?php bootstrap3_sidebar(tpl_include_page($sidebar_page, 0, 1, bootstrap3_conf('useACL'))) /* includes the nearest sidebar page */ ?>
<?php tpl_includeFile($sidebar_footer) ?>
</div>
</div>
</aside>