~canonical-sysadmins/wordpress/4.9.1

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyseventeen/single.php

  • Committer: Barry Price
  • Date: 2017-06-09 02:09:58 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: barry.price@canonical.com-20170609020958-838whhwt2196f2vk
Merge WP4.8 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                <main id="main" class="site-main" role="main">
18
18
 
19
19
                        <?php
20
 
                                /* Start the Loop */
21
 
                                while ( have_posts() ) : the_post();
22
 
 
23
 
                                        get_template_part( 'template-parts/post/content', get_post_format() );
24
 
 
25
 
                                        // If comments are open or we have at least one comment, load up the comment template.
26
 
                                        if ( comments_open() || get_comments_number() ) :
27
 
                                                comments_template();
28
 
                                        endif;
29
 
 
30
 
                                        the_post_navigation( array(
31
 
                                                'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
32
 
                                                'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
33
 
                                        ) );
34
 
 
35
 
                                endwhile; // End of the loop.
 
20
                        /* Start the Loop */
 
21
                        while ( have_posts() ) : the_post();
 
22
 
 
23
                                get_template_part( 'template-parts/post/content', get_post_format() );
 
24
 
 
25
                                // If comments are open or we have at least one comment, load up the comment template.
 
26
                                if ( comments_open() || get_comments_number() ) :
 
27
                                        comments_template();
 
28
                                endif;
 
29
 
 
30
                                the_post_navigation( array(
 
31
                                        'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
 
32
                                        'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
 
33
                                ) );
 
34
 
 
35
                        endwhile; // End of the loop.
36
36
                        ?>
37
37
 
38
38
                </main><!-- #main -->