<?php
/**
 * Template part for displaying posts.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Theme Palace
 * @subpackage  Pushpa
 * @since  Pushpa 1.0.0
 */

$options = pushpa_get_theme_options();
?>
<article class="grid-item">
    <div class="primary-post-wrapper">
        <div class="featured-image" style="background-image: url('<?php echo ( has_post_thumbnail( )) ? the_post_thumbnail_url( 'medium_large' ) : get_template_directory_uri().'/assets/uploads/no-featured-image-600x450.jpg' ?>');">
        </div>

        <div class="entry-container">
            <div class="entry-meta">
                <?php echo pushpa_article_footer_meta(); ?>
            </div><!-- .entry-meta -->
            <header class="entry-header">
                <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
            </header>

            <div class="entry-content">
                <?php the_excerpt(); ?>
            </div><!-- .entry-content -->

            <div class="post-footer-meta">
                <?php
                if( !empty( $options['hide_archive_date'] ) == false ):
                    pushpa_posted_on();
                endif;
                echo pushpa_author();
                ?>

            </div>
        </div><!-- .entry-container -->
    </div>
</article>
