<?php
/**
 * The template used for displaying page content in page.php
 *
 * @package Morgan
 * @since Morgan 1.0
 */
$page_description = get_post_meta($post->ID, 'wpfc_page_description', true);
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<?php if(has_post_thumbnail()) : ?>
		<?php the_post_thumbnail('content-width', array('class' => 'post-thumb', 'alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'')); ?>
	<?php endif; ?>	
	<header class="entry-header">
		<h1 class="entry-title"><?php the_title(); ?></h1>
		<?php if(!empty($page_description)) { ?>
			<div class="page-description">
				<?php echo $page_description; ?>
			</div><!-- .page-description -->
		<?php } ?>
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php the_content(); ?>
		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'morgan' ), 'after' => '</div>' ) ); ?>
	</div><!-- .entry-content -->
	
	<footer class="entry-meta">
		<?php edit_post_link( __( 'Edit', 'morgan' ), '<span class="edit-link"> <i class="icon-edit"></i> ', '</span>' ); ?>
	</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
