This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
cookthebooks-legacy/template-parts/content-page.php

35 lines
844 B
PHP

<?php
/**
* Template part for displaying page content in page.php.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package PressBook
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'pb-article pb-singular' ); ?>>
<?php PressBook\TemplateTags::post_thumbnail(); ?>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="pb-content">
<div class="entry-content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'pressbook' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
</div><!-- .pb-content -->
<?php PressBook\TemplateTags::edit_post_link(); ?>
</article><!-- #post-<?php the_ID(); ?> -->