You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header.html 5.8 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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"><b>{$site.name|mb_substr=0,4,'utf-8'|htmlentities}</b>{$site.name|mb_substr=4,null,'utf-8'|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. <li>
  23. <a href="__PUBLIC__" target="_blank"><i class="fa fa-home" style="font-size:14px;"></i></a>
  24. </li>
  25. <!-- 清除缓存 -->
  26. <li>
  27. <a href="javascript:;" data-toggle="dropdown" title="{:__('Wipe cache')}">
  28. <i class="fa fa-trash"></i>
  29. </a>
  30. <ul class="dropdown-menu wipecache">
  31. <li><a href="javascript:;" data-type="all"><i class="fa fa-trash"></i> {:__('Wipe all cache')}</a></li>
  32. <li class="divider"></li>
  33. <li><a href="javascript:;" data-type="content"><i class="fa fa-file-text"></i> {:__('Wipe content cache')}</a></li>
  34. <li><a href="javascript:;" data-type="template"><i class="fa fa-file-image-o"></i> {:__('Wipe template cache')}</a></li>
  35. <li><a href="javascript:;" data-type="addons"><i class="fa fa-rocket"></i> {:__('Wipe addons cache')}</a></li>
  36. </ul>
  37. </li>
  38. <!-- 多语言列表 -->
  39. {if $Think.config.lang_switch_on}
  40. <li class="hidden-xs">
  41. <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-language"></i></a>
  42. <ul class="dropdown-menu">
  43. <li class="{$config['language']=='zh-cn'?'active':''}">
  44. <a href="?ref=addtabs&lang=zh-cn">简体中文</a>
  45. </li>
  46. <li class="{$config['language']=='en'?'active':''}">
  47. <a href="?ref=addtabs&lang=en">English</a>
  48. </li>
  49. </ul>
  50. </li>
  51. {/if}
  52. <!-- 全屏按钮 -->
  53. <li class="hidden-xs">
  54. <a href="#" data-toggle="fullscreen"><i class="fa fa-arrows-alt"></i></a>
  55. </li>
  56. <!-- 账号信息下拉框 -->
  57. <li class="dropdown user user-menu">
  58. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  59. <img src="{$admin.avatar|cdnurl|htmlentities}" class="user-image" alt="{$admin.nickname|htmlentities}">
  60. <span class="hidden-xs">{$admin.nickname|htmlentities}</span>
  61. </a>
  62. <ul class="dropdown-menu">
  63. <!-- User image -->
  64. <li class="user-header">
  65. <img src="{$admin.avatar|cdnurl|htmlentities}" class="img-circle" alt="">
  66. <p>
  67. {$admin.nickname|htmlentities}
  68. <small>{$admin.logintime|date="Y-m-d H:i:s",###}</small>
  69. </p>
  70. </li>
  71. <!-- Menu Footer-->
  72. <li class="user-footer">
  73. <div class="pull-left">
  74. <a href="general/profile" class="btn btn-primary addtabsit"><i class="fa fa-user"></i>
  75. {:__('Profile')}</a>
  76. </div>
  77. <div class="pull-right">
  78. <a href="{:url('index/logout')}" class="btn btn-danger"><i class="fa fa-sign-out"></i>
  79. {:__('Logout')}</a>
  80. </div>
  81. </li>
  82. </ul>
  83. </li>
  84. <!-- 控制栏切换按钮 -->
  85. <li class="hidden-xs">
  86. <a href="javascript:;" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  87. </li>
  88. </ul>
  89. </div>
  90. </div>
  91. {if $Think.config.fastadmin.multiplenav}
  92. <!--第二级菜单,只有在multiplenav开启时才显示-->
  93. <div id="secondnav">
  94. <ul class="nav nav-tabs nav-addtabs disable-top-badge" role="tablist">
  95. {if $fixedmenu}
  96. <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>
  97. {/if}
  98. {if $referermenu}
  99. <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>
  100. {/if}
  101. </ul>
  102. </div>
  103. {/if}
  104. </nav>