]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/twentyfifteen/single.php
WordPress 4.2.1
[autoinstalls/wordpress.git] / wp-content / themes / twentyfifteen / single.php
1 <?php
2 /**
3  * The template for displaying all single posts and attachments
4  *
5  * @package WordPress
6  * @subpackage Twenty_Fifteen
7  * @since Twenty Fifteen 1.0
8  */
9
10 get_header(); ?>
11
12         <div id="primary" class="content-area">
13                 <main id="main" class="site-main" role="main">
14
15                 <?php
16                 // Start the loop.
17                 while ( have_posts() ) : the_post();
18
19                         /*
20                          * Include the post format-specific template for the content. If you want to
21                          * use this in a child theme, then include a file called called content-___.php
22                          * (where ___ is the post format) and that will be used instead.
23                          */
24                         get_template_part( 'content', get_post_format() );
25
26                         // If comments are open or we have at least one comment, load up the comment template.
27                         if ( comments_open() || get_comments_number() ) :
28                                 comments_template();
29                         endif;
30
31                         // Previous/next post navigation.
32                         the_post_navigation( array(
33                                 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
34                                         '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
35                                         '<span class="post-title">%title</span>',
36                                 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
37                                         '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
38                                         '<span class="post-title">%title</span>',
39                         ) );
40
41                 // End the loop.
42                 endwhile;
43                 ?>
44
45                 </main><!-- .site-main -->
46         </div><!-- .content-area -->
47
48 <?php get_footer(); ?>