<?php
/**
 * Template part for displaying newsletter section
 *
 * @package Feminine Style Coach
 * @subpackage feminine_style_coach
 */

?>
<?php if( get_theme_mod( 'feminine_style_coach_newsletter_section_show_hide', true) != '') { ?>
<section id="newsletter_section" class="my-5">
    <div class="container">
      <div class="newsletter-container">
        <div class="row">
          <div class="col-lg-6 col-md-6 align-self-center">
            <div class="newsletter_head">
              <div class="section_main_head">
                <?php if( get_theme_mod('feminine_style_coach_newsletter_main_heading') != ''){ ?>
                  <h3><?php echo esc_html(get_theme_mod('feminine_style_coach_newsletter_main_heading','')); ?></h3>
                <?php }?>
                <?php if( get_theme_mod('feminine_style_coach_newsletter_text') != ''){ ?>
                  <div class="section-text">
                    <?php echo esc_html(get_theme_mod('feminine_style_coach_newsletter_text','')); ?>
                  </div>
                <?php }?>
              </div>
            </div>
          </div>
          <div class="col-lg-6 col-md-6 align-self-center">
            <?php if(get_theme_mod('feminine_style_coach_newsletter_form_shortcode')!=''){ ?>
              <div class="newsletter_form">
                <div class="newsletter_shortcode">
                  <?php echo do_shortcode(get_theme_mod('feminine_style_coach_newsletter_form_shortcode')); ?>
                </div>
              </div>
            <?php } ?>
          </div>
        </div>
      </div>
    </div>  
</section>
<?php } ?>