国内流行的内容管理系统(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.

96 lines
4.9KB

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