<?php 

/**
* Front Tranding Post Section Hook 
*/
if ( ! function_exists( 'front_tranding_post_section_hook' ) ) :
    function front_tranding_post_section_hook() {  ?>
        <section class="trending-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( 'tranding_post_section_title_tag', 'h2' ) ); ?> class="big-title tranding-post-title" data-aos="fade-right" data-aos-duration="800" data-aos-delay="100"><?php echo esc_html( get_theme_mod( 'tranding_post_section_title', __('Tranding Post','newscope') ) ); ?></<?php echo esc_attr( get_theme_mod( 'tranding_post_section_title_tag', 'h2' ) ); ?>>
                        </div>
                    </div>
                    <?php if( true === get_theme_mod( 'enable_tranding_post_readmore', true ) ) : ?>
                    <a href="<?php echo esc_url( get_theme_mod( 'tranding_post_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( 'tranding_post_btn_text', __('View Post','newscope') ) ); ?></a>
                    <?php endif; ?>
                </div>
            </div>
            <?php do_action( 'newscope_tranding_post_loop_action' ); ?>
        </section>
    <?php  }
endif;
add_action( 'front_tranding_post_section_action', 'front_tranding_post_section_hook' );