<div class="anews-top-headline-wrapper home-post-section pt-80">
        <div class="container">
            <div class="section-title tophtext"><?php echo esc_html(get_theme_mod('anews_home_top_headline_text','Top Headline' )); ?></div>
            <div class="row">
                <?php
                if( true == get_theme_mod( 'anews_home_thl_show' ) ) {
                    $p = new \WP_Query( array(
                        'posts_per_page' => 6,
                        'post_type' => 'post',
                        'order' => esc_attr(get_theme_mod( 'anews_top_headline_post_order' )),
                        'tax_query' => array(
                            array(
                                'taxonomy' => 'category',
                                'field' => 'term_id',
                                'terms' => get_theme_mod( 'anews_home_top_headline_cat' ),
                            )
                        ),
                    ));
                }else{
                    $p = new \WP_Query( array(
                        'posts_per_page' => 6,
                        'post_type' => 'post',
                        'order' => 'DESE',
                    ));
                }
                ?>
                <?php while ( $p->have_posts() ): $p->the_post();
                $anews_current_index = $p->current_post+1;
                $anews_cols = ($anews_current_index % 5 == 1) ? '6 first' : 3;
                ?>
                <div class="items col-12 col-sm-12 col-md-6 col-lg-<?php echo esc_attr($anews_cols); ?>">
                    <div class="hadline-home-post-item">
                        <div class="anews-home-post-single">
                            <div class="anews-home-post-img">
                                <?php the_post_thumbnail('full', array('class' => 'img-responsive hadline')); ?>
                                <div class="anews-home-post-single-content">
                                    <div class="anews-home-post-meta">
                                        <ul>
                                            <?php anews_post_cat(); ?>
                                        </ul>
                                    </div>
                                    <h2><a href="<?php echo esc_url(the_permalink()); ?>"><?php the_title(); ?></a></h2>
                                    <div class="anews-author-post-meta">
                                        <div class="anews-author-post-img">
                                            <?php echo get_avatar( get_the_author_meta( 'ID' )); ?>
                                        </div>
                                        <div class="anews-author-post-name">
                                            <h2><?php echo esc_html(get_the_author()); ?></h2>
                                            <span><?php echo esc_html(get_the_date( 'd M, Y', $post->ID )); ?></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php endwhile; wp_reset_query();?>
            </div>
            <?php if( true == get_theme_mod( 'anews_home_top_headline_show_readmore', true ) ) : ?>
            <div class="theme-btns text-center">
                <a href="<?php echo esc_url(get_theme_mod( 'anews_home_top_headline_readmore' )); ?>" class="theme-btn"><?php esc_html_e('Read More','anews'); ?></a>
            </div>
            <?php endif; ?>
        </div>
    </div>