1<?php
2/**
3 * DokuWiki Starter Template
4 *
5 * @link     http://dokuwiki.org/template:starter
6 * @author   Anika Henke <anika@selfthinker.org>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
11@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
12
13$_toc = tpl_toc(true);
14$showToc = !empty($_toc) ? true : false;
15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
16$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
17$sidebarElement = tpl_getConf('sidebarIsNav') ? 'nav' : 'aside';
18?><!DOCTYPE html>
19<html class="has-background-light" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
20  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
21<head>
22    <meta charset="UTF-8" />
23    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
24    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
25    <?php tpl_metaheaders() ?>
26    <meta name="viewport" content="width=device-width,initial-scale=1" />
27    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
28    <?php tpl_includeFile('meta.html') ?>
29</head>
30
31<?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
32<?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
33         should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
34<body>
35    <div id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
36    <!-- NAVBAR -->
37    <nav class="navbar has-shadow is-link mb-4" role="navigation" aria-label="main navigation">
38            <div class="navbar-brand">
39                <!-- LOGO -->
40                <?php
41                    $logo = tpl_getMediaFile(array('images/logo.svg'), true);
42                    tpl_link(
43                        wl(),
44                        '<img src="'. $logo .'"  alt="" />',
45                        'class="navbar-item brand-text" accesskey="h" title="[H]"'
46                    );
47                ?>
48                <!-- TITLE -->
49                <div class="navbar-item brand-text">
50                    <?php echo $conf['title']; ?>
51                </div><!-- /title -->
52            </div><!-- /navbar-brand -->
53            <div class="navbar-end">
54                 <?php _tpl_tools_menu(); ?>
55                 <?php _tpl_user_menu(); ?>
56            </div><!-- /navbar-end -->
57    </nav><!-- /navbar -->
58
59    <div class="container is-fluid">
60
61        <div class="columns">
62
63            <!-- SIDEBAR -->
64            <div id="bulma-sidebar" class="sidebar column is-2">
65                <?php if($showSidebar): ?>
66                    <nav class="content is-small">
67                        <?php tpl_include_page($conf['sidebar'], true, true) ?>
68                    </nav>
69                <?php endif; ?>
70            </div><!-- /bulma-sidebar -->
71
72            <!-- CONTENT COLUMN -->
73            <div class="bulma-content column has-background-white is-8">
74
75                <!-- BREADCRUMBS -->
76                <?php
77                if($conf['breadcrumbs']) {
78                    _tpl_breadcrumbs();
79                }
80                if($conf['youarehere']){ ?>
81                    <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
82                <?php } ?>
83
84                <!-- CONTENT -->
85                <div id="dokuwiki__content" class="content pl-4 pr-4">
86                    <?php _tpl_content(false) ?>
87                </div><!-- /content -->
88            </div><!-- /content column -->
89
90            <div class="bulma-toc-pagetools column is-2">
91                <div class="bulma-search">
92                    <?php _tpl_searchform() ?>
93                </div>
94                <?php if ($showToc) _tpl_toc(); ?>
95                <div id="bulma-pagetools" style="position: sticky; top: 0px">
96                    <h3 class="has-text-grey-light is-size-7">Page tools</h3>
97                    <?php _tpl_page_tools(); ?>
98                </div><!-- /bulma-pagetools -->
99            </div><!-- /bulma-toc -->
100
101        </div><!-- /columns -->
102    </div><!-- /container -->
103
104    </div><!-- /dokuwiki__top -->
105
106    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
107    </div>
108</body>
109</html>
110