1<?php
2/**
3 * M1 header, included in the main and detail files.  Also includes all menu information.
4 */
5
6// must be run from within DokuWiki
7if (!defined('DOKU_INC')) die();
8?>
9
10<div id="dokuwiki__header">
11
12        <div id="m1-header-left"> <!--Left hand mobile menu -->
13        	<a id="m1-menu-ltrig" href="#m1-menu-left"><i class="fa fa-lg fa-bars"></i></a>
14        </div>
15
16        <div id="m1-header-center"> <!--Logo and main center image -->
17            	<?php
18        		echo "<h1><a href=\"".DOKU_BASE."\" class=\"m1-logo\" accesskey=\"h\"";
19       			 if (file_exists(DOKU_TPLINC."images/logo.png")){
20            	//user defined PNG
21            	echo "><img src=\"".DOKU_TPL."images/logo.png\" class=\"m1-imglogo\" alt=\"PaddlingABC\"/></a></h1>\n";
22        		}elseif (file_exists(DOKU_TPLINC."images/logo.gif")){
23            	//user defined GIF
24            	echo "><img src=\"".DOKU_TPL."images/logo.gif\" class=\"m1-imglogo\" alt=\"PaddlingABC\"/></a></h1>\n";
25        		}elseif (file_exists(DOKU_TPLINC."images/logo.jpg")){
26            	//user defined JPG
27            	echo "><img src=\"".DOKU_TPL."images/logo.jpg\" class=\"m1-imglogo\" alt=\"PaddlingABC\"/></a></h1>\n";
28        		}else{
29            	//default
30            	echo " class=\"m1-txtlogo\">".hsc($conf["title"])."</a></h1>\n";
31        		}
32        		?>
33        	</div>
34
35        <div id="m1-header-right"> <!--Right hand mobile menu -->
36        	<a id="m1-menu-strig" href="#"><i class="fa fa-lg fa-search"></i></a>
37        	<a id="m1-menu-rtrig" href="#m1-menu-right"><i class="fa fa-lg fa-gear"></i></a>
38        </div>
39
40
41        <!--NON-MOBILE MENU-->
42        <div id="m1-menu"> <!--Menu displayed for tablet and desktop viewing, hidden on phone size -->
43      		<ul>
44     			<li><a href='#'>Portfolio</a></li>
45     			<li class='has-sub m1-desktop'><a href='#'>Products</a> <!--Hidden on tablet due to m1-desktop class -->
46       				 <ul>
47                 		<li><a href='#'>Sub 1</a></li>
48                 		<li><a href='#'>Sub 2</a></li>
49                 		<li><a href='#'>Sub 3</a></li>
50              		</ul>
51           		</li>
52     			<li><a href='#'>Contact</a></li>
53    		 	<li><a href='#'>About</a></li>
54    			<li><a href='#'>Help</a></li>
55  			</ul>
56  	  	</div>
57
58  	  	<div id="m1-search">
59  	    <?php tpl_searchform() ?>
60		</div>
61
62		 <!-- BREADCRUMBS -->
63    <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
64        <div class="breadcrumbs">
65            <?php if($conf['youarehere']): ?>
66                <div class="youarehere"><?php tpl_youarehere() ?></div>
67            <?php endif ?>
68            <?php if($conf['breadcrumbs']): ?>
69                <div class="trace"><?php tpl_breadcrumbs() ?></div>
70            <?php endif ?>
71        </div>
72    <?php endif ?>
73
74
75</div><!-- /dokuwiki__header -->