<div class="content container main-content widt-sidbar_3">
    <div class="row middle">
        <?php do_action('top_post_widget'); ?>
        <?php get_sidebar('page'); ?>
        <div class="col-sm-12 col-md-8 col-lg-8 col-xl-6 content content-fix main-conten" style="padding: 0;">
            <?php if (is_category()) : ?>
                <div class="title-category-header post-content">
                    <h1 class="cb-module-title"><?php echo single_cat_title(''); ?></h1>
                    <?php the_archive_description('<div class="taxonomy-description">', '</div>'); ?>
                </div>
                <?php
            endif;
            if (is_tag()) : ?>
                <div class="title-category-header post-content">
                    <h1 class="cb-module-title"><?php echo single_cat_title(''); ?></h1>
                    <?php the_archive_description('<div class="taxonomy-description">', '</div>'); ?>
                </div>
                <?php
            endif;
            if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <article class=" main solid-home home-col">
                        <div class="row">
                            <div class="col-4 col-sm-4 col-xs-4">
                                <a href="<?php the_permalink(); ?>">

                                    <?php
                                    if (has_post_thumbnail()) {
                                        the_post_thumbnail('medium', array('alt' => '' . get_the_title(), 'title' => '' . get_the_title() . ''));
                                    } else { ?>
                                        <img src="<?php bloginfo('template_url'); ?>/assets/images/thumb.gif" width="60" height="60" alt="<?php _e('Image not found', 'leora'); ?>" title="<?php _e('Image not found', 'leora'); ?>">
                                    <?php } ?>
                                </a>
                            </div>
                            <div class="col-8 col-sm-8 col-xs-8">
                                <h3>
                                    <a class="article_Title" href="<?php the_permalink(); ?>">
                                        <?php the_title(); ?>
                                    </a>
                                </h3>
                                <div class="post-meta-area">
                                    <?php
                                        $avatar_name  = ot_get_option('avatar_name', false);
                                        if ($avatar_name  == 'on') :
                                    ?>
                                    <a class="cursor-meta" href="<?php the_permalink(); ?>"><?php the_author(); ?></a>
                                    <?php endif; ?>
                                    <a class="cms-post-recent" href=""><i class="fa fa-comments-o" aria-hidden="true"></i> <?php comments_number('0', '1', '%'); ?></a>
                                    <span><?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' پیش'; ?></span>
                                </div>
                                <div class="excerpt_article">
                                    <?php
                                    if (empty($settings['grid_content_length'])) {
                                        the_excerpt();
                                    } else {
                                        echo wp_trim_words(get_the_excerpt(), $settings['grid_content_length']);
                                    }
                                    ?>
                                </div>
                            </div>
                        </div>
                    </article>
                <?php endwhile;
            else : ?>
                <p><?php _e('Sorry, no posts matched your criteria.', 'leora'); ?></p>
            <?php endif; ?>
            <?php get_template_part('themeplat/content/pagenumbers', 'pagenumbers'); ?>
        </div>
        <?php 
            do_action('down_post_widget');
            get_sidebar('page-left'); 
        ?>
    </div>
</div>