<?php
/*
* Content display template.
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
  <div class="feature-post">
    <?php esc_attr_e("FEATURED","efpose"); ?>
  </div>
  <?php endif; ?>
  <header class="entry-header">
    <div class="category1-time">
      <?php efpose_breadcrumb(); ?>
      <div class="module9-view"> <span class="view2">
        <?php if (function_exists("efpose_get_post_view")) { ?>
        <?php echo esc_html (efpose_get_post_view()); ?>
        <?php } else { ?>
        <?php } ?>
        </span>
        <?php if (function_exists("efpose_reading_time")) { ?>
        <span class="view2"><?php echo esc_html (efpose_reading_time(get_the_ID())); ?></span>
        <?php } else { ?>
        <?php } ?>
        <span class="subcomment-singlepost">
		<a class="link-comments" href="<?php  comments_link(); ?>"><?php comments_number(__('0 Comments','efpose'),__('1 Comment','efpose'),__('% Comments','efpose')); ?></a> 
		</span>
		</div>
    </div>  
    <div class="feature-postimg"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
      <?php $thumb = get_post_thumbnail_id(); 
        $img_url = wp_get_attachment_url( $thumb,'full' ); 
        $image = aq_resize( $img_url, 1350, 650, true,true,true ); ?>
      <img src="<?php if($image) {echo esc_url($image);
        } else {echo efpose_catch_that_image(); } ?>" alt="<?php echo get_bloginfo('name'); ?>"/></a>
	</div>
    <h1 class="entry-title"><?php the_title(); ?></h1>
	<?php if (get_post_meta(get_the_ID(), "post_intro", true)) { ?>
	<div class="single2-intro"><?php echo esc_html(get_post_meta(get_the_ID(), "post_intro", true) ); ?></div>
	<?php } ?> 
	
    <div class="below-title-meta">
      <div class="submeta-singlepost">
        <?php _e( ' - ', 'efpose' ); ?>
        <?php the_category(', '); ?>
        <div class="subdate-singlepost"><?php echo esc_html (get_the_date()); ?></div>
      </div>
      <div class="adt-comment">
        <div class="features-onsinglepost">
          <?php if ( function_exists( 'sharing_display' ) ) { echo sharing_display(); } ?>
        </div>
      </div>
    </div>
  </header>
  <div class="entry-content contentinwrapper">
    <div class="entry-contentinside">
	<?php if(get_post_meta( get_the_ID(), 'adv_top_id' , true )){ ?>
	<div class="tvseason-left2">
		<a href="<?php echo esc_html(get_post_meta(get_the_ID(), "adv_toplink", true) ); ?>" target="_blank"><?php echo  ''.$image_two = wp_get_attachment_image( get_post_meta( get_the_ID(), 'adv_top_id', 1 ), 'poster' ).''; ?></a></div>
        <?php }	?>
			<div class="postcolumns <?php echo esc_html(get_post_meta(get_the_ID(), "efpose_post_columns", true) ); ?>">
            <?php the_content(esc_html__('Continue reading <span class="meta-nav">&rarr;</span>',"efpose")); ?>
            </div>	
		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'efpose' ), 'after' => '</div>' ) ); ?>
            <?php if(get_post_meta( get_the_ID(), 'adv_horz_id' , true )){ ?>
            <div class="tvseason-left2"><a href="<?php echo esc_html(get_post_meta(get_the_ID(), "adv_bottomlink", true) ); ?>" target="_blank"><?php echo  ''.$image_two = wp_get_attachment_image( get_post_meta( get_the_ID(), 'adv_horz_id', 1 ), 'poster' ).''; ?></a></div>
        <?php }	?>	
	</div>
	<?php if(get_post_meta( get_the_ID(), 'adv_vert_id' , true )){ ?>
	<div class="entry-contentadv"><a href="<?php echo esc_html(get_post_meta(get_the_ID(), "adv_vertlink", true) ); ?>" target="_blank"><?php echo  ''.$image_two = wp_get_attachment_image( get_post_meta( get_the_ID(), 'adv_vert_id', 1 ), 'poster' ).''; ?></a></div>
    <?php }	?> 
  </div>
</article>
<footer class="entry-meta">
 <?php esc_html_e('TAGS: ', 'efpose'); ?>
	<?php 
	$before = '#';
	$seperator = '#'; // blank instead of comma
	$after = '';
	the_tags( $before, $seperator, $after );
	?>
</footer>