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

article_default_sg.htm 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!doctype html>
  2. <html lang="zh-CN">
  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>
  7. const PHPURL = '{dede:field name="phpurl"/}';
  8. </script>
  9. <script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
  10. <script src="{dede:global.cfg_cmsurl/}/static/js/bootstrap.bundle.js"></script>
  11. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
  12. <link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  13. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
  14. <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
  15. <title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
  16. <meta name="keywords" content="{dede:field.keywords/}" />
  17. <meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
  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 mb-0">
  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>
  45. <div class="alert alert-warning mt-2" role="alert">
  46. 你会看到这个提示,那是因为你的系统无法识别某栏目的模型信息,或者你新建模型后,没为这个模型设计单独的模板。不同模型的文档浏览页的模板为:article_模型名字标识.htm
  47. 如“article_article.htm”,更多的信息你可以在频道模型管理的地方查看。
  48. </div>
  49. {dede:fieldlist}
  50. <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#BED1AB" class="table">
  51. <tr>
  52. <td width="23%" height="24" align="center" bgcolor="#FBFEF5">
  53. <b>[field:name/]</b> 内容:
  54. <br />
  55. 模板调用标记:
  56. <br />
  57. <script
  58. language='javascript'>document.write("{" + "dede:field.[field:tagname/] /" + "}");</script>
  59. </td>
  60. <td width="77%" bgcolor="#FFFFFF"> [field:value/] </td>
  61. </tr>
  62. </table>
  63. {/dede:fieldlist}
  64. </div>
  65. <div class="body py-2">
  66. {dede:field.body/} (责任编辑:{dede:adminname/})
  67. </div>
  68. <!-- /.body -->
  69. <div class="clearfix"></div>
  70. {dede:include comment='文档顶踩模块' filename="widget_article_digg.htm"/}
  71. <div class="row">
  72. <div class="col-md-4 prenext pt-2">
  73. <div class="pagination-previous">{dede:prenext get='pre'/}</div>
  74. <div class="pagination-next mt-2">{dede:prenext get='next'/}</div>
  75. </div>
  76. <div class="col-md-8">
  77. <div class="row actbox">
  78. <ul>
  79. <li><i class="fa fa-star-o" aria-hidden="true"></i> <a
  80. href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}"
  81. target="_blank">收藏</a></li>
  82. <li><i class="fa fa-bug" aria-hidden="true"></i> <a
  83. href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a>
  84. </li>
  85. <li><i class="fa fa-thumbs-o-up" aria-hidden="true"></i> <a
  86. href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}"
  87. target="_blank">推荐</a></li>
  88. <li><i class="fa fa-print" aria-hidden="true"></i> <a href="#"
  89. onClick="window.print();">打印</a></li>
  90. </ul>
  91. </div><!-- /actbox -->
  92. </div>
  93. </div>
  94. {dede:include comment='文档评论模块' file='widget_article_feedback.htm' /}
  95. </div>
  96. <!-- /.article-main -->
  97. <aside class="col-md-4 article-sidebar">
  98. {dede:include comment='推荐内容' filename="widget_recommend.htm"/}
  99. {dede:include comment='热点内容' filename="widget_hot.htm"/}
  100. {dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
  101. </aside>
  102. <!-- /.article-sidebar -->
  103. </div>
  104. </main>
  105. <!-- /main -->
  106. {dede:include filename="footer.htm"/}
  107. <script>
  108. // 页面加载触发
  109. $(document).ready(function () {
  110. // 获取文档点击数统计
  111. $.get("{dede:field name='phpurl'/}/count.php?format=json&view=yes&aid={dede:field.id/}&mid=1&cid={dede:field.channel/}", function (data) {
  112. let result = JSON.parse(data);
  113. $("#_count").html(result.data.click);
  114. })
  115. });
  116. </script>
  117. </body>
  118. </html>