default.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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>开发者示例 - {$site.name}</title>
  10. <!-- Bootstrap Core CSS -->
  11. <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  12. <!-- Custom CSS -->
  13. <link href="__ADDON__/css/common.css" rel="stylesheet">
  14. <!-- Custom Fonts -->
  15. <link href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
  16. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  17. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  18. <!--[if lt IE 9]>
  19. <script src="https://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
  20. <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  21. <![endif]-->
  22. </head>
  23. <body>
  24. <!-- Navigation -->
  25. <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  26. <div class="container">
  27. <!-- Brand and toggle get grouped for better mobile display -->
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="{:addon_url('example/index/index')}">{$site.name}</a>
  36. </div>
  37. <!-- Collect the nav links, forms, and other content for toggling -->
  38. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  39. <ul class="nav navbar-nav navbar-right">
  40. <li>
  41. <a href="{:addon_url('example/index/index')}">插件首页</a>
  42. </li>
  43. <li>
  44. <a href="{:addon_url('example/demo/demo1', [':name'=>'s1'])}">无需登录页面</a>
  45. </li>
  46. <li>
  47. <a href="{:addon_url('example/demo/demo2', [':name'=>'s2'])}">需登录页面</a>
  48. </li>
  49. {if $user}
  50. <li class="dropdown">
  51. <a href="#" class="dropdown-toggle" data-toggle="dropdown">欢迎你! {$user.nickname}<b class="caret"></b></a>
  52. <ul class="dropdown-menu">
  53. <li>
  54. <a href="{:url('index/user/index')}">会员中心</a>
  55. </li>
  56. <li>
  57. <a href="{:url('index/user/profile')}">个人资料</a>
  58. </li>
  59. <li>
  60. <a href="{:url('index/user/logout')}">退出登录</a>
  61. </li>
  62. </ul>
  63. </li>
  64. {else /}
  65. <li class="dropdown">
  66. <a href="#" class="dropdown-toggle" data-toggle="dropdown">会员中心 <b class="caret"></b></a>
  67. <ul class="dropdown-menu">
  68. <li>
  69. <a href="{:url('index/user/login')}">登录</a>
  70. </li>
  71. <li>
  72. <a href="{:url('index/user/register')}">注册</a>
  73. </li>
  74. </ul>
  75. </li>
  76. {/if}
  77. </ul>
  78. </div>
  79. <!-- /.navbar-collapse -->
  80. </div>
  81. <!-- /.container -->
  82. </nav>
  83. {__CONTENT__}
  84. <div class="container">
  85. <!-- Footer -->
  86. <footer>
  87. <div class="row">
  88. <div class="col-lg-12">
  89. <p>Copyright &copy; {$site.name} 2020</p>
  90. </div>
  91. </div>
  92. </footer>
  93. </div>
  94. <!-- /.container -->
  95. <!-- jQuery -->
  96. <script src="https://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
  97. <!-- Bootstrap Core JavaScript -->
  98. <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  99. <!-- Script to Activate the Carousel -->
  100. <script>
  101. $('.carousel').carousel({
  102. interval: 5000 //changes the speed
  103. })
  104. </script>
  105. </body>
  106. </html>