post.html 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {layout name="common/layout" /}
  2. <div class="cl-artical-content">
  3. <h2 class="cl-artical-title">{$post.title|htmlentities}</h2>
  4. <div class="cl-card-tag">
  5. <div><a href="{$category.url}" class="text-muted">{$category.name|htmlentities}</a> / <span>{$post.views}</span>人浏览 / <span>{$post.comments}</span>人评论</div>
  6. </div>
  7. <div class="cl-artical">
  8. {$post.content}
  9. </div>
  10. <!-- 分享 -->
  11. <div class="floatbar">
  12. <a href="{:addon_url('blog/index/index','',false)}"><i class="fa fa-home"></i></a>
  13. <a href="#comments"><i class="fa fa-comment"></i></a>
  14. <a href="javascript:" class="gotop"><i class="fa fa-arrow-up"></i></a>
  15. </div>
  16. <!-- 扫二维码 -->
  17. <div class="qcode text-center">
  18. <img src="{$config.donate|cdnurl}" alt="">
  19. <p>感谢博主,喝杯咖啡~</p>
  20. </div>
  21. </div>
  22. <div class="recommend-panel">
  23. <h4 class="right-card-title px-0">相关文章</h4>
  24. <div class="card-deck">
  25. {blog:arclist row="3" id="item"}
  26. <div class="card ll-panel">
  27. <a class="recommend-panel-link" href="{$item.url}">
  28. <div class="object-responsive object-responsive-4by3 img-zoom">
  29. <img src="{$item.thumb|cdnurl}" class="img-fluid" alt="">
  30. </div>
  31. <div class="recommend-panel-bottom">
  32. {$item.title}
  33. <div class="text-muted small">{$item.createtime|human_date}</div>
  34. </div>
  35. </a>
  36. </div>
  37. {/blog:arclist}
  38. </div>
  39. </div>
  40. <div class="comment">
  41. <div id="comments" class="pt-3">
  42. <h3><span id="commentcount">{$post.comments}</span> 条评论</h3>
  43. <div class="commentlist">
  44. {include file="common/commentlist"}
  45. </div>
  46. </div>
  47. <div id="respond" class="pt-3">
  48. <h3>发表评论 <a href="javascript:;" style="display:none;">取消回复</a></h3>
  49. <form class="cl-comment-from" action="" method="post" id="postform">
  50. {:token()}
  51. <input type="hidden" name="post_id" id="post_id" value="{$post.id}"/>
  52. <input type="hidden" name="pid" id="pid" value="0"/>
  53. <p><input type="text" class="input" name="username" id="username" value="" size="22" tabindex="1"/>
  54. <label for="username">
  55. <small>名称 (必须)</small>
  56. </label>
  57. </p>
  58. <p><input type="text" class="input" name="email" id="email" value="" size="22" tabindex="2"/>
  59. <label for="email">
  60. <small>邮件地址 (不会被公开) (必须)</small>
  61. </label>
  62. </p>
  63. <p><input type="text" class="input" name="website" id="website" value="" size="22" tabindex="3"/>
  64. <label for="website">
  65. <small>网站或博客</small>
  66. </label>
  67. </p>
  68. <p><textarea name="content" class="form-control" id="commentcontent" cols="6" rows="5" tabindex="4"></textarea></p>
  69. <p><input name="submit" type="submit" id="submit" tabindex="5" value="提交评论(Ctrl+回车)" class="btn btn-primary"/><span id="actiontips" style="margin-left:5px;"></span></p>
  70. <p>
  71. <input name="rememberme" type="checkbox" class="checkbox" tabindex="6" checked value="1"/> 记住我的信息,方便下次评论 <br/>
  72. <input name="subscribe" type="checkbox" class="checkbox" tabindex="7" checked value="1"/> 有人回复时邮件通知我
  73. </p>
  74. </form>
  75. </div>
  76. </div>
  77. <!--@formatter:off-->
  78. <script>
  79. var post_id = {$post.id};
  80. var postcomment_url = "{:addon_url('blog/comment/post')}";
  81. var getcommentlist_url = "{:addon_url('blog/comment/index')}";
  82. </script>
  83. <!--@formatter:on-->
  84. <script data-render="script" src="__ADDON__/default/js/post.js"></script>