themes-wordpress/illustratr/content-page.php

39 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2018-02-27 03:19:49 +00:00
<?php
/**
* The template used for displaying page content in page.php
*
* @package Illustratr
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( '' != get_the_post_thumbnail() ) : ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail( 'illustratr-featured-image' ); ?>
</div><!-- .entry-thumbnail -->
<?php endif; ?>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links clear">',
'after' => '</div>',
'pagelink' => '<span class="page-link">%</span>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'illustratr' ), __( '1 Comment', 'illustratr' ), __( '% Comments', 'illustratr' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'illustratr' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-## -->