PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/halogy/application/modules/events/views/templates/events_search.php

https://bitbucket.org/haloweb/halogy-1.0/
PHP | 88 lines | 59 code | 29 blank | 0 comment | 1 complexity | cafe66d8da2866de6b006db1849f7adf MD5 | raw file
 1{include:header}
 2
 3<div id="tpl-events" class="module">
 4
 5	<div class="col col1">
 6	
 7		<h4 class="month">Search results for "{query}"</h4>
 8
 9		{if events:events}
10			{events:events}
11
12				<div class="event">
13									
14					<h2 class="title"><a href="{link}">{event:title}</a></h2>
15					<h4 class="location">{event:location}</h4>
16					<h3 class="date">Posted: <strong>{event:date}</strong></small></h3>
17					<p>{event:body}</p>
18
19				</div>
20				
21			{/events:events}
22		{else}
23			<p>No results found.</p>
24		{/if}
25
26
27		{pagination}
28
29	</div>
30
31	<div class="col col2">
32	
33		<div class="calendar">
34			{events:calendar}			
35		</div>
36
37		<br />
38
39		<form method="post" action="/events/search/" class="default">
40
41			<label for="searchbox">Search Events:</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>Archive</h3>
51
52		<ul class="menu">
53			{if events:archive}
54				{events:archive}
55					<li><a href="{archive:link}">{archive:title}</a> ({archive:count})</li>
56				{/events:archive}
57			{else}
58				<li><small>Nothing to archive yet.</small></li>
59			{/if}
60		</ul>
61
62		<br />
63
64		<h3>Upcoming events</h3>
65
66		<ul class="menu">
67			{if events:latest}
68				{events:latest}
69					<li><a href="{latest:link}">{latest:title}</a></li>
70				{/events:latest}
71			{else}
72				<li><small>No events yet.</small></li>
73			{/if}
74		</ul>
75		
76		<br />
77
78		<h3>Subscribe to feed</h3>
79
80		<ul class="menu">
81			<li><a href="/events/feed/">Events RSS Feed</a></li>
82		</ul>
83		
84	</div>
85
86</div>
87
88{include:footer}