default.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {include file="common/meta" /}
  5. <link href="__CDN__/assets/css/user.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
  6. </head>
  7. <body>
  8. <nav class="navbar navbar-white navbar-fixed-top" role="navigation">
  9. <div class="container">
  10. <div class="navbar-header">
  11. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#header-navbar">
  12. <span class="sr-only">Toggle navigation</span>
  13. <span class="icon-bar"></span>
  14. <span class="icon-bar"></span>
  15. <span class="icon-bar"></span>
  16. </button>
  17. <a class="navbar-brand" href="{:url('/')}">{$site.name|htmlentities}</a>
  18. </div>
  19. <div class="collapse navbar-collapse" id="header-navbar">
  20. <ul class="nav navbar-nav navbar-right">
  21. <li><a href="{:url('/')}">{:__('Home')}</a></li>
  22. <li class="dropdown">
  23. {if $user}
  24. <a href="{:url('user/index')}" class="dropdown-toggle" data-toggle="dropdown">
  25. <span class="avatar-img"><img src="{$user.avatar|htmlentities|cdnurl}" alt=""></span>
  26. <span class="visible-xs-inline-block" style="padding:5px;">{$user.nickname} <b class="caret"></b></span>
  27. </a>
  28. {else /}
  29. <a href="{:url('user/index')}" class="dropdown-toggle" data-toggle="dropdown">{:__('User center')} <b class="caret"></b></a>
  30. {/if}
  31. <ul class="dropdown-menu">
  32. {if $user}
  33. <li><a href="{:url('user/index')}"><i class="fa fa-user-circle fa-fw"></i>{:__('User center')}</a></li>
  34. <li><a href="{:url('user/profile')}"><i class="fa fa-user-o fa-fw"></i>{:__('Profile')}</a></li>
  35. <li><a href="{:url('user/changepwd')}"><i class="fa fa-key fa-fw"></i>{:__('Change password')}</a></li>
  36. <li><a href="{:url('user/logout')}"><i class="fa fa-sign-out fa-fw"></i>{:__('Sign out')}</a></li>
  37. {else /}
  38. <li><a href="{:url('user/login')}"><i class="fa fa-sign-in fa-fw"></i> {:__('Sign in')}</a></li>
  39. <li><a href="{:url('user/register')}"><i class="fa fa-user-o fa-fw"></i> {:__('Sign up')}</a></li>
  40. {/if}
  41. </ul>
  42. </li>
  43. </ul>
  44. </div>
  45. </div>
  46. </nav>
  47. <main class="content">
  48. {__CONTENT__}
  49. </main>
  50. <footer class="footer" style="clear:both">
  51. <p class="copyright">Copyright&nbsp;©&nbsp;{:date("Y")} {$site.name|htmlentities} All Rights Reserved <a href="https://beian.miit.gov.cn" target="_blank">{$site.beian|htmlentities}</a></p>
  52. </footer>
  53. {include file="common/script" /}
  54. </body>
  55. </html>