Skip to content

Commit

Permalink
Move wp_link_pages() with footer element
Browse files Browse the repository at this point in the history
  • Loading branch information
grappler committed Jul 2, 2018
1 parent 9274f32 commit 5afd70d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
46 changes: 21 additions & 25 deletions template-parts/content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,32 @@
<?php _s_post_thumbnail(); ?>

<div class="entry-content">
<?php
the_content();
<?php the_content(); ?>
</div><!-- .entry-content -->

<footer class="entry-footer">
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', '_s' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->

<?php if ( get_edit_post_link() ) : ?>
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
get_the_title()
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
10 changes: 6 additions & 4 deletions template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@
),
get_the_title()
) );
?>
</div><!-- .entry-content -->

<footer class="entry-footer">
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', '_s' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->

<footer class="entry-footer">
<?php _s_entry_footer(); ?>
_s_entry_footer();
?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->

0 comments on commit 5afd70d

Please sign in to comment.