<?php
/**
 * Template part for displaying posts in loop
 *
 * @package Bravisthemes
 */
$post_social_share = breeza()->get_theme_opt( 'post_social_share', false );
$post_author_info = breeza()->get_theme_opt( 'post_author', false );
$postID = get_the_ID();
?>
<article id="pxl-post-<?php the_ID(); ?>" <?php post_class('pxl---post'); ?>>
    <?php breeza()->blog->get_post_title(); ?>     
    <?php breeza()->blog->breeza_set_post_views($postID); ?>            
    <?php breeza()->blog->get_post_metas(); ?>
    <?php if (has_post_thumbnail()) {
        echo '<div class="pxl-item--image">'; ?>
        <?php the_post_thumbnail('breeza-large'); ?>
        <?php echo '</div>';
    }?> 
    <div class="pxl-item--holder">
        <div class="pxl-item--content clearfix">
            <?php
            the_content();
            wp_link_pages( array(
                'before'      => '<div class="page-links">',
                'after'       => '</div>',
                'link_before' => '<span>',
                'link_after'  => '</span>',
            ) );
            ?>
        </div>

    </div>

    <?php if($post_social_share ) :  ?>
        <div class="pxl--post-footer">
            <?php if($post_social_share) { breeza()->blog->get_socials_share(); } ?>
        </div>
    <?php endif; ?>
    <?php if($post_author_info) { breeza()->blog->get_post_author_info(); } ?>
</article><!-- #post -->