<?php 

/**
* Front Featured Section Hook 
*/
if ( ! function_exists( 'front_what_a_news_section_hook' ) ) :
    function front_what_a_news_section_hook() {  ?>
        <section class="whats-new my-100">
            <div class="container">
                <div class="section-title">
                    <div class="section-title-wrapper">
                        <div class="section-title-wrap">
                            <<?php echo esc_attr( get_theme_mod( 'what_a_news_section_title_tag', 'h2' ) ); ?> class="big-title what-a-news" data-aos="fade-right" data-aos-duration="800" data-aos-delay="100"><?php echo esc_html( get_theme_mod( 'what_a_news_section_title', __('Whats a New','newscope') ) ); ?></<?php echo esc_attr( get_theme_mod( 'what_a_news_section_title_tag', 'h2' ) ); ?>>
                        </div>
                    </div>
                    <?php if( true === get_theme_mod( 'enable_what_a_readmore', true ) ) : ?>
                    <a href="<?php echo esc_url( get_theme_mod( 'what_a_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( 'what_a_news_btn_text', __('View All','newscope') ) ); ?></a>
                    <?php endif; ?>
                </div>
                <div class="row">
                    <?php do_action( 'newscope_what_a_news_section_loop_action' ); ?>
                </div>
            </div>
        </section>
    <?php  }
endif;
add_action( 'front_what_a_news_section_action', 'front_what_a_news_section_hook' );