12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * The template used for displaying page content in page.php
- *
- * @package Libre 2
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php if ( has_post_thumbnail() ) { ?>
- <div class="post-thumbnail">
- <?php the_post_thumbnail( 'libre-2-post-thumbnail' ); ?>
- </div>
- <?php } ?>
- <header class="entry-header">
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
- <?php if ( is_page_template( 'right-column-page.php' ) ) : ?>
- <?php edit_post_link( sprintf( esc_html__( 'Edit %1$s', 'libre-2' ), '<span class="screen-reader-text">' . the_title_attribute( 'echo=0' ) . '</span>' ), '<span class="edit-link">', '</span>' ); ?>
- <?php endif; ?>
- </header><!-- .entry-header -->
- <div class="entry-content">
- <?php the_content(); ?>
- <?php
- wp_link_pages( array(
- 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'libre-2' ),
- 'after' => '</div>',
- ) );
- ?>
- </div><!-- .entry-content -->
- <?php if ( ! is_page_template( 'right-column-page.php' ) ) : ?>
- <footer class="entry-footer">
- <?php edit_post_link( sprintf( esc_html__( 'Edit %1$s', 'libre-2' ), '<span class="screen-reader-text">' . the_title_attribute( 'echo=0' ) . '</span>' ), '<span class="edit-link">', '</span>' ); ?>
- </footer><!-- .entry-footer -->
- <?php endif; ?>
- </article><!-- #post-## -->
|