index-left.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="layui-side notselect">
  2. <a class="layui-logo layui-elip" href="{:sysuri('@')}" title="{:sysconf('app_name')}">
  3. {:sysconf('app_name')} {if sysconf('app_version')}<sup>{:sysconf('app_version')}</sup>{/if}
  4. </a>
  5. <a class="layui-logo-mini layui-elip" href="{:sysuri('@')}" title="{:sysconf('app_name')}">
  6. <span class="headimg headimg-xs" data-lazy-src="{:sysconf('site_icon')}"></span>
  7. </a>
  8. <div class="layui-side-scroll">
  9. {foreach $menus as $one}{notempty name='one.sub'}
  10. <ul class="layui-nav layui-nav-tree layui-hide" data-menu-layout="m-{$one.id}">
  11. {foreach $one.sub as $two}{empty name='two.sub'}
  12. <li class="layui-nav-item">
  13. <a data-target-tips="{$two.title}" data-menu-node="m-{$one.id}-{$two.id}" data-open="{$two.url}">
  14. <span class='nav-icon {$two.icon|default="layui-icon layui-icon-senior"}'></span>
  15. <span class="nav-text">{$two.title|default=''}</span>
  16. </a>
  17. </li>
  18. {else}
  19. <li class="layui-nav-item" data-submenu-layout='m-{$one.id}-{$two.id}'>
  20. <a data-target-tips="{$two.title}" style="background:#393D49">
  21. <span class='nav-icon layui-hide {$two.icon|default="layui-icon layui-icon-triangle-d"}'></span>
  22. <span class="nav-text">{$two.title|default=''}</span>
  23. </a>
  24. <dl class="layui-nav-child">
  25. {foreach $two.sub as $thr}
  26. <dd>
  27. <a data-target-tips="{$thr.title}" data-open="{$thr.url}" data-menu-node="m-{$one.id}-{$two.id}-{$thr.id}">
  28. <span class='nav-icon {$thr.icon|default="layui-icon layui-icon-senior"}'></span>
  29. <span class="nav-text">{$thr.title|default=''}</span>
  30. </a>
  31. </dd>
  32. {/foreach}
  33. </dl>
  34. </li>
  35. {/empty}{/foreach}
  36. </ul>
  37. {/notempty}{/foreach}
  38. </div>
  39. </div>