1<?php
2/**
3 * DokuWiki GHW Template 2017
4 *
5 * @link     http://dokuwiki.org/template
6 * @author   Jonathan Cox <cbjcaesar@gmail.com>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
11header('X-UA-Compatible: IE=edge,chrome=1');
12
13$hasSidebar = page_findnearest($conf['sidebar']);
14$showSidebar = $hasSidebar && ($ACT == 'show');
15?><!DOCTYPE html>
16<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
17<head>
18    <meta charset="utf-8"/>
19    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
20    <script>(function (H) {
21            H.className = H.className.replace(/\bno-js\b/, 'js')
22        })(document.documentElement)</script>
23    <script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
24    <?php tpl_metaheaders() ?>
25    <meta name="viewport" content="width=device-width,initial-scale=1"/>
26    <?php echo tpl_favicon(array('favicon', '')) ?>
27    <?php tpl_includeFile('meta.html') ?>
28
29    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
30
31</head>
32
33<body>
34<div id="dokuwiki__site">
35    <div id="dokuwiki__top" class="container site <?php echo tpl_classes(); ?> <?php
36    echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>">
37
38        <div id="docs">
39            <div id="sidebar">
40                <div class="logo">
41                    <?php
42                    // get logo either out of the template images folder or data/media folder
43                    $logoSize = array(200,30);
44                    $logo = tpl_getMediaFile(array('images/logo.png', 'images/logo.png', 'images/logo.png'), false, $logoSize);
45
46                    // display logo and wiki title in a link to the home page
47                    tpl_link(
48                        wl(),
49                        '<img src="'.$logo.'" alt="" width="150" height="30" /> docs<span></span>',
50                        'accesskey="h" title="[H]"'
51                    );
52                    ?>
53                </div>
54
55                <div class="nav-border"></div>
56                <nav>
57                    <div class="filterBlock">
58                        <input type="text" id="filterInput" placeholder="Type to filter">
59                        <a href="#" id="clearFilterButton">x</a>
60                    </div>
61                    <?php tpl_include_page($conf['sidebar'], true, true) ?>
62                </nav>
63            </div>
64            <div id="content-wrapper" tabindex="0">
65                <div class="overlay"></div>
66                <div class="search-results">
67                    <ul class="results"></ul>
68                </div>
69                <form class="search">
70                    <?php tpl_searchform(); ?>
71                    <div class="search-after">
72                        <span class="search-text"></span>
73                        <span class="search-after-text--no-results">— No Results</span>
74                    </div>
75                </form>
76                <header id="main-header">
77                    <nav>
78                        <ul class="external">
79                            <?php
80
81                            tpl_toolsevent('usertools', array(
82                                tpl_action('admin', true, 'li', true),
83                                tpl_action('profile', true, 'li', true),
84                                tpl_action('register', true, 'li', true),
85                                tpl_action('login', true, 'li', true)
86                            ));
87                            ?>
88                        </ul>
89                    </nav>
90                </header>
91                <article id="content">
92
93                    <!-- BREADCRUMBS -->
94                    <ul class="external">
95                        <?php
96                        if (!empty($_SERVER['REMOTE_USER'])) {
97                            echo '<li class="user">';
98                            tpl_userinfo(); /* 'Logged in as ...' */
99                            echo '</li>';
100                        }
101                        ?>
102                    </ul>
103                    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
104                        <div class="breadcrumbs">
105                            <?php if($conf['youarehere']): ?>
106                                <div class="youarehere"><?php tpl_youarehere() ?></div>
107                            <?php endif ?>
108                            <?php if($conf['breadcrumbs']): ?>
109                                <ul id="trace" class="stripped-ul"><?php tpl_breadcrumbs() ?></ul>
110                            <?php endif ?>
111                        </div>
112                    <?php endif ?>
113
114
115