-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.php
More file actions
44 lines (38 loc) · 969 Bytes
/
events.php
File metadata and controls
44 lines (38 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Template Name: Events
* Description: A Page Template to display the events.
*/
?>
<?php
/**
* Events list page
*
* @package KCSU
* @file events.php
* @author Gideon Farrell <me@gideonfarrell.co.uk>
* @license BSD 3-Clause
*/
get_header();
?>
<div class="container">
<div class="row">
<!-- Events -->
<div id="EventsColumn">
<h2>Coming Up</h2>
<ul class="posts-list posts events">
<?php
$events = kcsu_get_upcoming_events(date('Ymd', strtotime('+2 months')));
foreach ($events as $event)
{
echo string_format(
'<li><!-- {id} --><a href="{link}" title="{title}">{title}</a> <span class="aux date">{date}</span><span class="aux"> - </span><span class="aux location">{location}</span></li>',
$event
);
}
?>
</ul>
</div>
</div>
</div>
<?php get_footer(); ?>