<?php
/**
 * Template part for displaying posts in loop
 *
 * @package Case-Themes
 */
$post_tag = hubsteel()->get_theme_opt( 'post_tag', true );
$post_social_share = hubsteel()->get_theme_opt( 'post_social_share', false );
$tags_list = get_the_tag_list();
?>
<article id="pxl-post-<?php the_ID(); ?>" <?php post_class('pxl---post'); ?>>
    <div class="pxl-post-inner">
        <div class="pxl-item--holder">
            <?php hubsteel()->blog->get_post_metas(); ?>
        </div>
        <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>

        <?php if($post_tag && $tags_list || $post_social_share ) :  ?>
            <div class="pxl--post-footer">
                <?php if($post_tag) { hubsteel()->blog->get_tagged_in(); } ?>
                <?php if($post_social_share) { hubsteel()->blog->get_socials_share(); } ?>
            </div>
        <?php endif; ?>
    </div>
</article><!-- #post -->