-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
executable file
·46 lines (33 loc) · 1.34 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
45
46
<?php get_header(); ?>
<div id="content" class="span9 single">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h1><?php the_title(); ?></h1>
<section class="info">
<?php echo __('Posted by', 'wpbootstrap2'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo get_the_author(); ?></a>,
<?php echo get_the_date(); ?>,
<?php comments_popup_link( __( 'Comment' , 'wpbootstrap2' ), __( '1 Comment' , 'wpbootstrap2' ), __( '% Comments' , 'wpbootstrap2' ) ); ?>
</section>
</header>
<div class="thecontent">
<?php the_content(); ?>
</div>
<footer>
<nav class="categories">
<?php echo __( 'Categories' , 'wpbootstrap2' ) . ': '; the_category(', '); ?>
</nav>
<?php $tags_list = get_the_tag_list( '', ' ' );
if ( $tags_list ): ?>
<nav class="tags">
<?php echo __( 'Tags' , 'wpbootstrap2' ) . ': ' . $tags_list ; ?>
</nav>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'wpbootstrap2' ), '<p class="edit">', '</p>' ); ?>
</footer>
</article>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>