default.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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-inverse 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" style="padding-top: 10px;height: 50px;">
  25. <span class="avatar-img"><img src="{$user.avatar|htmlentities|cdnurl}" alt=""></span>
  26. </a>
  27. {else /}
  28. <a href="{:url('user/index')}" class="dropdown-toggle" data-toggle="dropdown">{:__('User center')} <b class="caret"></b></a>
  29. {/if}
  30. <ul class="dropdown-menu">
  31. {if $user}
  32. <li><a href="{:url('user/index')}"><i class="fa fa-user-circle fa-fw"></i>{:__('User center')}</a></li>
  33. <li><a href="{:url('user/profile')}"><i class="fa fa-user-o fa-fw"></i>{:__('Profile')}</a></li>
  34. <li><a href="{:url('user/changepwd')}"><i class="fa fa-key fa-fw"></i>{:__('Change password')}</a></li>
  35. <li><a href="{:url('user/logout')}"><i class="fa fa-sign-out fa-fw"></i>{:__('Sign out')}</a></li>
  36. {else /}
  37. <li><a href="{:url('user/login')}"><i class="fa fa-sign-in fa-fw"></i> {:__('Sign in')}</a></li>
  38. <li><a href="{:url('user/register')}"><i class="fa fa-user-o fa-fw"></i> {:__('Sign up')}</a></li>
  39. {/if}
  40. </ul>
  41. </li>
  42. </ul>
  43. </div>
  44. </div>
  45. </nav>
  46. <main class="content">
  47. {__CONTENT__}
  48. </main>
  49. <footer class="footer" style="clear:both">
  50. <p class="copyright">Copyright&nbsp;©&nbsp;2017-2020 {$site.name|htmlentities} All Rights Reserved <a href="https://beian.miit.gov.cn" target="_blank">{$site.beian|htmlentities}</a></p>
  51. </footer>
  52. {include file="common/script" /}
  53. </body>
  54. </html>