<div id="neilblockmenulayers">
<div class="accordion<{$block.cat_id}>" id="accordionExample">
<{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="card ">
<div class="card-header" id="heading_<{$category.sortid}>">
<h4 class="mb-0 panel-title ">
<span id='iconbox'><{if $category.icon}><{$category.icon}><{else}><i class="fa-solid fa-circle-chevron-right"></i><{/if}></span>
<{if $category.urlenable}>
<a id='collapsed_box' class=" collapsed" type="button" <{*data-toggle="collapse" data-target="#collapse_<{$category.sortid}>"*}> aria-expanded="false" aria-controls="collapse_<{$category.sortid}>" title="<{$category.sorttitle}>" href="<{$category.sorttitleurl}>" target="<{if $category.target eq '0'}>_self<{else}>_blank<{/if}>" > <{$category.sorttitle}></a>
<{else}>
<a id='collapsed_box' class=" collapsed" type="button" data-toggle="collapse" data-target="#collapse_<{$category.sortid}>" aria-expanded="false" aria-controls="collapse_<{$category.sortid}>" title="<{$category.sorttitle}>" href="#munu<{$category.sortid}>" aria-expanded="true" aria-controls="collapseOne"  >
<{$category.sorttitle}>
</a> 
<{/if}>	

<{if $category.subMenu}>
<div id='blockmenulayersbtn'><a class="collapsed" type="button" data-toggle="collapse" data-target="#collapse_<{$category.sortid}>" aria-expanded="false" aria-controls="collapse_<{$category.sortid}>" title="<{$category.sorttitle}>" href="#munu<{$category.sortid}>" aria-expanded="true" aria-controls="collapseOne">
<{$smarty.const._MB_SHOWTHENUMBER18}>
</a></div>
<{/if}> 	
</h4>
</div>
<div id="collapse_<{$category.sortid}>" class="collapse menuunit " aria-labelledby="heading_<{$category.sortid}>" data-parent="#accordionExample">
<{cycle values="" reset=true print=false}>
<{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() {
$('#collapse_<{$category.sortid}>').collapse({
  toggle: true
})
});
</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}>href='javascript:void(0);' onclick='return false;'<{/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}>"  href='javascript:void(0);' onclick='return false;' >
<{$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() {
$('#collapse_<{$category.sortid}>').collapse({
  toggle: true
})
$("#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="fa-solid fa-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>
</div>
<{/if}>
<{/foreach}>
</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>