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 topbar">
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                            if (!empty($_SERVER['REMOTE_USER'])) {
81                            echo '<li class="user">';
82                            tpl_userinfo(); /* 'Logged in as ...' */
83                            echo '</li>';
84                            }
85
86                            tpl_toolsevent('usertools', array(
87                                tpl_action('admin', true, 'li', true),
88                                tpl_action('profile', true, 'li', true),
89                                tpl_action('register', true, 'li', true),
90                                tpl_action('login', true, 'li', true)
91                            ));
92                            ?>
93                        </ul>
94                    </nav>
95                </header>
96                <article id="content">
97
98                    <!-- BREADCRUMBS -->
99                    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
100                        <div class="breadcrumbs">
101                            <?php if($conf['youarehere']): ?>
102                                <div class="youarehere"><?php tpl_youarehere() ?></div>
103                            <?php endif ?>
104                            <?php if($conf['breadcrumbs']): ?>
105                                <ul id="trace" class="stripped-ul"><?php tpl_breadcrumbs() ?></ul>
106                            <?php endif ?>
107                        </div>
108                    <?php endif ?>
109
110
111