-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
executable file
·44 lines (28 loc) · 1.25 KB
/
single.php
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 get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
// excludes this post from 'Related posts' in the sidebar
$GLOBALS['current_id'] = $post->ID;
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('style'); ?>>
<h2 class="posttitle"><?php the_title(); ?></h2>
<p class="postmetadata"><?php _e('Posted on','Mimbo'); ?> <?php the_time('n/d/y'); ?> • <?php _e('Categorized as','Mimbo'); ?> <?php the_category(',') ?></p>
<div class="entry clearfloat">
<?php the_content('<p>'.__('Read the rest of this entry','Mimbo').'»</p>'); ?>
<?php wp_link_pages(array(
'before' => '<p><strong> '.__('Pages:','Mimbo').' </strong>',
'after' => '</p>',
'next_or_number' => 'number'));
?>
</div>
<?php the_tags('<span id="tags"><strong>'.__('Tagged as:','Mimbo').'</strong> ', ', ', '</span>'); ?>
<?php edit_post_link(__('Edit this entry','Mimbo'), '<p>', '»</p>'); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.','Mimbo'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>