国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
4.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="{dede:global.cfg_soft_lang/}">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>{dede:field.title/}-{dede:global.cfg_webname/}</title>
  7. <meta name="keywords" content="{dede:field.keywords/}">
  8. <meta name="description" content="{dede:field.description function='html2text(@me)'/}">
  9. <script>const PHPURL = '{dede:field name="phpurl"/}';</script>
  10. <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script>
  11. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css">
  12. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css">
  13. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css">
  14. <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico">
  15. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css">
  16. <script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script>
  17. <script>hljs.initHighlightingOnLoad();</script>
  18. </head>
  19. <body>
  20. {dede:include filename='top.htm'/}
  21. {dede:include filename='header.htm'/}
  22. {dede:include filename='navbar.htm'/}
  23. <div class="container">
  24. <div class="position">
  25. <nav aria-label="breadcrumb">
  26. <ol class="breadcrumb mt-3">
  27. <li class="breadcrumb-item">当前位置</li>
  28. {dede:field name='position'/}
  29. </ol>
  30. </nav>
  31. </div>
  32. </div>
  33. <main class="container">
  34. <div class="row">
  35. <div class="col-md-8 article-main">
  36. <h2 class="mt-0 mb-3 zixue">{dede:field.title/}</h2>
  37. <div class="article-meta">
  38. <small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}
  39. <small>来源:</small>{dede:field.source/}
  40. <small>作者:</small>{dede:field.writer/}
  41. <small>点击:</small><span id="_count">...</span>次
  42. </div>
  43. <div class="body py-2">{dede:field.body/}(责任编辑:{dede:adminname/})</div>
  44. <nav>
  45. <ul class="pagination justify-content-center py-3">{dede:pagebreak/}</ul>
  46. </nav>
  47. <div class="clearfix"></div>
  48. {dede:include comment='文档顶踩模块' filename='widget_article_digg.htm'/}
  49. <div class="row">
  50. <div class="col-md-4 prenext pt-2">
  51. <div class="pagination-previous">{dede:prenext get='pre'/}</div>
  52. <div class="pagination-next mt-2">{dede:prenext get='next'/}</div>
  53. </div>
  54. <div class="col-md-8">
  55. <div class="row actbox">
  56. <ul>
  57. <li>
  58. <i class="fa fa-star-o"></i>
  59. <a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a>
  60. </li>
  61. <li>
  62. <i class="fa fa-bug"></i>
  63. <a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a>
  64. </li>
  65. <li>
  66. <i class="fa fa-thumbs-o-up"></i>
  67. <a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a>
  68. </li>
  69. <li>
  70. <i class="fa fa-print"></i>
  71. <a href="javascript:;" onClick="window.print();">打印</a>
  72. </li>
  73. </ul>
  74. </div>
  75. </div>
  76. </div>
  77. {dede:include comment='文档评论模块' file='widget_article_feedback.htm'/}
  78. </div>
  79. <aside class="col-md-4 article-sidebar">
  80. {dede:include comment='推荐内容' filename='widget_recommend.htm'/}
  81. {dede:include comment='热点内容' filename='widget_hot.htm'/}
  82. {dede:include comment='QR二维码' filename='widget_qrcode.htm'/}
  83. </aside>
  84. </div>
  85. </main>
  86. {dede:include filename='footer.htm'/}
  87. <script>
  88. //页面加载触发
  89. $(document).ready(function() {
  90. //获取文档点击数统计
  91. $.get("{dede:field name='phpurl'/}/count.php?format=json&view=yes&aid={dede:field.id/}&mid=1", function(
  92. data) {
  93. let result = JSON.parse(data);
  94. $("#_count").html(result.data.click);
  95. })
  96. });
  97. </script>
  98. </body>
  99. </html>