- Fix entry-footer inconsistency between content-*.php files - Move in a function <code>_s_entry_meta()</code> to avoid duplication --- At the moment there is an inconsistency between content.php and content-single.php regarding the .entry-footer output. In my opinion content.php output is would be better to use because it's easier to translate and allow more customisation. Finally by moving it into <code>inc/template-tags.php</code> we are getting rid of some duplicated code.
31 lines
856 B
PHP
31 lines
856 B
PHP
<?php
|
|
/**
|
|
* @package _s
|
|
*/
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
<header class="entry-header">
|
|
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
|
|
|
|
<?php if ( 'post' == get_post_type() ) : ?>
|
|
<div class="entry-meta">
|
|
<?php _s_posted_on(); ?>
|
|
</div><!-- .entry-meta -->
|
|
<?php endif; ?>
|
|
</header><!-- .entry-header -->
|
|
|
|
<div class="entry-content">
|
|
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', '_s' ) ); ?>
|
|
<?php
|
|
wp_link_pages( array(
|
|
'before' => '<div class="page-links">' . __( 'Pages:', '_s' ),
|
|
'after' => '</div>',
|
|
) );
|
|
?>
|
|
</div><!-- .entry-content -->
|
|
|
|
<footer class="entry-footer">
|
|
<?php _s_entry_meta(); ?>
|
|
</footer><!-- .entry-footer -->
|
|
</article><!-- #post-## -->
|