1<?php
2// This is the top Toolbar for dokumobile
3?>
4
5
6
7<table width="300px" cellspacing="0" cellpadding="0" style="border:0;margin:5px auto 5px auto;">
8  <tr>
9    <td width="33%" style="border:0;" align="left"><img src="<?php echo DOKU_TPL?>images/icon_left.png ?>" id="toggle_toc" /></td>
10    <td width="33%" style="border:0;" align="center"><img src="<?php echo DOKU_TPL?>images/icon_middle.png ?>" id="toggle_admin" /></td>
11    <td width="33%" style="border:0;" align="right"><img src="<?php echo DOKU_TPL?>images/icon_right.png ?>" id="toggle_nav" /></td>
12  </tr>
13</table>
14
15<hr>
16
17
18<div id="wiki_admin" style="display:none" class="dokuwiki">
19<h5 style="text-align:center;margin:0;border:none;">Wiki Toolbar</h5>
20
21    <?php tpl_searchform()?>&nbsp;
22
23    <div class="bar" id="bar__top">
24
25		<div class="bar-left" id="bar__bottomleft">
26		<?php tpl_button('edit')?>
27        <?php tpl_button('history')?>
28        <?php tpl_button('revert')?>
29		<?php tpl_button('subscribe')?>
30        <?php tpl_button('subscribens')?>
31		<?php tpl_button('admin')?>
32        <?php tpl_button('edit')?>
33        <?php tpl_button('profile')?>
34        <?php tpl_button('login')?>
35		<?php tpl_button('index')?>
36      </div>
37
38    </div>
39
40</div>
41
42
43<div id="wiki_toc" style="display:none" class="dokuwiki">
44<h5 style="text-align:center;margin:0;border:none;">Table of Contents</h5>
45	<?php tpl_toc()?>
46</div>
47
48<div id="wiki_nav" style="display:none" class="dokuwiki" >
49<h5 style="text-align:center;margin:0;border:none;">Navigation</h5>
50	<?php tpl_include_page(":wiki:navigation_mobile");?>
51</div>
52
53
54<script>
55
56	jQuery('#toggle_nav').click(function() {
57    jQuery('#wiki_nav').toggle();
58	jQuery('#wiki_toc').hide();
59	jQuery('#wiki_admin').hide();
60
61});
62
63	jQuery('#toggle_toc').click(function() {
64    jQuery('#wiki_toc').toggle();
65	jQuery('#wiki_nav').hide();
66	jQuery('#wiki_admin').hide();
67
68});
69
70	jQuery('#toggle_admin').click(function() {
71    jQuery('#wiki_admin').toggle();
72	jQuery('#wiki_toc').hide();
73	jQuery('#wiki_nav').hide();
74
75});
76</script>
77
78
79