<?php
$format = get_post_format();
$formats = get_theme_support( 'post-formats' );
?>
<div class="entry-box-wrap" id="post-<?php the_ID(); ?>">
<article <?php post_class("entry-box"); ?>>
<?php if ( has_post_thumbnail() ): ?>
<div class="feature-img-box">
<div class="img-box figcaption-middle text-center from-top fade-in">
<a href="<?php the_permalink();?>">
<?php the_post_thumbnail();?>
<div class="img-overlay dark">
<div class="img-overlay-container">
<div class="img-overlay-content">
<i class="fa fa-link"></i>
</div>
</div>
</div>
</a>
</div>
</div>
<?php endif;?>
<div class="entry-main">
<div class="entry-header">
<a href="<?php the_permalink();?>"><h1 class="entry-title"><?php the_title();?></h1></a>
<ul class="entry-meta">
<li class="entry-date"><i class="fa fa-calendar"></i><a href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m'));?>"><?php echo get_the_date("M d, Y");?></a></li>
<li class="entry-author"><i class="fa fa-user"></i><?php echo get_the_author_link();?></li>
<li class="entry-catagory"><i class="fa fa-file-o"></i><?php the_category(', '); ?></li>
<li class="entry-comments"><i class="fa fa-comment"></i><a href="<?php the_permalink();?>#comments"><?php comments_popup_link( __('No comments yet','onetone'), __('1 comment','onetone'), __('% comments','onetone'), 'comments-link', '');?></a></li>
</ul>
</div>
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'link_before' => '<span class="active-link">', 'link_after' => '</span>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<div class="entry-footer">
<a href="<?php the_permalink();?>" class="entry-more pull-right"><?php _e("Read More","onetone");?> >></a>
</div>
</div>
</article>
</div>