49 lines
1.4 KiB
PHP
49 lines
1.4 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* The template part for displaying single posts
|
||
|
*
|
||
|
* @package WordPress
|
||
|
* @subpackage Twenty_Sixteen
|
||
|
* @since Twenty Sixteen 1.0
|
||
|
*/
|
||
|
?>
|
||
|
|
||
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||
|
|
||
|
<header class="entry-header">
|
||
|
<div class="post-header-image" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
|
||
|
<div class="post-header-title"><?php the_title( '<h2>', '</h2>' ); ?></div>
|
||
|
<div class="read-on"><a href="#body"><div class="arrow-down">▼</div></a></div>
|
||
|
</div>
|
||
|
</header><!-- .entry-header -->
|
||
|
|
||
|
|
||
|
<div id="body" class="entry-content">
|
||
|
<?php
|
||
|
if (get_the_content()):
|
||
|
the_content();
|
||
|
else : echo get_the_excerpt();
|
||
|
endif;
|
||
|
|
||
|
wp_link_pages( array(
|
||
|
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
|
||
|
'after' => '</div>',
|
||
|
'link_before' => '<span>',
|
||
|
'link_after' => '</span>',
|
||
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
||
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||
|
) );
|
||
|
|
||
|
if ( '' !== get_the_author_meta( 'description' ) ) {
|
||
|
get_template_part( 'template-parts/biography' );
|
||
|
}
|
||
|
?>
|
||
|
</div><!-- .entry-content -->
|
||
|
|
||
|
<footer class="entry-footer">
|
||
|
<?php twentysixteen_entry_meta(); ?>
|
||
|
<?php
|
||
|
?>
|
||
|
</footer><!-- .entry-footer -->
|
||
|
</article><!-- #post-## -->
|