view.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {__NOLAYOUT__}
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>{$data.title|raw|default="页面不存在!"}</title>
  7. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  8. <link rel="stylesheet" href="{__SYSTEM_PATH__}/js/bootstrap/dist/css/bootstrap.min.css">
  9. <style type="text/css">
  10. ::-webkit-scrollbar{width:3px;height:3px}
  11. ::-webkit-scrollbar-track{background:#ccc!important}
  12. ::-webkit-scrollbar-thumb{background-color:#666!important}
  13. .container h2 {
  14. font-size: 16px;
  15. height: 35px;
  16. line-height: 35px;
  17. text-align: center;
  18. }
  19. .container h3 {
  20. color: #999;
  21. font-size: 14px;
  22. height: 25px;
  23. line-height: 25px;
  24. }
  25. .container h3 span {
  26. }
  27. .container .content-text {
  28. font-size: 14px;
  29. }
  30. .container .content-text p {
  31. height: 25px;
  32. line-height: 25px;
  33. }
  34. .container .content-read {
  35. color: #999;
  36. font-size: 0.6rem;
  37. text-align: right;
  38. margin-top: 0.5rem;
  39. line-height: 1rem;
  40. }
  41. .empty-box{
  42. margin-top: 50px;
  43. height: 35px;
  44. line-height: 35px;
  45. font-size: 18px;
  46. text-align: center;
  47. }
  48. </style>
  49. </head>
  50. <body>
  51. <div class="container">
  52. {if !empty($data)}
  53. <h2>{$data.title|default=""}</h2>
  54. <h3>
  55. <span style="color:#666">{$data.author|default=""}</span>
  56. <span style="margin-left:0.4rem">{$data.create_time|default=""}</span>
  57. </h3>
  58. {if $data.show_cover_pic}
  59. <div>
  60. <img src="{$data.local_url}" style="width:100%" alt="img">
  61. </div>
  62. {/if}
  63. <div class="content-text">
  64. {$data.content|raw|htmlspecialchars_decode|default=""}
  65. </div>
  66. <div class="content-read">阅读 {$data.visit|default="0"}</div>
  67. {else}
  68. <div class="empty-box">页面不存在!</div>
  69. {/if}
  70. </div>
  71. </body>
  72. </html>