-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.tpl
84 lines (72 loc) · 2.21 KB
/
menu.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!--{meta_html csstheme 'css/media.css'}-->
<!-- INSERT CODE BELOW JUST BELOW THE media.css ELEMENT ABOVE-->
{meta_html css 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css'}
{meta_html js 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js'}
<br/>
<div class="clearfix"></div>
<div class="d-flex md:d-block">
<div class="fg-sidebar-left">
<!--Drop-Down-Menu Start-->
<h3>Drop-Down Menu</h3>
<select class="select2" placeholder="Select Map" onChange="if(this.value != '') location.href = this.value;">
<option></option>
{foreach $mapitems as $mi}
{if $mi->type == 'rep'}
<optgroup label="{$mi->title}">
{foreach $mi->childItems as $p}
<option value="{$p->url}{if $hide_header}&h=0{/if}">{$p->title}</option>
{/foreach}
</optgroup>
{/if}
{/foreach}
</select>
<!--Drop-Down-Menu Finish-->
<!--Accordian-Menu Start-->
<h3>Accordian Menu</h3>
<div class="accordion" id="accordion">
{foreach $mapitems as $key => $mi}
{if $mi->type == 'rep'}
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse{$key}"> {$mi->title} </a>
</div>
<div id="collapse{$key}" class="accordion-body collapse">
<div class="accordion-inner">
<table class="table">
{foreach $mi->childItems as $p}
<tr>
<td class="border-0">
<span class="glyphicon glyphicon-usd"></span>
<a href="{$p->url}{if $hide_header}&h=0{/if}">{$p->title}</a>
</td>
</tr>
{/foreach}
</table>
</div>
</div>
</div>
{/if}
{/foreach}
</div>
<!--Accordian-Menu Finish-->
<!--Tree-Menu Start-->
<h3>Tree Menu</h3>
<ul class="fg-tree m-0">
{foreach $mapitems as $mi}
{if $mi->type == 'rep'}
<li>
<b>{$mi->title}</b>
<ul class="fg-tree">
{foreach $mi->childItems as $p}
<li>
<a href="{$p->url}{if $hide_header}&h=0{/if}">{$p->title}</a>
</li>
{/foreach}
</ul>
</li>
{/if}
{/foreach}
</ul>
</div>
<!--Tree-Menu Finish-->
<div class="fg-sidebar-right">