<?php 

/**
* Front Featured Post Section Hook 
*/
if ( ! function_exists( 'front_featured_post_section_hook' ) ) :
    function front_featured_post_section_hook() {  ?>

        <section class="feature-posts 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( 'featured_news_section_title_tag', 'h2' ) ); ?> class="big-title featured-title" data-aos="fade-right" data-aos-duration="800" data-aos-delay="100"><?php echo esc_html( get_theme_mod( 'feature_section_title', __('Feature Posts','newscope') ) ); ?></<?php echo esc_attr( get_theme_mod( 'featured_news_section_title_tag', 'h2' ) ); ?>>
                        </div>
                    </div>
                    <?php if( true === get_theme_mod( 'enable_featured_readmore', true ) ) : ?>
                    <a href="<?php echo esc_url( get_theme_mod( 'featured_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( 'featured_news_btn_text', __('View All','newscope') ) ); ?></a>
                    <?php endif; ?>
                </div>
            </div>
            <div class="feature-posts-wrapper">
                <?php do_action( 'newscope_featured_post_loop_action' ); ?>
            </div>
        </section>

    <?php  }
endif;
add_action( 'front_featured_post_section_action', 'front_featured_post_section_hook' );