<?php
/**
 *
 * @package LZ Restaurant Premium
 */
if(get_theme_mod('lz_fitness_newslatter_section_disable') != 'on' ){ ?> 
<?php 
            if( get_theme_mod('sectionnewsletter_toppadding',true) ) {
                $sectionnewsletter_toppadding = 'padding-top:'.esc_attr(get_theme_mod('sectionnewsletter_toppadding')).';';
            }
            if( get_theme_mod('sectionnewsletter_bottompadding',true) ) {
                $sectionnewsletter_bottompadding = 'padding-bottom:'.esc_attr(get_theme_mod('sectionnewsletter_bottompadding')).';';
            }
            if( get_theme_mod('sectionnewsletter_leftpadding',true) ) {
                $sectionnewsletter_leftpadding = 'padding-left:'.esc_attr(get_theme_mod('sectionnewsletter_leftpadding')).';';
            }
            if( get_theme_mod('sectionnewsletter_rightpadding',true) ) {
                $sectionnewsletter_rightpadding = 'padding-right:'.esc_attr(get_theme_mod('sectionnewsletter_rightpadding')).';';
            }
    ?>   

<section id="ht-newslatter-section" class="ht-section"  style="<?php echo esc_attr($sectionnewsletter_toppadding); ?>" "<?php echo esc_attr($sectionnewsletter_bottompadding); ?>" "<?php echo esc_attr($sectionnewsletter_leftpadding); ?>" "<?php echo esc_attr($sectionnewsletter_rightpadding); ?>" >
		<div class="container">
			<div class=" wow fadeInUp" data-wow-duration="1s">
				<?php
				$lz_fitness_newslatter_sub_title = get_theme_mod('lz_fitness_newslatter_sub_title', 'Fill the form and get dicounts');
				$lz_fitness_newslatter_title = get_theme_mod('lz_fitness_newslatter_title', 'Subscribe for Discounts');				
				$lz_fitness_newslatter_form_shortcode = get_theme_mod('lz_fitness_newslatter_form_shortcode', 'Add your form shortcode here.');
				?>
				<?php if( $lz_fitness_newslatter_title || $lz_fitness_newslatter_sub_title ){ ?>
				<div class="ht-section-title-tagline">
					<?php if($lz_fitness_newslatter_sub_title){ ?>
					<div class="ht-section-tagline lz-newslatter-text"><?php echo esc_html($lz_fitness_newslatter_sub_title); ?></div>
					<?php } ?>
					<?php if($lz_fitness_newslatter_title){ ?>
					<h2 class="ht-section-title lz-newslatter-heading"><?php echo esc_html($lz_fitness_newslatter_title); ?></h2>
					<?php } ?>
					<div class="clearfix"></div>
				</div>
				<?php } ?>
					<div class="newsletter-content-box">
						<!--<div class="col-md-6 col-sm-6 col-xs-12 textcenter">
							<?php //$image = get_theme_mod('lz_fitness_newslatter_section_image');?>
							<img src="<?php //echo !empty($image)?$image:get_template_directory_uri().'/images/support.png';?>" />
						</div>-->
						<div class="col-md-12 col-sm-12 col-xs-12">
						<div class="newsletter-form-box">
							<div class="col-md-6">
								<?php
								$lz_fitness_newslatter_discounts_percentage = get_theme_mod('lz_fitness_newslatter_discounts_percentage', '&#x00025;');
								$lz_fitness_newslatter_discounts_title = get_theme_mod('lz_fitness_newslatter_discounts_title', 'Get Amazing <br>Discounts');
								?>
								<div class="get-discounts">
									<?php if($lz_fitness_newslatter_discounts_percentage){ ?>
								<h2><?php echo esc_html($lz_fitness_newslatter_discounts_percentage); ?></h2>
								<?php } ?>
								<?php if($lz_fitness_newslatter_discounts_title){ ?>
								<h4><?php echo ($lz_fitness_newslatter_discounts_title); ?></h4>
								<?php } ?>
								</div>
							</div>
							<div class="col-md-4 col-md-inset-1">
								<div class="letter-form">							
									<?php echo do_shortcode($lz_fitness_newslatter_form_shortcode);?>
								</div>
							</div>
							<div class="clearfix"></div>
						</div>
						</div>
						<div class="clearfix"></div>
					</div>
			</div>
		</div>
</section>
<?php }