<?php 

/**
* Front Most Popular Section Hook 
*/
if ( ! function_exists( 'front_most_popular_news_section_hook' ) ) :
    function front_most_popular_news_section_hook() {  ?>

        <section class="most-popular">
            <div class="container">
                <div class="section-title">
                    <div class="section-title-wrapper">
                        <div class="section-title-wrap">
                            <<?php echo esc_attr( get_theme_mod( 'most_popular_news_section_title_tag', 'h2' ) ); ?> class="big-title most-popular-title" data-aos="fade-right" data-aos-duration="800" data-aos-delay="100"><?php echo esc_html( get_theme_mod( 'most_popular_news_section_title', __('Most Popular','newscope') ) ); ?></<?php echo esc_attr( get_theme_mod( 'most_popular_news_section_title_tag', 'h2' ) ); ?>>
                        </div>
                    </div>
                    <?php if( true === get_theme_mod( 'enable_most_popular_readmore', true ) ) : ?>
                    <a href="<?php echo esc_url( get_theme_mod( 'most_popular_news_btn_url' ) ); ?>" class="news-btn v3 button-all" data-aos="fade-right" data-aos-duration="800" data-aos-delay="100"><?php echo esc_html( get_theme_mod( 'most_popular_news_btn_text', __('Read More','newscope') ) ); ?></a>
                    <?php endif; ?>
                </div>
                <div class="row">
                    <?php do_action( 'newscope_most_popular_post_loop_action' ); ?>
                </div>
            </div>
        </section>

    <?php  }
endif;
add_action( 'front_most_popular_news_section_action', 'front_most_popular_news_section_hook' );