default.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <title>{$title} - {$site.name}</title>
  10. <link href="__CDN__/assets/libs/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  11. <link href="__ADDON__/css/common.css?v={$site.version}" rel="stylesheet">
  12. <link href="__CDN__/assets/libs/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  13. <!--[if lt IE 9]>
  14. <script src="__CDN__/assets/js/html5shiv.js"></script>
  15. <script src="__CDN__/assets/js/respond.min.js"></script>
  16. <![endif]-->
  17. </head>
  18. <body>
  19. <!-- Navigation -->
  20. <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  21. <div class="container">
  22. <!-- Brand and toggle get grouped for better mobile display -->
  23. <div class="navbar-header">
  24. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  25. <span class="sr-only">Toggle navigation</span>
  26. <span class="icon-bar"></span>
  27. <span class="icon-bar"></span>
  28. <span class="icon-bar"></span>
  29. </button>
  30. <a class="navbar-brand" href="{:addon_url('epay/index/index')}">{$site.name}</a>
  31. </div>
  32. <!-- Collect the nav links, forms, and other content for toggling -->
  33. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  34. <ul class="nav navbar-nav navbar-right">
  35. <li>
  36. </li>
  37. {if $user}
  38. <li class="dropdown">
  39. <a href="#" class="dropdown-toggle" data-toggle="dropdown">欢迎你! {$user.nickname|htmlentities}<b class="caret"></b></a>
  40. <ul class="dropdown-menu">
  41. <li>
  42. <a href="{:url('index/user/index')}">会员中心</a>
  43. </li>
  44. <li>
  45. <a href="{:url('index/user/profile')}">个人资料</a>
  46. </li>
  47. <li>
  48. <a href="{:url('index/user/logout')}">退出登录</a>
  49. </li>
  50. </ul>
  51. </li>
  52. {else /}
  53. <li class="dropdown">
  54. <a href="{:url('index/user/index')}" class="dropdown-toggle" data-toggle="dropdown">会员中心 <b class="caret"></b></a>
  55. <ul class="dropdown-menu">
  56. <li>
  57. <a href="{:url('index/user/login')}">登录</a>
  58. </li>
  59. <li>
  60. <a href="{:url('index/user/register')}">注册</a>
  61. </li>
  62. </ul>
  63. </li>
  64. {/if}
  65. </ul>
  66. </div>
  67. <!-- /.navbar-collapse -->
  68. </div>
  69. <!-- /.container -->
  70. </nav>
  71. {__CONTENT__}
  72. <div class="container">
  73. <!-- Footer -->
  74. <footer>
  75. <div class="row">
  76. <div class="col-lg-12">
  77. <hr>
  78. <p>Copyright &copy; {$site.name} 2017-{:date("Y")}</p>
  79. </div>
  80. </div>
  81. </footer>
  82. </div>
  83. <!-- /.container -->
  84. <script src="__CDN__/assets/libs/jquery/dist/jquery.min.js"></script>
  85. <script src="__CDN__/assets/libs/bootstrap/dist/js/bootstrap.min.js"></script>
  86. <script src="__CDN__/assets/libs/fastadmin-layer/dist/layer.js?v={$site.version}"></script>
  87. <script src="__ADDON__/js/jquery.qrcode.min.js?v={$site.version}"></script>
  88. <script src="__ADDON__/js/common.js?v={$site.version}"></script>
  89. </body>
  90. </html>