<?php
/**
 * The template used for displaying page content in page.php
 *
 * @package Inspiredise
 */
?>
<?php
$sub_title = get_post_meta( $post->ID, '_page_subtitle_value', true );
$page_class = get_post_meta( $post->ID, '_page_class_value', true );
$page_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
?>
<div class="content-block <?php echo $page_class; ?>" style="background-image: url(<?php if(is_array($page_image) && isset($page_image[0])) { echo $page_image[0]; } ?>)">
  <div class="container">
    <div class="row">
      <div class="span12">
        <h1 class="page-header-title"><?php the_title(); ?></h1>
        <?php if(is_array($sub_title) && isset($sub_title[0]) && $sub_title[0]!="") {?>
        <h6 class="page-subheader-title right"><?php echo $sub_title; ?></h6>
        <?php } ?>
      </div>
    </div>
    <div class="row">
    	<article id="post-0" class="post no-results not-found">
			<div class="entry-content">
				<?php the_content(); ?>
			</div><!-- .entry-content -->
		</article><!-- #post-0 .post .no-results .not-found -->
    </div>
    <?php edit_post_link( __( 'Edit', 'inspiredise' ), '<span class="edit-link">', '</span>' ); ?>
  </div>
</div>