<?php
    /**
     * Full block part for displaying page content in page.php
     *
     * @package Kreeti
     */
    
    global $post;
    $kreeti_thumbnail_size = 'kreeti-featured';
    $kreeti_lite_show_excerpt = kreeti_lite_get_option('archive_content_view');
?>
<div class="read-single color-pad">
    <div class="read-item">
        <div class="read-img pos-rel read-bg-img">
            <a class="aft-post-image-link" href="<?php the_permalink(); ?>">
                <?php if ( has_post_thumbnail() ):
                    the_post_thumbnail($kreeti_thumbnail_size);
                endif;
                ?>
                <?php the_title(); ?>
            </a>
            <?php kreeti_lite_archive_social_share_icons($post->ID); ?>
            <?php kreeti_lite_post_format($post->ID); ?>
            <?php kreeti_lite_count_content_words($post->ID); ?>

        </div>

        <div class="read-details pad-archive">
            
            <?php if ('post' === get_post_type()) : ?>
                <div class="read-categories">
                    <?php kreeti_lite_post_categories(); ?>
                </div>
            <?php endif; ?>
            <div class="read-title">
                <?php the_title('<h4 class="entry-title">
                    <a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a>
                </h4>'); ?>
            </div>
            
            <?php if ('post' === get_post_type()) : ?>
                <div class="post-item-metadata entry-meta">
                    <?php kreeti_lite_post_item_meta(); ?>
                    <?php kreeti_lite_get_comments_views_share($post->ID); ?>
                </div>
            <?php endif; ?>
        </div>


    </div>
    <?php if ($kreeti_lite_show_excerpt != 'archive-content-none'): ?>
        <div class="read-descprition full-item-discription">
            <div class="post-description">
                <?php
                    if ($kreeti_lite_show_excerpt == 'archive-content-excerpt') {
                        echo wp_kses_post(kreeti_lite_get_the_excerpt($post->ID));
                    } else {
                        the_content();
                    }
                ?>
            </div>
        </div>
    <?php endif; ?>

</div>