1<?php
2/**
3 * DokuWiki Bootstrap3 Template: Sidebar
4 *
5 * @link     http://dokuwiki.org/template:bootstrap3
6 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10global $TPL;
11global $ACT;
12
13$sidebar_title = $lang['sidebar'];
14
15if ($TPL->getConf('sidebarShowPageTitle')) {
16    $sidebar_title = p_get_first_heading(page_findnearest($sidebar_page, $TPL->getConf('useACL')));
17    if (! $sidebar_title) $sidebar_title = $lang['sidebar'];
18}
19
20?>
21<!-- sidebar -->
22<aside id="<?php echo $sidebar_id ?>" class="dw__sidebar <?php echo $sidebar_class ?> hidden-print">
23    <div class="dw-sidebar-content">
24        <div class="dw-sidebar-title hidden-lg hidden-md hidden-sm" data-toggle="collapse" data-target="#<?php echo $sidebar_id ?> .dw-sidebar-body">
25            <?php echo iconify('mdi:view-list'); ?> <?php echo $sidebar_title ?>
26        </div>
27        <div class="dw-sidebar-body collapse in small">
28            <?php
29
30                tpl_includeFile("$sidebar_header.html");
31                if ($ACT == 'show') $TPL->includePage($sidebar_header);
32
33                $TPL->normalizeSidebar(tpl_include_page($sidebar_page, 0, 1, $TPL->getConf('useACL'))); /* includes the nearest sidebar page */
34
35                tpl_includeFile("$sidebar_footer.html");
36                if ($ACT == 'show') $TPL->includePage($sidebar_footer)
37
38            ?>
39        </div>
40    </div>
41</aside>
42<!-- /sidebar -->
43