xref: /template/kiwiki/partial/sidebar_toc.php (revision c17c23bd1b4ad0417bc7fdb3f7a48d1ac4897578)
1<?php
2/* disable sidemenu on login and some pages */
3
4    //var_dump($ACT);
5    if ((page_exists($sidebar) && $ACT == 'show' && $sidebar_right == $right) || ($toc!="" && $toc_right == $right)){
6    ?>
7    <div class="kiwiki_aside <?php echo ($right == 1) ? 'right' : 'left'; ?>" role="navigation">
8            <div class="dokuwiki__aside_wrapper">
9            <?php
10            /* sidebar */
11            if ($ACT == 'show' && page_exists($sidebar) && $sidebar_right == $right) {
12
13                ?>
14                <div class="kiwiki-sidebar">
15                    <div class="sidebar-content">
16                    <?php
17                    tpl_include_page($sidebar, true, true);
18                    echo Kiwiki_Functions::_edit_icon($sidebar);
19                    ?>
20                    </div>
21                </div>
22
23            <?php
24            }
25            /*toc*/
26            if ($toc!="" && $toc_right == $right){
27                echo tpl_toc() ;
28            }
29            ?>
30            </div>
31    </div>
32    <?php
33    }
34    ?>