2017-12-01 05:40:55 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
// update pending count //
|
|
|
|
$(function(){
|
|
|
|
$("nav").bind('nav-update', function(e,data){
|
|
|
|
var elm = $('#pending-update');
|
2020-11-16 23:16:20 +00:00
|
|
|
var register = parseInt($(data).find('register').text());
|
|
|
|
if (register > 0) {
|
|
|
|
elm.html(register);
|
|
|
|
}
|
2017-12-01 05:40:55 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2018-01-30 12:37:00 +00:00
|
|
|
{{foreach $subpages as $page}}
|
2017-12-01 05:40:55 +00:00
|
|
|
<div class="widget">
|
2018-01-30 12:37:00 +00:00
|
|
|
<h3>{{$page.0}}</h3>
|
2017-12-01 05:40:55 +00:00
|
|
|
<ul role="menu">
|
2018-01-30 12:37:00 +00:00
|
|
|
{{foreach $page.1 as $item}}
|
2017-12-01 05:40:55 +00:00
|
|
|
<li role="menuitem" class="{{$item.2}}">
|
|
|
|
<a href="{{$item.0}}" {{if $item.accesskey}}accesskey="{{$item.accesskey}}"{{/if}}>
|
|
|
|
{{$item.1}}
|
|
|
|
{{if $name == "users"}}
|
|
|
|
<span id="pending-update" class="badge pull-right"></span>
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{if $admin.update}}
|
|
|
|
<ul role="menu">
|
|
|
|
<li role="menuitem" class="{{$admin.update.2}}">
|
|
|
|
<a href="{{$admin.update.0}}" {{if $admin.update.accesskey}}accesskey="{{$admin.update.accesskey}}"{{/if}}>
|
|
|
|
{{$admin.update.1}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-01-30 12:37:00 +00:00
|
|
|
{{/foreach}}
|
2017-12-01 05:40:55 +00:00
|
|
|
|
2018-01-17 19:22:38 +00:00
|
|
|
{{if $admin.addons_admin}}
|
2017-12-01 05:40:55 +00:00
|
|
|
<div class="widget">
|
|
|
|
<h3>{{$plugadmtxt}}</h3>
|
|
|
|
<ul role="menu">
|
2018-01-17 19:22:38 +00:00
|
|
|
{{foreach $admin.addons_admin as $name => $item}}
|
2019-04-28 02:19:54 +00:00
|
|
|
<li role="menuitem" class="{{$item.class}}">
|
|
|
|
<a href="{{$item.url}}" {{if $item.accesskey}}accesskey="{{$item.accesskey}}"{{/if}}>
|
|
|
|
{{$item.name}}
|
2017-12-01 05:40:55 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|