-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
45 lines (39 loc) · 772 Bytes
/
single.php
File metadata and controls
45 lines (39 loc) · 772 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
45
<?php
/**
* Single post template
*
* @package KCSU
* @file single.php
* @author Gideon Farrell <me@gideonfarrell.co.uk>
* @license BSD 3-Clause
*/
get_header();
while(have_posts()): the_post();
if(in_category('news')) {
include('single-news.php');
}
else if(in_category('access')) {
include('single-access.php');
}
else
{
?>
<div class="container news post">
<header>
<h1><?php the_title(); ?></h1>
<p>Posted <span class="date relative" title="<?php echo get_the_date('c'); ?>"><?php echo get_the_date('Y/m/d H:i:s'); ?></span> by <span class="author"><?php the_author_link(); ?></span></p>
</header>
<hr />
<div class="row">
<div class="span8">
<article>
<?php the_content(); ?>
</article>
</div>
</div>
</div>
<?php
}
endwhile;
get_footer();
?>