<div id="neilblockmenulayers">
<div class="panel-group" id="accordion<{$block.cat_id}>" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">

<{foreach item=category from=$block.category name=category}>  
<{assign var="m1" value=$category.sortid}>
<{if $smarty.const._MASLIDINGMENU09|grouppermission:" where `sortid` = '$m1' order by  sortid  ASC":"browsegroup":true}>
<div class="mc<{$category.sortid}>  panel-titlebox"  role="tab" id="headingOne<{$category.sortid}>">
<h4 class="panel-title">
<span id='iconbox'><{if $category.icon}><{$category.icon}><{else}><i class="fa fa-external-link-square" aria-hidden="true"></i><{/if}></span> <span id='blockmenulayerstitlebox'>
<{if $category.urlenable}>
<a aria-expanded="false"  aria-label="<{$category.sorttitle}>" title="<{$category.sorttitle}>" href="<{$category.sorttitleurl}>" target="<{if $category.target eq '0'}>_self<{else}>_blank"<{/if}>" > <{$category.sorttitle}></a>
<{else}>
<a aria-expanded="false"  aria-label="<{$category.sorttitle}>" data-toggle="collapse" data-parent="#accordion<{$block.cat_id}>" title="<{$category.sorttitle}>" href="#munu<{$category.sortid}>" aria-expanded="true" aria-controls="collapseOne"  >
<{$category.sorttitle}>
</a> 
<{/if}>	
</span>

<{if $category.subMenu}>
<div id='blockmenulayersbtn'><a aria-expanded="false"  aria-label="<{$category.sorttitle}>" data-toggle="collapse" data-parent="#accordion<{$block.cat_id}>" title="<{$category.sorttitle}>" href="#munu<{$category.sortid}>" aria-expanded="true" aria-controls="collapseOne">
<{$smarty.const._MB_SHOWTHENUMBER18}>
</a></div>
<{/if}> 	
</h4>
</div>  
<div id="munu<{$category.sortid}>"  class="panel-collapse  menuunit collapse list-group " role="tabpanel" aria-labelledby="headingOne<{$category.sortid}>">
<{foreach item=subMenu from=$category.subMenu}>

<{assign var="m2" value=$subMenu.sortid}>
<{if $smarty.const._MASLIDINGMENU10|grouppermission:" where `sortid` = '$m2' order by  sortid  ASC":"browsegroup":true}>

<{if $block.setting.themefolder eq 'computer' &&  $subMenu.modulesid|neothemesadmin_focus:$subMenu.typesof:$subMenu.url}>
<script>   
$(document).ready(function() {
$("#munu<{$category.sortid}>").addClass('collapse in');
});
</script>
<{/if}>
	
<div id='<{if !$subMenu.subMenu}>menutable2none<{else}>menutable2true<{/if}>'>
<div id="m2<{$subMenu.sortid}>" class="panel-body menu2 <{cycle values="panel-body01,panel-body02"}>" ><span class="btnicon <{$category.sortimg|glyphiconicon}> "aria-hidden="true"></span></span>
<a aria-expanded="false"  aria-label="<{$subMenu.sorttitle}>" <{if $block.setting.themefolder eq 'computer' &&  $subMenu.modulesid|neothemesadmin_focus:$subMenu.typesof:$subMenu.url}>id='focus'<{/if}>   title="<{$subMenu.sorttitle}>" <{if $subMenu.url}>href="<{$subMenu.url}>"<{else}>type='button'<{/if}> target="<{if $subMenu.target eq '0'}>_self<{else}>_blank"<{/if}>"><{$subMenu.sorttitle}></a>
	
<{if $subMenu.subMenu}>
<div id='blockmenulayersbtn' class='<{if $subMenu.subMenu}>tableeach<{$block.cat_id}><{/if}>' name='<{$subMenu.sortid}>'><a aria-expanded="false"  aria-label="<{$smarty.const._MB_SHOWTHENUMBER18}>" id="m2btn<{$subMenu.sortid}>"  type='button' >
<{$smarty.const._MB_SHOWTHENUMBER18}>
</a></div><{/if}>  
	
<div id='btnbox<{$subMenu.sortid}>' style='display: none;'>	

<{foreach item=subSubMenu from=$subMenu.subMenu}>

<{assign var="m3" value=$subSubMenu.sortid}>
<{if $smarty.const._MASLIDINGMENU10|grouppermission:" where `sortid` = '$m3' order by  sortid  ASC":"browsegroup":true}>

<{if $block.setting.themefolder eq 'computer' &&  $subSubMenu.modulesid|neothemesadmin_focus:$subSubMenu.typesof:$subSubMenu.url}>
<script>   
$(document).ready(function() {
$("#munu<{$category.sortid}>").addClass('collapse in');
$("#btnbox<{$subMenu.sortid}>").css("display", "block");
});
</script>
<{/if}>
	   
<div id="m3<{$subSubMenu.sortid}>" class="panel-body2">
<a  aria-expanded="false"  aria-label="<{$subSubMenu.sorttitle}>" <{if $block.setting.themefolder eq 'computer' &&  $subSubMenu.modulesid|neothemesadmin_focus:$subSubMenu.typesof:$subSubMenu.url}>id='focus'<{/if}> title="<{$subSubMenu.sorttitle}>" href="<{$subSubMenu.url}>" target="<{if $subSubMenu.target eq '0'}>_self<{else}>_blank"<{/if}>"><span id='m3box' class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span><{$subSubMenu.sorttitle}></a></div>     
<{/if}>	
<{/foreach}>	 
</div></div></div> 
<{/if}>	
<{/foreach}>
<{if $xoops_isadmin}>    
<a href="<{xoAppUrl}>modules/neothemesadmin/admin/blockmenusort.php?op=textfunction&categoryid=<{$category.sortid}>" target="_blank" class="btn btn-primary navbar-btn btn-block" role="button"><{$block.menuadmin}></a>
<{/if}>
</div>   
<{/if}>	
<{/foreach}>
</div>
</div>
</div>


<{if $xoops_isadmin}>    
<a  href="<{xoAppUrl}>modules/neothemesadmin/admin/blockmenusort.php" target="_blank" class="btn btn-info navbar-btn btn-block" role="button"><{$smarty.const._MASLIDINGMENU01}></a>
<{/if}> 
<script>  
 
$(document).ready(function() {
$(".tableeach<{$block.cat_id}>").each(function(index) { 
$btn = $(this).attr("name");     
 
if($btn!=undefined){
var $btnname="#m2btn" + $btn + "";    
var $btnnamebox="#btnbox" + $btn + "";
} 
$($btnname).click(function(){
 $($btnnamebox).slideToggle("fast");       
});
});
});	

</script>