<?php 

/**
* Front Weekend Top Section Hook 
*/
if ( ! function_exists( 'front_weekend_top_section_hook' ) ) :
    function front_weekend_top_section_hook() {  ?>

        <section class="weekend-top">
            <div class="container">
                <div class="section-title">
                    <div class="section-title-wrapper">
                        <div class="section-title-wrap">
                            <<?php echo esc_attr( get_theme_mod( 'weekend_top_news_section_title_tag', 'h2' ) ); ?> class="big-title weekend-top" data-aos="fade-right" data-aos-duration="800" data-aos-delay="100"><?php echo esc_html( get_theme_mod( 'weekend_top_news_section_title', __('Weekend Top','newscope') ) ); ?></<?php echo esc_attr( get_theme_mod( 'weekend_top_news_section_title_tag', 'h2' ) ); ?>>
                        </div>
                    </div>
                    <?php if( true === get_theme_mod( 'enable_weekend_top_news_readmore', true ) ) : ?>
                    <a href="<?php echo esc_url( get_theme_mod( 'weekend_top_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( 'weekend_top_news_btn_text', __('View All','newscope') ) ); ?></a>
                    <?php endif; ?>
                </div>
                <div class="weekend-wrapper">
                    <div class="row">
                        <?php do_action( 'newscope_weekend_top_post_loop_action' ); ?>
                    </div>
                </div>
            </div>
        </section>

    <?php  }
endif;
add_action( 'front_weekend_top_section_action', 'front_weekend_top_section_hook' );