<article class="pzy-post">
    <div class="pzy-post-header">
        <a class="pzy-post-img-link" href="<?php the_permalink(); ?>">
            <img src="<?php echo get_the_post_thumbnail_url(get_the_ID()) ?>"
                    alt="<?php echo get_the_title() ?>"/>
        </a>
        <div class="pzy-read-time">
            <span class="pzy-read-time-number"><?php echo estimate_reading_time_in_minutes(get_the_ID())['reading_time'] ?></span>
            <span class="pzy-read-time-unit"><?php esc_html_e('دقیقه', 'pezeshkyar') ?></span>
        </div>
    </div>
    <div class="pzy-post-body">
        <h3 class="pzy-post-title"><a
                    href="<?php the_permalink(); ?>"><?php the_title() ?></a></h3>
        <div class="pzy-post-excerpt"><?php echo get_the_excerpt() ?></div>
    </div>
    <div class="pzy-post-footer">
        <div class="pzy-post-info">
            <i class="pzy-post-info-icon" data-feather="message-square"></i>
            <span class="pzy-post-info-text"><?php echo get_comments_number(); ?></span>
        </div>

        <?php if (pzy_independent_analytics_enabled()): ?>
            <div class="pzy-post-info">
                <i class="pzy-post-info-icon" data-feather="bar-chart-2"></i>
                <span class="pzy-post-info-text"><?php echo do_shortcode('[iawp_view_counter label="" icon="0"]') ?></span>
            </div>
        <?php endif; ?>


        <div class="pzy-cover-gap"></div>
        <a class="pzy-read-more" href="<?php the_permalink(); ?>">
            <span class="pzy-read-more-text"><?php esc_html_e('مطالعه', 'pezeshkyar'); ?></span>
            <i class="pzy-read-more-icon" data-feather="arrow-left"></i>
        </a>
    </div>
</article>