<?php 

/**
* Front NewsLetter Section Hook 
*/
if ( ! function_exists( 'front_newsletter_section_hook' ) ) :
    function front_newsletter_section_hook() {  ?>
        <div class="newshit-newsletter-section-wrapper <?php echo esc_attr( true === get_theme_mod( 'enable_news_most_liked', true ) ? 'pt-0' : 'pt-4' ); ?>">
            <div class="container">
                <div class="newshit-newsletter-box">
                    <div class="row align-items-center justify-content-between">
                        <div class="col-12 col-sm-12 col-md-6 col-lg-5 col-xl-5">
                            <div class="newsletter-content">
                                <h2><?php echo esc_html( get_theme_mod( 'newsletter_content', 'Lets Join With Our Subscriber NewsHit' ) ); ?></h2>
                            </div>
                        </div>
                        <div class="col-12 col-sm-12 col-md-6 col-lg-5 col-xl-5 ml-auto">
                            <div class="newshit-newsletter-form">
                                <?php if( !empty( get_theme_mod( 'newsletter_shortcode' ) ) ){
                                    echo do_shortcode( get_theme_mod( 'newsletter_shortcode' ) );
                                }?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <?php  }
endif;
add_action( 'front_newsletter_section_action', 'front_newsletter_section_hook' );