1<?php
2/**
3 * Content template for Dokuwiki Kiwiki Theme
4 */
5
6// must be run from within DokuWiki
7if (!defined('DOKU_INC')) die();
8
9if (!empty($sidebar)) {
10    $sidebar = $INFO['namespace'] ? $INFO['namespace'] . ':' . $sidebar : $sidebar;
11}
12?>
13
14<div id="dokuwiki__content__wrapper" role="main">
15
16    <!-- ********** ASIDE LEFT ********** -->
17
18    <?php
19
20    if(($ACT!="login") && ($ACT!="denied")){
21        if( $sidebar_right == 0 || $toc_right  == 0 ){
22            $right = 0;
23            include('partial/sidebar_toc.php');
24        }
25    }
26    ?>
27
28    <!-- ********** CONTENT ********** -->
29    <main id="dokuwiki__content">
30
31        <div class="group">
32            <?php tpl_flush() ?>
33            <?php tpl_includeFile('pageheader.html') ?>
34            <div class="page group">
35                <!-- wikipage start -->
36                <?php tpl_content(false);
37                echo Kiwiki_Functions::_edit_icon('');
38                ?>
39                <!-- wikipage stop -->
40            </div>
41            <?php tpl_flush();
42            if(($ACT=="login") || ($ACT=="denied")){
43                html_msgarea();
44                echo '<a href="'.DOKU_BASE.'" class="back-home">' . tpl_getLang('Back to homepage') . '</a>';
45            }
46            if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'profile'){
47                echo '<div class="user_groups_info">' . tpl_getLang('User is in group');
48                echo join(', ',$INFO['userinfo']['grps']);
49                echo '</div>';
50            } ?>
51        </div>
52    </main><!-- /content -->
53
54    <!-- ********** ASIDE RIGHT ********** -->
55    <?php
56
57    if(($ACT!="login") && ($ACT!="denied")){
58        if( $sidebar_right == 1 || $toc_right  == 1 ){
59            $right = 1;
60             include('partial/sidebar_toc.php');
61        }
62    }
63    ?>
64
65</div><!-- /wrapper -->
66<?php
67/* mobile sidebar */
68if (($ACT == 'show') && page_exists($sidebar)) {
69
70        ?>
71        <div class="kiwiki-sidebar-mobile">
72            <div class="sidebar-content">
73            <?php
74            tpl_include_page($sidebar, true, true);
75            echo Kiwiki_Functions::_edit_icon($sidebar);
76            ?>
77            </div>
78        </div>
79
80    <?php
81}
82?>