<?php
/**
 * The template used for displaying page content in page.php
 *
 * @package sparkling
 */
?>

<?php the_post_thumbnail( 'sparkling-featured', array( 'class' => 'single-featured' )); ?>

<div class="post-inner-content">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header page-header">
	<?php if(is_home() || is_front_page()){
	
	?>
	<a href="https://twitter.com/nlightspub" title="Follow us on Twitter!"><img class="right" src="<?php echo get_stylesheet_directory_uri();?>/images/social_twitter_bird-small.png" alt="Twitter" /></a>
	<a href="https://www.facebook.com/northernlightstheatrepub" title="Like us on Facebook!"><img class="left" src="<?php echo get_stylesheet_directory_uri();?>/images/social_facebook-small.png" alt="Facebook" /></a>
	<?php 
	}
	?>
	
		<h1 class="entry-title center"><?php the_title(); ?></h1>
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php the_content(); ?>
		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'sparkling' ),
				'after'  => '</div>',
			) );
		?>
    <?php
      // Checks if this is homepage to enable homepage widgets
      if ( is_front_page() ) :
        get_sidebar( 'home' );
      endif;
    ?>
	</div><!-- .entry-content -->
	<?php edit_post_link( __( 'Edit', 'sparkling' ), '<footer class="entry-footer"><i class="fa fa-pencil-square-o"></i><span class="edit-link">', '</span></footer>' ); ?>
</article><!-- #post-## -->
</div>