<?php
/*
* Content display template for PAGE
*/
?>
<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 ','efpose'),__('1 ','efpose'),__('% ','efpose')); ?>
                <?php esc_html_e( 'comments', 'efpose' ); ?>
                </a> </span> </div>
        </div>
        <?php if ( is_single() ) : ?>
        <h1 class="entry-title">
            <?php the_title(); ?>
        </h1>
        <?php else : ?>
        <h2 class="entry-title">
            <?php the_title(); ?>
        </h2>
        <?php endif; ?>
        <div class="below-title-meta">
            <div class="submeta-singlepost">
                <?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="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, 999, 555, 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>
    <?php { $newsintro = get_post_meta ($post->ID, 'newsintro', $single = true);
      if($newsintro !== '') 
      echo '<div class="single2-intro">'.$newsintro.'</div>';             
      } ?>
    <?php if ( is_home() && ( get_theme_mod( 'efpose_one_full_post' , '1' ) == '1' ) ) : ?>
    <?php efpose_one_excerpts() ?>
    <?php elseif( is_search() || is_category() || is_tag() || is_author() || is_archive()  ): ?>
    <?php efpose_one_excerpts() ?>
    <?php else : ?>
    <div class="entry-content">
        <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'efpose' ) ); ?>
        <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'efpose' ), 'after' => '</div>' ) ); ?>
    </div>
    <?php endif; ?>
</article>