1<?php
2/**
3 * DokuWiki Bushwick Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:bushwick
7 * @author   desbest <afaninthehouse@gmail.com>
8 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 */
10
11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
12@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
13header('X-UA-Compatible: IE=edge,chrome=1');
14
15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
16$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
17?><!DOCTYPE html>
18<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
19  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
20<head>
21    <meta charset="UTF-8" />
22    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
23    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
24    <?php tpl_metaheaders() ?>
25    <meta name="viewport" content="width=device-width,initial-scale=1" />
26    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
27    <?php tpl_includeFile('meta.html') ?>
28    <link rel='stylesheet' id='bushwick-lato-css'  href='https://fonts.googleapis.com/css?family=Lato%3A400%2C700%2C400italic%2C700italic%2C900&#038;subset=latin%2Clatin-ext' type='text/css' media='all' />
29</head>
30
31<body id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
32
33    <?php
34    //get_template_part( 'sidebar', is_single() ? 'single' : 'index' );
35    //get_sidebar();
36    ?>
37
38    <?php tpl_includeFile('header.html') ?>
39     <?php /* how to insert logo instead (if no CSS image replacement technique is used):
40        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
41        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
42    <div class="site-header"><header id="masthead" class="site-header " role="banner">
43        <div class="site-branding">
44            <h1 class="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
45            <?php if ($conf['tagline']): ?>
46                <p class="site-description"><?php echo $conf['tagline'] ?></p>
47            <?php endif ?>
48            <ul class="a11y skip">
49                <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
50            </ul>
51        </div>
52    </header></div><!-- #masthead -->
53
54    <div id="secondary" class="widget-area" role="complementary">
55    <div class="widget-container" style="position: relative; height: 260.7px;">
56
57    <aside id="search" class="widget" style="position: absolute; left: 0px; top: 0px;"><h1 class="widget-title">Search</h1> <!-- <ul>
58    <li class="cat-item cat-item-1"><a href="http://localhost/wordpress/category/uncategorized/">Uncategorized</a></li>
59    </ul> -->
60    <?php tpl_searchform() ?>
61    </aside>
62
63    <aside id="usertools" class="widget" style="position: absolute; left: 348px; /*! top: 97px; */">       <h1 class="widget-title">User Tools</h1>      <ul>
64      <!-- USER TOOLS -->
65        <?php if ($conf['useacl'] && $showTools): ?>
66        <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
67            <?php
68                if (!empty($_SERVER['REMOTE_USER'])) {
69                    echo '<li class="user">';
70                    tpl_userinfo(); /* 'Logged in as ...' */
71                    echo '</li>';
72                }
73            ?>
74            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
75                     e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
76            ?>
77            <?php tpl_toolsevent('usertools', array(
78                'admin'     => tpl_action('admin', 1, 'li', 1),
79                'userpage'  => _tpl_action('userpage', 1, 'li', 1),
80                'profile'   => tpl_action('profile', 1, 'li', 1),
81                'register'  => tpl_action('register', 1, 'li', 1),
82                'login'     => tpl_action('login', 1, 'li', 1),
83            )); ?>
84        <?php endif ?>
85    </ul>
86    </aside>
87
88    <aside>
89      <!-- ********** ASIDE ********** -->
90        <?php if ($showSidebar): ?>
91            <div id="writtensidebar" class="widget">
92                <?php tpl_includeFile('sidebarheader.html') ?>
93                <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
94                <?php tpl_includeFile('sidebarfooter.html') ?>
95                <div class="clearer"></div>
96            </div><!-- /aside -->
97        <?php endif; ?>
98    </aside>
99
100    </div></div>
101
102
103    <div id="primary" class="content-area">
104        <main id="main" class="site-main" role="main">
105
106                <!-- // get_template_part( 'navigation' ); -->
107                <nav id="site-navigation" class="navigation-main" role="navigation">
108                <h1 class="menu-toggle genericon"></h1>
109                <div class="screen-reader-text skip-link"><a href="#content" title="Skip to content">Skip to content</a></div>
110                <div class="menu-my-first-menu-container"><ul id="menu-my-first-menu" class="menu nav-menu">
111                <!-- SITE TOOLS -->
112                <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
113                <?php tpl_toolsevent('sitetools', array(
114                    'recent'    => tpl_action('recent', 1, 'li', 1),
115                    'media'     => tpl_action('media', 1, 'li', 1),
116                    'index'     => tpl_action('index', 1, 'li', 1),
117                )); ?>
118                </ul></div>
119
120                <?php //wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
121                <a class="widget-handle genericon" href="#"></a>
122                </nav><!-- #site-navigation -->
123
124                <!-- //get_template_part( 'content', 'single' ); -->
125
126                <article class="post type-post status-publish format-standard hentry">
127                <!-- <h1 class="entry-title">title</h1> -->
128
129                <aside class="entry-summary">
130                     <!-- BREADCRUMBS -->
131                    <?php if($conf['breadcrumbs']){ ?>
132                        <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
133                    <?php } ?>
134                    <?php if($conf['youarehere']){ ?>
135                        <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
136                    <?php } ?>
137                </aside><!-- .entry-summary -->
138
139                <aside class="entry-meta">
140                    <span class="edit-link"></span>
141                    <!-- PAGE ACTIONS -->
142                    <?php if ($showTools): ?>
143                    <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
144                    <?php tpl_toolsevent('pagetools', array(
145                        'edit'      => tpl_action('edit', 1, 'span class=\'pagetoolitem\'', 1),
146                        'discussion'=> _tpl_action('discussion', 1, 'span class=\'pagetoolitem\'', 1),
147                        'revisions' => tpl_action('revisions', 1, 'span class=\'pagetoolitem\'', 1),
148                        'backlink'  => tpl_action('backlink', 1, 'span class=\'pagetoolitem\'', 1),
149                        'subscribe' => tpl_action('subscribe', 1, 'span class=\'pagetoolitem\'', 1),
150                        'revert'    => tpl_action('revert', 1, 'span class=\'pagetoolitem\'', 1),
151                        'top'       => tpl_action('top', 1, 'span class=\'pagetoolitem\'', 1),
152                    )); ?>
153                    <?php endif; ?>
154                </aside>
155
156                <div class="entry-content">
157
158                        <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
159
160                        <!-- // the_content(); -->
161
162                        <!-- ********** CONTENT ********** -->
163                        <!-- <div id="dokuwiki__content"><div class="pad"> -->
164                            <?php tpl_flush() /* flush the output buffer */ ?>
165                            <?php tpl_includeFile('pageheader.html') ?>
166
167                            <div class="page">
168                                <!-- wikipage start -->
169                                <?php tpl_content() /* the main content */ ?>
170                                <!-- wikipage stop -->
171                                <div class="clearer"></div>
172                            </div>
173
174                            <?php tpl_flush() ?>
175                            <?php tpl_includeFile('pagefooter.html') ?>
176                        <!-- </div></div> --><!-- /content -->
177
178                         <?php
179                        // wp_link_pages( array(
180                        //     'before' => '<div class="page-links">' . __( 'Pages:', 'bushwick' ),
181                        //     'after'  => '</div>',
182                        // ) );
183                    ?>
184                </div><!-- .entry-content -->
185                </article><!-- #post-## -->
186
187                <!-- // If comments are open or we have at least one comment, load up the comment template. -->
188
189        </main><!-- #main -->
190    </div><!-- #primary -->
191
192
193    <footer id="colophon" class="site-footer" role="contentinfo">
194        <div class="site-info">
195            <?php //do_action( 'bushwick_credits' ); ?>
196            <p><?php tpl_pageinfo() /* 'Last modified' etc */ ?></p>
197            <p><a href="http://wordpress.org/" title="A Semantic Personal Publishing Platform" rel="generator">Powered by Dokuwiki</a>
198            <a href="">Bushwick theme by James Dinsdale</a></p>
199            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
200        </div><!-- .site-info -->
201    </footer><!-- #colophon -->
202    <?php tpl_includeFile('footer.html') ?>
203
204    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
205    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
206             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
207
208
209
210
211    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
212    <script type="text/javascript" src="<?php echo tpl_basedir();?>/functions.js"></script>
213    <script type="text/javascript" src="<?php echo tpl_basedir();?>/masonry3.3.8.min.js"></script>
214    <!-- due to the way dokuwiki buffers output, this javascript has to
215            be before the </body> tag and not in the <head> -->
216</body>
217</html>
218