<div id="neilblockmenu">
<{if $block.radiogstyle eq 'text'}>  
<div class="list-groupbox">
<ul id='neil_menu1'>
<{foreach item=blockmenu from=$block.category}>
<{assign var="m1" value=$blockmenu.sortid}>
<{if $smarty.const._MASLIDINGMENU10|grouppermission:" where `sortid` = '$m1' order by  sortid  ASC":"browsegroup":true}>

<li id='menu-body' class="<{cycle values="menu-body01,menu-body02"}> <{if $blockmenu.subMenu}>btnturebox<{/if}>">
<{if $blockmenu.subMenu}><div id='neilblockmenubtn' class='menubtn<{$blockmenu.sortid}>'><a  type='button' id='btnmenu<{$blockmenu.sortid}>'><{$smarty.const._MB_SHOWTHENUMBER18}></a></div><{/if}>

<div id='list-group-itembox' class='<{if $blockmenu.subMenu}>blockmenueach<{$block.bid}><{/if}> menu_top_<{$blockmenu.sortid}>' name='<{$blockmenu.sortid}>'>
<a title="<{$blockmenu.sorttitle}>" aria-label="<{$blockmenu.sorttitle}>" <{if $blockmenu.url}>href="<{$blockmenu.url}>"<{else}>type='button'<{/if}>  target="<{if $blockmenu.target eq '0'}>_self<{else}>_blank"<{/if}>"  class="list-group-itemCustom"><div id='iconbox'><span class="<{$block.listvar.sortimg|glyphiconicon}>" aria-hidden="true"></span></div><{$blockmenu.sorttitle}></a>
</div>

<ul id='neil_menu2' class='blockmenubox<{$blockmenu.sortid}>' style='display: none;'>
<{foreach item=table from=$blockmenu.subMenu}>
<{assign var="m2" value=$table.sortid}>
<{if $smarty.const._MASLIDINGMENU10|grouppermission:" where `sortid` = '$m2' order by  sortid  ASC":"browsegroup":true}>

<{if $block.setting.themefolder eq 'computer' &&  $table.modulesid|neothemesadmin_focus:$table.typesof:$table.url}>
<script>   
$(document).ready(function() {
$(".menubtn<{$blockmenu.sortid}>").addClass('btn_focus');
$(".menu_top_<{$blockmenu.sortid}>").addClass('menu_focus');
$(".blockmenubox<{$blockmenu.sortid}>").css("display", "block");
});
</script>
<{/if}>
<li><div id='list-group-itembox'><a  aria-label="<{$table.url}>" href="<{$table.url}>" title="<{$table.sorttitle}>"  target="<{if $table.target eq '0'}>_self<{else}>_blank"<{/if}>" class="list-group-itemCustom2 <{if $block.setting.themefolder eq 'computer' &&  $table.modulesid|neothemesadmin_focus:$table.typesof:$table.url}>item_focus<{/if}>"><span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span><{$table.sorttitle}></div></a>
</li>
<{/if}>
<{/foreach}>
</ul>
</li>
<{/if}>
<{/foreach}>
</ul>
</div>  
<{if $xoops_isadmin}>    
<a  href="<{xoAppUrl}>modules/neothemesadmin/admin/blockmenusort.php?op=textfunction&categoryid=<{$block.menusortid}>" target="_blank" class="btn btn-primary navbar-btn btn-block" role="button"><{$block.menuadmin}></a>
<{/if}>

<script > $(document).ready(function() {
  $(".blockmenueach<{$block.bid}>").each(function(index) {
    var $btn = $(this).attr("name");
    if ($btn != undefined) {
      var $btnname = "#neilblockmenu #btnmenu" + $btn + "";
      var $btnnamebox = "#neilblockmenu .blockmenubox" + $btn + "";
    }
    $($btnname).click(function() {
      $($btnnamebox).slideToggle("fast");
    });
  });
}); 
</script>  
<{/if}>  


<{if $block.radiogstyle eq 'img'}>  
<div class="buttonimg">
<ul>
<{foreach item=blockmenu from=$block.category}>
<li>
<a class='buttonimgbox' href="<{$blockmenu.url}>" title="<{$blockmenu.sorttitle}>"  target="<{if $blockmenu.target eq '0'}>_self<{else}>_blank"<{/if}>" ><img alt="<{$blockmenu.sorttitle}>"  src="<{xoAppUrl}>uploads/neothemesadmin/<{$blockmenu.buttonimg}>.png?state=<{$block.img_date}>" /></a>
<{if $block.btntextyn}><span id='buttontextbox'><a  href="<{$blockmenu.url}>" title="<{$blockmenu.sorttitle}>"  target="<{if $blockmenu.target eq '0'}>_self<{else}>_blank"<{/if}>"  ><{$blockmenu.sorttitle}></a></span><{/if}>
</li>
<{/foreach}>
</ul>
</div>  
<div style='clear: both;'></div>    
<{if $xoops_isadmin}>    
<a  href="<{xoAppUrl}>modules/neothemesadmin/admin/blockmenusort.php?op=imgfunction&categoryid=<{$block.menusortid}>" target="_blank" class="btn btn-primary navbar-btn btn-block" role="button"><{$block.menuadmin}></a>
<{/if}>      
<{/if}>  
</div>