PageRenderTime 224ms CodeModel.GetById 141ms app.highlight 4ms RepoModel.GetById 77ms app.codeStats 0ms

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