taipeino1/widgets/site_menu_widget/_site_menu_widget3.html.erb

28 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-03-26 01:51:46 +00:00
<div class="sitemenu-wrap sitemenu-vertical sitemenu-vertical2 no-print">
{{expand-script}}
<a id="accesskey_sitemenu" accesskey="S" href="/<%= "#{locale.to_s}" %>/accesskey" title="Sitemenu">:::</a>
<div class="flex"><h3 class="sitemenu-title">{{widget_title}}</h3><i class="dropdown-arrow fa fa-angle-down"></i></div>
<ul data-list="pages" class="sitemenu-list level-1 list-unstyled" data-level="0">
<li class="sitemenu-item level-1 {{active_class}}">
<a class="sitemenu-link level-1" href="{{url}}" target="{{target}}">{{page_name}}</a>
<ul class="sitemenu-list level-2 {{dropdown}}" data-list="children" data-level="1">
<li class="sitemenu-item level-2" style="position: relative;">
<a class="sitemenu-link level-2" href="{{url}}" target="{{target}}">{{page_name}}</a>
<ul class="sitemenu-list level-2 {{dropdown}}" data-list="children" data-level="2">
<li class="sitemenu-item level-3" style="position: relative;">
<a class="sitemenu-link level-3" href="{{url}}" target="{{target}}">{{page_name}}</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<script>
$(document).ready(function(){
$(".flex").click(function(){
$(".sitemenu-list").slideToggle(300);
});
});
</script>