-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
28 lines (27 loc) · 1.17 KB
/
single.php
File metadata and controls
28 lines (27 loc) · 1.17 KB
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
<?php get_header(); ?>
<div class="nine columns offset-by-one content" id="pagebody">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<header>
<h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
</header>
<hr class="large" />
<div class="postmetadata">
<?php _e('Published at:'); ?> <?php the_time(' h:m a - l F d Y') ?>
</div>
<?php the_content(); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<div class="metabox">
<span class="catlink"><?php _e('Posted in:'); ?> <?php the_category(', ') ?></span> <?php _e('by'); ?> <?php the_author(); ?> <?php edit_post_link('Edit', '', ''); ?></span><?php if (get_the_tags()) : ?><span class="taglink"><?php the_tags(' ', ', ', ''); ?></span><?php endif; ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<h2><?php _e('Not Found'); ?></h2>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>