/halogy/application/modules/blog/views/templates/blog_single.php

https://bitbucket.org/haloweb/halogy-1.0/ · PHP · 173 lines · 122 code · 51 blank · 0 comment · 0 complexity · bdf485733874e98ab962322940c25359 MD5 · raw file

  1. {include:header}
  2. <div id="tpl-blog" class="module">
  3. <div class="col col1">
  4. {if errors}
  5. <div class="error">
  6. {errors}
  7. </div>
  8. {/if}
  9. {if message}
  10. <div class="message">
  11. {message}
  12. </div>
  13. {/if}
  14. <h1 class="post-title"><a href="{post:link}">{post:title}</a></h1>
  15. <p class="back">
  16. <small>
  17. <a href="/blog/">&lt; Back to blog</a>
  18. {if post:allow-comments} | <a href="#addcomment" id="addcommentlink">Add a comment</a>{/if}
  19. </small>
  20. </p>
  21. <p class="posted"><small>Posted: <strong>{post:date}</strong></small></p>
  22. <div class="clear"></div>
  23. <div class="post-body">
  24. {post:body}
  25. </div>
  26. <p class="posted"><small>
  27. Posted by: <strong>{post:author}</strong><br />
  28. {if post:categories}
  29. Categories: <strong>{post:categories}<a href="{category:link}">{category}</a> {/post:categories}</strong><br />
  30. {/if}
  31. {if post:tags}
  32. Tags: <strong>{post:tags}<a href="{tag:link}">{tag}</a> {/post:tags}</strong><br />
  33. {/if}
  34. </small></p>
  35. {if post:comments}
  36. <div id="comments">
  37. <h4>Comments</h4>
  38. {post:comments}
  39. <div class="comment {comment:class}" id="comment{comment:id}">
  40. <div class="col1">
  41. <img src="{comment:gravatar}" width="50" />
  42. </div>
  43. <div class="col2">
  44. <p>By <strong>{comment:author}</strong> <small>on {comment:date}</small></p>
  45. <p>{comment:body}</p>
  46. </div>
  47. </div>
  48. {/post:comments}
  49. </div>
  50. {/if}
  51. <div class="clear"></div>
  52. {if post:allow-comments}
  53. <a name="addcomment"></a>
  54. <div id="addcomment">
  55. <h2>Add a comment</h2>
  56. <form method="post" action="{page:uri}" class="default" id="commentsform">
  57. <label for="fullName">Your Name</label>
  58. <input type="text" name="fullName" value="{form:name}" id="fullName" class="formelement" />
  59. <br class="clear" />
  60. <label for="email">Your Email</label>
  61. <input type="text" name="email" value="{form:email}" id="email" class="formelement" />
  62. <br class="clear" />
  63. <label for="fullName">Your Website</label>
  64. <input type="text" name="website" value="{form:website}" id="website" class="formelement" />
  65. <br class="clear" />
  66. <label for="commentform">Comment</label>
  67. <textarea name="comment" id="commentform" class="formelement small">{form:comment}</textarea>
  68. <br class="clear" /><br />
  69. <input type="submit" value="Post Comment" class="button nolabel" />
  70. </form>
  71. <p class="back clear"><a href="#" id="totop">Back to top</a></p>
  72. </div>
  73. {/if}
  74. </div>
  75. <div class="col col2">
  76. <form method="post" action="/blog/search/" class="default">
  77. <label for="searchbox">Search Posts:</label><br class="clear" />
  78. <input type="text" name="query" id="searchbox" maxlength="255" value="" class="searchbox" />
  79. <input type="image" src="/static/images/btn_search.gif" id="searchbutton" />
  80. <br class="clear" />
  81. </form>
  82. <br />
  83. <h3>Categories</h3>
  84. <ul class="menu">
  85. {if blog:categories}
  86. {blog:categories}
  87. <li><a href="{category:link}">{category:title}</a> ({category:count})</li>
  88. {/blog:categories}
  89. {else}
  90. <li><small>No categories set yet.</small></li>
  91. {/if}
  92. </ul>
  93. <br />
  94. <h3>Recent posts</h3>
  95. <ul class="menu">
  96. {if blog:latest}
  97. {blog:latest}
  98. <li><a href="{latest:link}">{latest:title}</a></li>
  99. {/blog:latest}
  100. {else}
  101. <li><small>No posts yet.</small></li>
  102. {/if}
  103. </ul>
  104. <br />
  105. <h3>Archive</h3>
  106. <ul class="menu">
  107. {if blog:archive}
  108. {blog:archive}
  109. <li><a href="{archive:link}">{archive:title}</a> ({archive:count})</li>
  110. {/blog:archive}
  111. {else}
  112. <li><small>Nothing to archive yet.</small></li>
  113. {/if}
  114. </ul>
  115. <br />
  116. <h3>Subscribe to feed</h3>
  117. <ul class="menu">
  118. <li><a href="/blog/feed/">Blog RSS Feed</a></li>
  119. </ul>
  120. </div>
  121. </div>
  122. {include:footer}