componts_menu.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="layadmin-tabsbody-item layui-show sub-nav-show">
  2. <div class="sub-nav" style="width:125px">
  3. <div class="nav-new wb-subnav layui-this">
  4. <div class="subnav-scene" style="font-size: 14px">
  5. {$menu['title']}
  6. </div>
  7. <?php foreach($menu['items'] as $sub_menu){
  8. ?>
  9. <?php if( !empty($sub_menu['items']) ){ ?>
  10. <div class="menu-header active">
  11. <div class="menu-icon fa fa-caret-right layui-icon " style="color: #656161;">&#xe625;</div>
  12. <div style="font-size: 13px;color: #656161;"> {$sub_menu['title']}</div>
  13. </div>
  14. <?php }else{ ?>
  15. <ul style="display:block;">
  16. <li <?php if($perm_url == $sub_menu['route']){ ?>class="active"<?php } ?> data-class="active">
  17. <a href="{:U($sub_menu['route'])}" style="display:block;cursor: pointer;font-size: 13px;color: #656161;">{$sub_menu['title']}</a>
  18. </li>
  19. </ul>
  20. <?php } ?>
  21. <?php if( !empty($sub_menu['items']) ){ ?>
  22. <ul style="display: block;">
  23. <?php foreach($sub_menu['items'] as $third_sub_menu){ ?>
  24. <li class="" data-class="active">
  25. <a href="{:U($third_sub_menu['route'])}" style="display:block;cursor: pointer;"><cite style="font-size:12px;padding-left: 10px;" >{$third_sub_menu['title']}</cite></a>
  26. </li>
  27. <?php } ?>
  28. </ul>
  29. <?php } ?>
  30. <?php } ?>
  31. </div>
  32. </div>
  33. </div>