xref: /template/kiwiki/partial/content.php (revision 7eb6d987a8f0752418d0f024bec099ab2f205c98)
1<div id="dokuwiki__content__wrapper">
2    <!-- ********** ASIDE ********** -->
3
4    <?php
5
6    /* disable sidemenu on login and some pages */
7    $toc = tpl_toc(true);
8    if(($ACT!="login") && ($ACT!="denied")){
9        if (($ACT == 'show')||(isset($_REQUEST['page']) && $ACT=='admin' && $toc!="")){
10    ?>
11
12
13    <div id="dokuwiki__aside">
14        <div class="dokuwiki__aside_wrapper">
15        <?php
16            /* sidebar */
17            $sidebar = $conf['sidebar'];
18            if (!empty($sidebar)) {
19                $translation = plugin_load('helper','translation');
20                $currentlng = "";
21                if ($translation){
22                    $currentlng = (explode(":",$INFO['namespace']))[0] . ":";
23                }
24                $sidebar = $currentlng . $sidebar;
25                    ?>
26                    <div class="kiwiki-sidebar">
27                        <div class="sidebar-content">
28                        <?php tpl_include_page($sidebar, true, true);
29                        echo Kiwiki_Functions::_edit_icon($sidebar);
30                        ?>
31                        </div>
32                    </div>
33
34                <?php
35            }
36            /*toc*/
37            if ($toc!=""){
38                echo tpl_toc() ;
39            }
40            ?>
41        </div>
42    </div>
43    <?php
44        }
45    }
46    ?>
47    <!-- ********** CONTENT ********** -->
48
49    <main id="dokuwiki__content">
50
51        <div class="group">
52            <?php tpl_flush() ?>
53            <?php tpl_includeFile('pageheader.html') ?>
54            <div class="page group">
55                <!-- wikipage start -->
56                <?php tpl_content(false);
57                echo Kiwiki_Functions::_edit_icon('');
58                ?>
59                <!-- wikipage stop -->
60            </div>
61            <?php tpl_flush();
62            if(($ACT=="login") || ($ACT=="denied")){
63                html_msgarea();
64                echo '<a href="'.DOKU_BASE.'" class="back-home">' . tpl_getLang('Back to homepage') . '</a>';
65            }
66            if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'profile'){
67                echo '<div class="user_groups_info">' . tpl_getLang('User is in group');
68                echo join(', ',$INFO['userinfo']['grps']);
69                echo '</div>';
70            } ?>
71        </div>
72    </main><!-- /content -->
73</div><!-- /wrapper -->
74