1<?php
2/**
3 * DokuWiki mywiki Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:mywiki
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='google-fonts-open-sans-css'  href='//fonts.googleapis.com/css?family=Open+Sans&#038;ver=5.4.4' type='text/css' media='all' />
29    <link rel='stylesheet' id='google-fonts-lato-css'  href='//fonts.googleapis.com/css?family=Lato&#038;ver=5.4.4' type='text/css' media='all' />
30    <link rel='stylesheet' id='google-fonts-cabin-css'  href='//fonts.googleapis.com/css?family=Cabin&#038;ver=5.4.4' type='text/css' media='all' />
31
32</head>
33
34<body>
35
36    <div id="wrap" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
37<?php tpl_includeFile('header.html') ?>
38<header role="banner">
39  <div id="inner-header" class="clearfix">
40    <div class="navbar navbar-default top-bg">
41      <div class="container" id="navbarcont">
42        <div class="row">
43
44                <ul class="a11y skip">
45                    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
46                </ul>
47
48        <div class="nav-container col-md-9">
49          <nav role="navigation">
50            <div class="navbar-header navbar-brand logo">
51              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
52               <?php /* how to insert logo instead (if no CSS image replacement technique is used):
53                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
54                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
55                 <p><span class="header-text logo"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></span></p>
56                <h4>
57                    <?php if ($conf['tagline']): ?>
58                    <span class="header-description-text"><?php echo $conf['tagline'] ?></span>
59                    <?php endif ?>
60              </a>
61            </div>
62            <!-- end .navbar-header -->
63          </nav>
64        </div>
65        <div class="navbar-collapse collapse top-menu">
66
67        <div class="menu-my-first-menu-container"><ul id="menu" class="nav navbar-nav navbar-right mywiki-header-menu">
68        <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
69        <?php tpl_toolsevent('sitetools', array(
70            'recent'    => tpl_action('recent', 1, 'li', 1),
71            'media'     => tpl_action('media', 1, 'li', 1),
72            'index'     => tpl_action('index', 1, 'li', 1),
73        )); ?>
74        </ul></div>
75          <?php
76            $mywiki_defaults = array(
77                    'theme_location'  => 'primary',
78                    'container'       => 'div',
79                    'echo'            => true,
80                    'fallback_cb'     => 'wp_page_menu',
81                    'items_wrap'      => '<ul id="menu" class="nav navbar-nav navbar-right mywiki-header-menu">%3$s</ul>',
82                    'depth'           => 0,
83                    'walker'          => ''
84                    );
85            //wp_nav_menu( $mywiki_defaults ); ?>
86        </div>
87        <!-- end .nav-container -->
88        </div>
89      </div>
90      <!-- end #navcont -->
91    </div>
92    <!-- end .navbar -->
93  </div>
94  <!-- end #inner-header -->
95</header>
96<!-- end header -->
97<div class="searchwrap ">
98  <div class="container" id="search-main">
99    <div class="row">
100        <div class="input-group"><?php tpl_searchform() ?></div>
101
102
103      <!-- <form class="asholder search-main col-md-12 col-sm-12 col-xs-12" role="search" method="get" id="searchformtop" action="/">
104          <div class="input-group" id="suggest">
105            <input name="s" id="s" type="text" onKeyUp="suggest(this.value);" onBlur="fill();" class="search-query form-control pull-right" autocomplete="off" placeholder="Have a Question? Write here and press enter" data-provide="typeahead" data-items="4" data-source=''>
106            <div class="suggestionsbox" id="suggestions" style="display: none;"> <img src="/img/arrow1.png'; ?>" height="18" width="27" class="upArrow" alt="upArrow" />
107              <div class="suggestionlist" id="suggestionslist"></div>
108            </div>
109        </div>
110      </form> -->
111    </div>
112  </div>
113</div>
114<div class="container " id="maincnot">
115
116    <!-- begin content -->
117<div id="content" class="row">
118  <div id="main" class="col-sm-8 clearfix" role="main">
119    <div id="home-main" class="home-main home mywiki-post">
120      <article class="clearfix" role="article" itemscope>
121        <header>
122           <!--  <header>
123              <div class="page-catheader cat-catheader">
124                <h4 class="cat-title">
125                  <?php //the_title(); ?>
126                </h4>
127              </div>
128            </header>  -->
129            <article class="clearfix" role="article">
130              <header>
131              <div class="single-page">
132                <div class="meta nopadding">
133
134
135                <!-- BREADCRUMBS -->
136                <?php if($conf['breadcrumbs']){ ?>
137                    <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
138                <?php } ?>
139                <?php if($conf['youarehere']){ ?>
140                    <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
141                <?php } ?>
142                   &nbsp;<span class="sprite amp cat-icon-small"><i class="fa fa-folder-open"></i>
143                  <?php //the_category(', '); ?>
144                  </span>
145                </div>
146               </div>
147              </header>
148              <!-- end article header -->
149              <section class="post_content">
150                <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
151                <?php //the_content(); ?>
152                 <!-- ********** CONTENT ********** -->
153                    <?php tpl_flush() /* flush the output buffer */ ?>
154                    <?php tpl_includeFile('pageheader.html') ?>
155
156                    <div id="dokuwiki__content" class="page">
157                        <!-- wikipage start -->
158                        <?php tpl_content() /* the main content */ ?>
159                        <!-- wikipage stop -->
160                        <div class="clearer"></div>
161                    </div>
162
163                    <?php tpl_flush() ?>
164                    <?php tpl_includeFile('pagefooter.html') ?>
165
166                <figure class="single_cat_image"> <img src="" /> </figure>
167                <?php //wp_link_pages(); ?>
168              </section>
169              <!-- end article section -->
170            </article>
171        </header>
172      </article>
173      <!-- end article -->
174      <nav class="mywiki-nav">
175          <span class="mywiki-nav-previous"><?php //previous_post_link( '%link', '<span>'.'<< </span> %title' ); ?></span>
176          <span class="mywiki-nav-next"><?php //next_post_link( '%link', '%title <span>'.'>> </span>' ); ?></span>
177          </nav>
178    </div>
179    <?php //comments_template( '', true ); ?>
180  </div>
181  <!-- end #main -->
182  <?php //get_sidebar(); // sidebar 1 ?>
183    <div id="sidebar1" class="fluid-sidebar sidebar col-sm-4 border-left margin-bottom" role="complementary">
184
185        <!-- <div id="search-10" class="widget">
186            <form role="search" method="get" class="search-form" action="http://localhost/wordpress/">
187            <span class="screen-reader-text">Search</span>
188            <input type="search" class="search-field" placeholder="Search" value="" name="s">
189            <button type="submit" class="search-submit fa fa-search"><span class="screen-reader-text"></span></button>
190            </form>
191        </div> -->
192
193        <div id="writtensidebar" class="widget">
194
195         <!-- ********** ASIDE ********** -->
196          <?php if ($showSidebar): ?>
197          <?php tpl_includeFile('sidebarheader.html') ?>
198          <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
199          <?php tpl_includeFile('sidebarfooter.html') ?>
200          <div class="clearer"></div>
201          <?php endif; ?>
202        </div>
203
204        <div id="pagetools" class="widget">
205        <h4 class="sidebar-heading"><span>Page Tools</span></h4>     <ul>
206        <!-- PAGE ACTIONS -->
207        <?php if ($showTools): ?>
208                <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
209                    <?php tpl_toolsevent('pagetools', array(
210                        'edit'      => tpl_action('edit', 1, 'li', 1),
211                        'discussion'=> _tpl_action('discussion', 1, 'li', 1),
212                        'revisions' => tpl_action('revisions', 1, 'li', 1),
213                        'backlink'  => tpl_action('backlink', 1, 'li', 1),
214                        'subscribe' => tpl_action('subscribe', 1, 'li', 1),
215                        'revert'    => tpl_action('revert', 1, 'li', 1),
216                        'top'       => tpl_action('top', 1, 'li', 1),
217                    )); ?>
218        <?php endif; ?>
219        </ul></div>
220
221        <div id="usertools" class="widget">
222        <h4 class="sidebar-heading"><span>User Tools</span></h4>      <ul>
223        <!-- USER TOOLS -->
224        <?php if ($conf['useacl'] && $showTools): ?>
225            <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
226            <?php
227                if (!empty($_SERVER['REMOTE_USER'])) {
228                    echo '<li class="user">';
229                    tpl_userinfo(); /* 'Logged in as ...' */
230                    echo '</li>';
231                }
232            ?>
233            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
234                     e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
235            ?>
236            <?php tpl_toolsevent('usertools', array(
237                'admin'     => tpl_action('admin', 1, 'li', 1),
238                'userpage'  => _tpl_action('userpage', 1, 'li', 1),
239                'profile'   => tpl_action('profile', 1, 'li', 1),
240                'register'  => tpl_action('register', 1, 'li', 1),
241                'login'     => tpl_action('login', 1, 'li', 1),
242            )); ?>
243        <?php endif ?>
244        </ul>
245        </div>  <!-- This content shows up if there are no widgets defined in the backend. -->
246    </div>
247</div>
248<!-- end #content -->
249    <!-- end content -->
250    <!-- begin footer -->
251
252</div>
253<hr /><footer role="contentinfo" id="footer">
254  <div id="inner-footer" class="clearfix container padding-top-bottom">
255    <?php //$mywiki_options = get_option( 'faster_theme_options' ); ?>
256    <div id="widget-footer" class="clearfix row">
257        <div class="col-md-4">
258          <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer1') ) : ?>
259          <?php endif; ?>
260         </div>
261         <div class="col-md-4">
262          <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer2') ) : ?>
263        <?php endif; ?>
264        </div>
265        <div class="col-md-4">
266          <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer3') ) : ?>
267        <?php endif; ?>
268        </div>
269    </div>
270        <nav class="footer-menu-nav">
271        <ul class="footer-nav nav navbar-nav">
272            <?php
273
274                $footer_social_icon_default = array(
275                  array('url'=>$mywiki_options['fburl'],'icon'=>'fa-facebook'),
276                  array('url'=>$mywiki_options['twitter'],'icon'=>'fa-twitter'),
277                  array('url'=>$mywiki_options['googleplus'],'icon'=>'fa-google-plus'),
278                  array('url'=>$mywiki_options['linkedin'],'icon'=>'fa-linkedin'),
279                );?>
280          <?php for($i=1; $i<=4; $i++) : ?>
281                 <li><a href="/" class="socia_icon" title="" target="_blank">
282                      <i class="fa footer_social_icon"></i>
283                  </a></li>
284        <?php endfor; ?>
285      </ul>
286    </nav>
287    <p class="attribution">
288        Powered by Dokuwiki. MyWiki theme by <a href="http://fasterthemes.com/wordpress-themes/mywiki">Faster Themes</a> and <a href="http://desbest.com">desbest</a>.
289    </p>
290    <p class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></p>
291    <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
292
293    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
294
295</footer>
296<?php tpl_includeFile('footer.html') ?>
297
298  </div>
299  <!-- end #inner-footer -->
300<!-- end footer -->
301<!-- end #maincont .container -->
302    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
303             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
304    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
305
306    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
307    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
308             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
309
310        <!-- </div></div> --><!-- /header -->
311
312
313     <script type="text/javascript" src="<?php echo tpl_basedir();?>/bootstrap.js"></script>
314    <!-- due to the way dokuwiki buffers output, this javascript has to
315            be before the </body> tag and not in the <head> -->
316</body>
317</html>
318