angelovcom.net

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

content-single.php (1303B)


      1 <?php
      2 /**
      3  * Template part for displaying posts
      4  *
      5  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
      6  *
      7  * @package WordPress
      8  * @subpackage Twenty_Nineteen
      9  * @since Twenty Nineteen 1.0
     10  */
     11 
     12 ?>
     13 
     14 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     15 	<?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?>
     16 	<header class="entry-header">
     17 		<?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
     18 	</header>
     19 	<?php endif; ?>
     20 
     21 	<div class="entry-content">
     22 		<?php
     23 		the_content(
     24 			sprintf(
     25 				wp_kses(
     26 					/* translators: %s: Post title. Only visible to screen readers. */
     27 					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ),
     28 					array(
     29 						'span' => array(
     30 							'class' => array(),
     31 						),
     32 					)
     33 				),
     34 				get_the_title()
     35 			)
     36 		);
     37 
     38 		wp_link_pages(
     39 			array(
     40 				'before' => '<div class="page-links">' . __( 'Pages:', 'twentynineteen' ),
     41 				'after'  => '</div>',
     42 			)
     43 		);
     44 		?>
     45 	</div><!-- .entry-content -->
     46 
     47 	<footer class="entry-footer">
     48 		<?php twentynineteen_entry_footer(); ?>
     49 	</footer><!-- .entry-footer -->
     50 
     51 	<?php if ( ! is_singular( 'attachment' ) ) : ?>
     52 		<?php get_template_part( 'template-parts/post/author', 'bio' ); ?>
     53 	<?php endif; ?>
     54 
     55 </article><!-- #post-<?php the_ID(); ?> -->