header.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!-- Logo -->
  2. <a href="javascript:;" class="logo">
  3. <!-- 迷你模式下Logo的大小为50X50 -->
  4. <span class="logo-mini">{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'|htmlentities}</span>
  5. <!-- 普通模式下Logo -->
  6. <span class="logo-lg">{$site.name|htmlentities}</span>
  7. </a>
  8. <!-- 顶部通栏样式 -->
  9. <nav class="navbar navbar-static-top">
  10. <!--第一级菜单-->
  11. <div id="firstnav">
  12. <!-- 边栏切换按钮-->
  13. <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
  14. <span class="sr-only">{:__('Toggle navigation')}</span>
  15. </a>
  16. <!--如果不想在顶部显示角标,则给ul加上disable-top-badge类即可-->
  17. <ul class="nav nav-tabs nav-addtabs disable-top-badge hidden-xs" role="tablist">
  18. {$navlist}
  19. </ul>
  20. <div class="navbar-custom-menu">
  21. <ul class="nav navbar-nav">
  22. <!-- 清除缓存 -->
  23. <li class="hidden-xs">
  24. <a href="javascript:;" data-toggle="dropdown" title="{:__('Wipe cache')}">
  25. <i class="fa fa-trash"></i> {:__('Wipe cache')}
  26. </a>
  27. <ul class="dropdown-menu wipecache">
  28. <li><a href="javascript:;" data-type="all"><i class="fa fa-trash fa-fw"></i> {:__('Wipe all cache')}</a></li>
  29. <li class="divider"></li>
  30. <li><a href="javascript:;" data-type="content"><i class="fa fa-file-text fa-fw"></i> {:__('Wipe content cache')}</a></li>
  31. <li><a href="javascript:;" data-type="template"><i class="fa fa-file-image-o fa-fw"></i> {:__('Wipe template cache')}</a></li>
  32. <li><a href="javascript:;" data-type="addons"><i class="fa fa-rocket fa-fw"></i> {:__('Wipe addons cache')}</a></li>
  33. <li><a href="javascript:;" data-type="browser"><i class="fa fa-chrome fa-fw"></i> {:__('Wipe browser cache')}
  34. <span data-toggle="tooltip" data-title="{:__('Wipe browser cache tips')}"><i class="fa fa-info-circle"></i></span>
  35. </a></li>
  36. </ul>
  37. </li>
  38. <!-- 账号信息下拉框 -->
  39. <li class="dropdown user user-menu">
  40. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  41. <img src="{$admin.avatar|cdnurl|htmlentities}" class="user-image" alt="">
  42. <span class="hidden-xs">{$admin.nickname|htmlentities}</span>
  43. </a>
  44. <ul class="dropdown-menu">
  45. <!-- User image -->
  46. <li class="user-header">
  47. <img src="{$admin.avatar|cdnurl|htmlentities}" class="img-circle" alt="">
  48. <p>
  49. {$admin.nickname|htmlentities}
  50. <small>{$admin.logintime|date="Y-m-d H:i:s",###}</small>
  51. </p>
  52. </li>
  53. <li class="user-body">
  54. <div class="visible-xs">
  55. <div class="pull-left">
  56. <a href="__PUBLIC__" target="_blank"><i class="fa fa-home" style="font-size:14px;"></i> {:__('Home')}</a>
  57. </div>
  58. <div class="pull-right">
  59. <a href="javascript:;" data-type="all" class="wipecache"><i class="fa fa-trash fa-fw"></i> {:__('Wipe all cache')}</a>
  60. </div>
  61. </div>
  62. </li>
  63. <!-- Menu Footer-->
  64. <li class="user-footer">
  65. <div class="pull-left">
  66. <a href="general/profile" class="btn btn-primary addtabsit"><i class="fa fa-user"></i>
  67. {:__('Profile')}</a>
  68. </div>
  69. <div class="pull-right">
  70. <a href="{:url('index/logout')}" class="btn btn-danger"><i class="fa fa-sign-out"></i>
  71. {:__('Logout')}</a>
  72. </div>
  73. </li>
  74. </ul>
  75. </li>
  76. <!-- 控制栏切换按钮 -->
  77. <!--<li class="hidden-xs">
  78. <a href="javascript:;" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  79. </li>-->
  80. </ul>
  81. </div>
  82. </div>
  83. {if $Think.config.fastadmin.multiplenav}
  84. <!--第二级菜单,只有在multiplenav开启时才显示-->
  85. <div id="secondnav">
  86. <ul class="nav nav-tabs nav-addtabs disable-top-badge" role="tablist">
  87. {if $fixedmenu}
  88. <li role="presentation" id="tab_{$fixedmenu.id}" class="{:$referermenu?'':'active'}"><a href="#con_{$fixedmenu.id}" node-id="{$fixedmenu.id}" aria-controls="{$fixedmenu.id}" role="tab" data-toggle="tab"><i class="fa fa-dashboard fa-fw"></i> <span>{$fixedmenu.title}</span> <span class="pull-right-container"> </span></a></li>
  89. {/if}
  90. {if $referermenu}
  91. <li role="presentation" id="tab_{$referermenu.id}" class="active"><a href="#con_{$referermenu.id}" node-id="{$referermenu.id}" aria-controls="{$referermenu.id}" role="tab" data-toggle="tab"><i class="fa fa-list fa-fw"></i> <span>{$referermenu.title}</span> <span class="pull-right-container"> </span></a> <i class="close-tab fa fa-remove"></i></li>
  92. {/if}
  93. </ul>
  94. </div>
  95. {/if}
  96. </nav>