themes-wordpress/sketch/content-single.php
2018-02-27 14:24:59 +11:00

47 lines
1.3 KiB
PHP

<?php
/**
* @package Sketch
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta">
<?php sketch_post_format(); ?>
<?php sketch_posted_on(); ?>
<?php edit_post_link( __( 'Edit', 'sketch' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'sketch' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'sketch' ) );
if ( $categories_list && sketch_categorized_blog() ) :
?>
<span class="cat-links">
<?php printf( __( 'Posted in %1$s', 'sketch' ), $categories_list ); ?>
</span>
<?php endif; // End if categories ?>
<?php
$tags_list = get_the_tag_list( '', '' );
if ( $tags_list && ! is_wp_error( $tags_list ) ) :
?>
<span class="tags-links">
<?php echo $tags_list; ?>
</span>
<?php endif; // End if $tags_list ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->