Skip to content

Commit

Permalink
Merge branch 'pr/10'
Browse files Browse the repository at this point in the history
  • Loading branch information
crimsonstrife committed Apr 7, 2020
2 parents 0e1af63 + 5afd70d commit 19baf8a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 71 deletions.
68 changes: 32 additions & 36 deletions template-parts/content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,41 @@
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->

<?php _s_post_thumbnail(); ?>
<?php _s_post_thumbnail(); ?>

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

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

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()
),
'<span class="edit-link">',
'</span>'
);
?>
</div><!-- .entry-content -->
</footer><!-- .entry-footer -->
</article>

<?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(),
),
)
),
wp_kses_post( get_the_title() )
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->
<!-- #post <?php the_ID(); ?> -->
68 changes: 33 additions & 35 deletions template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
<header class="entry-header">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
Expand All @@ -20,44 +20,42 @@

if ( 'post' === get_post_type() ) :
?>
<div class="entry-meta">
<?php
<div class="entry-meta">
<?php
_s_posted_on();
_s_posted_by();
?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->

<?php _s_post_thumbnail(); ?>
<?php _s_post_thumbnail(); ?>

<div class="entry-content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);

wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', '_s' ),
'after' => '</div>',
)
);
<div class="entry-content">
<?php
the_content( sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
) );
?>
</div><!-- .entry-content -->
</div><!-- .entry-content -->

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

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

0 comments on commit 19baf8a

Please sign in to comment.