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

https://bitbucket.org/haloweb/halogy-1.0/ · PHP · 102 lines · 72 code · 30 blank · 0 comment · 0 complexity · a19527f9848c5b590ed7c39b43e128a9 MD5 · raw file

  1. {include:header}
  2. <div id="tpl-blog" class="module">
  3. <div class="col col1">
  4. {if blog:posts}
  5. {blog:posts}
  6. <div class="post">
  7. <h2><a href="{post:link}">{post:title}</a></h2>
  8. <p><small>Posted: <strong>{post:date}</strong> (<a href="{post:link}#comments">{post:comments-count} comments</a>)</small></p>
  9. <div class="post-body">
  10. {post:body}
  11. </div>
  12. </div>
  13. {/blog:posts}
  14. <span style="float: left;">
  15. {blog:newer}
  16. </span>
  17. <span style="float: right;">
  18. {blog:older}
  19. </span>
  20. <br class="clear" />
  21. {else}
  22. <p>There are no posts yet.</p>
  23. {/if}
  24. </div>
  25. <div class="col col2">
  26. <form method="post" action="/blog/search/" class="default">
  27. <label for="searchbox">Search Posts:</label><br class="clear" />
  28. <input type="text" name="query" id="searchbox" maxlength="255" value="" class="searchbox" />
  29. <input type="image" src="/static/images/btn_search.gif" id="searchbutton" />
  30. <br class="clear" />
  31. </form>
  32. <br />
  33. <h3>Categories</h3>
  34. <ul class="menu">
  35. {if blog:categories}
  36. {blog:categories}
  37. <li><a href="{category:link}">{category:title}</a> ({category:count})</li>
  38. {/blog:categories}
  39. {else}
  40. <li><small>No categories set yet.</small></li>
  41. {/if}
  42. </ul>
  43. <br />
  44. <h3>Recent posts</h3>
  45. <ul class="menu">
  46. {if blog:latest}
  47. {blog:latest}
  48. <li><a href="{latest:link}">{latest:title}</a></li>
  49. {/blog:latest}
  50. {else}
  51. <li><small>No posts yet.</small></li>
  52. {/if}
  53. </ul>
  54. <br />
  55. <h3>Archive</h3>
  56. <ul class="menu">
  57. {if blog:archive}
  58. {blog:archive}
  59. <li><a href="{archive:link}">{archive:title}</a> ({archive:count})</li>
  60. {/blog:archive}
  61. {else}
  62. <li><small>Nothing to archive yet.</small></li>
  63. {/if}
  64. </ul>
  65. <br />
  66. <h3>Subscribe to feed</h3>
  67. <ul class="menu">
  68. <li><a href="/blog/feed/">Blog RSS Feed</a></li>
  69. </ul>
  70. </div>
  71. </div>
  72. {include:footer}