国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

107 líneas
4.8KB

  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. <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.bundle.min.js"></script>
  12. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css">
  13. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css">
  14. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css">
  15. <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico">
  16. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css">
  17. <script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script>
  18. <script>hljs.initHighlightingOnLoad();</script>
  19. </head>
  20. <body>
  21. {dede:include filename='top.htm'/}
  22. {dede:include filename='head.htm'/}
  23. <div class="container py-3">
  24. <div class="row">
  25. <div class="col-md-12">
  26. <div class="position rounded">
  27. <nav aria-label="breadcrumb">
  28. <ol class="breadcrumb">
  29. <li class="breadcrumb-item">当前位置</li>
  30. {dede:field name='position'/}
  31. </ol>
  32. </nav>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <main class="container py-3">
  38. <div class="row">
  39. <div class="col-md-9 article-main">
  40. <h2>{dede:field.title/}</h2>
  41. <div class="article-meta">
  42. <span>时间:{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span>
  43. <span>来源:{dede:field.source/}</span>
  44. <span>作者:{dede:field.writer/}</span>
  45. <span>点击:<i id="_count">...</i>次</span>
  46. </div>
  47. <div class="py-3">{dede:field.body/}</div>
  48. <div class="py-3">责任编辑:{dede:adminname/}</div>
  49. <nav class="py-3">
  50. <ul class="pagination justify-content-center">{dede:pagebreak/}</ul>
  51. </nav>
  52. <div class="alert alert-warning mt-3">您会看到这个提示,那是因为您的系统无法识别某栏目的模型信息,或者您新建模型后,没为这个模型设计单独的模板不同模型的文档浏览页的模板为:article_模型名字标识.htm如“article_article.htm”,更多的信息您可以在频道模型管理的地方查看</div>
  53. {dede:fieldlist}
  54. <table width="100%" cellpadding="1" cellspacing="1" bgcolor="#BED1AB" class="table">
  55. <tr>
  56. <td width="30%" align="center" bgcolor="#FBFEF5">
  57. [field:name/] 内容:<br>
  58. 模板调用标记:<br>
  59. <script>
  60. document.write("{" + "dede:field.[field:tagname/] /" + "}");
  61. </script>
  62. </td>
  63. <td width="70%">[field:value/]</td>
  64. </tr>
  65. </table>
  66. {/dede:fieldlist}
  67. <div class="clearfix"></div>
  68. {dede:include comment='文档顶踩模块' filename='widget_article_digg.htm'/}
  69. <div class="row">
  70. <div class="col-md-4 prenext">
  71. <div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div>
  72. <div class="pagination-next">{dede:prenext get='next'/}</div>
  73. </div>
  74. <div class="col-md-8">
  75. <div class="row actbox">
  76. <ul>
  77. <li><i class="fa fa-star-o"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li>
  78. <li><i class="fa fa-bug"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li>
  79. <li><i class="fa fa-thumbs-o-up"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li>
  80. <li><i class="fa fa-print"></i><a href="javascript:;" onClick="window.print();">打印</a></li>
  81. </ul>
  82. </div>
  83. </div>
  84. </div>
  85. {dede:include comment='文档评论模块' file='widget_article_feedback.htm'/}
  86. </div>
  87. <div class="col-md-3">
  88. {dede:include comment='推荐内容' filename='widget_recommend.htm'/}
  89. {dede:include comment='热点内容' filename='widget_hot.htm'/}
  90. {dede:include comment='QR二维码' filename='widget_qrcode.htm'/}
  91. </div>
  92. </div>
  93. </main>
  94. {dede:include filename='foot.htm'/}
  95. <script>
  96. //页面加载触发
  97. $(document).ready(function() {
  98. //获取文档点击数统计
  99. $.get("{dede:field name='phpurl'/}/count.php?format=json&view=yes&aid={dede:field.id/}&mid=1&cid={dede:field.channel/}",
  100. function(data) {
  101. let result = JSON.parse(data);
  102. $("#_count").html(result.data.click);
  103. })
  104. });
  105. </script>
  106. </body>
  107. </html>