ru-se.com

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

content.php (1275B)


      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_Twenty_One
      9  * @since Twenty Twenty-One 1.0
     10  */
     11 
     12 ?>
     13 
     14 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     15 	<header class="entry-header">
     16 		<?php if ( is_singular() ) : ?>
     17 			<?php the_title( '<h1 class="entry-title default-max-width">', '</h1>' ); ?>
     18 		<?php else : ?>
     19 			<?php the_title( sprintf( '<h2 class="entry-title default-max-width"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
     20 		<?php endif; ?>
     21 
     22 		<?php twenty_twenty_one_post_thumbnail(); ?>
     23 	</header><!-- .entry-header -->
     24 
     25 	<div class="entry-content">
     26 		<?php
     27 		the_content(
     28 			twenty_twenty_one_continue_reading_text()
     29 		);
     30 
     31 		wp_link_pages(
     32 			array(
     33 				'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
     34 				'after'    => '</nav>',
     35 				/* translators: %: Page number. */
     36 				'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
     37 			)
     38 		);
     39 
     40 		?>
     41 	</div><!-- .entry-content -->
     42 
     43 	<footer class="entry-footer default-max-width">
     44 		<?php twenty_twenty_one_entry_meta_footer(); ?>
     45 	</footer><!-- .entry-footer -->
     46 </article><!-- #post-<?php the_ID(); ?> -->