PageRenderTime 38ms CodeModel.GetById 25ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

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

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