<?php
/**
 * Template part for displaying page content in page.php
 *
 * @subpackage Dinero
 * @since 1.0
 * @version 0.1
 */

?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php if ( !get_header_image() ) {
			the_title( '<h1 class="entry-title">', '</h1>' ); 
		}?>
		<?php dinero_edit_link( get_the_ID() ); ?>
	</header>
	<div class="entry-content">
		<?php if(has_post_thumbnail() && get_theme_mod('dinero_page_featured_image',true) == true) { ?>
			<div class="inner-page-image">
	    		<?php the_post_thumbnail(); ?>
	    	</div>
	    <?php }?>
		<p><?php the_content();?></p>
		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'dinero' ),
				'after'  => '</div>',
			) );
		?>
	</div>
</article>