<?php

if(get_theme_mod('newsletter_area_disable') != 'on' ){
	?>
	<!-- newsletter Area Start -->
	<?php 
	if( get_theme_mod('newsletter_areaTpadding',true) ) {
		$newsletter_areaTpadding = 'padding-top:'.esc_attr(get_theme_mod('newsletter_areaTpadding')).';';
	}
	if( get_theme_mod('newsletter_areaBpadding',true) ) {
		$newsletter_areaBpadding = 'padding-bottom:'.esc_attr(get_theme_mod('newsletter_areaBpadding')).';';
	}
  
	?>		
	<div class="newsletter-area" id="newsletter" style="<?php echo esc_attr($newsletter_areaTpadding); ?>" "<?php echo esc_attr($newsletter_areaBpadding); ?>">
		<?php
			$newsletter_page_id = get_theme_mod('newsletter_page');
			$newsletter_page_maintitle = get_theme_mod('newsletter_page_maintitle', 'Subscribe to our newsletter');
			$luzuk_newsletter_shortcode = get_theme_mod('luzuk_newsletter_shortcode', '[Add Form shortcode]');		
		?>
			
		<div class="newslettersign-box">
			<div class="row"> 
				<?php if($newsletter_page_maintitle || $luzuk_newsletter_shortcode ){ ?>
				<div class="f-box">
					<h3><?php echo ($newsletter_page_maintitle);  ?></h3>					          	 		
					<div class="ht-newsletter-member-wrap">
						<div class="box-form">										
							<?php echo do_shortcode($luzuk_newsletter_shortcode);?>
						</div>
					</div>
					<div class="clearfix"></div>
				</div>
				<?php }?>
				<div class="so-box ">
					<?php 	
						$facebook = get_theme_mod('newsletter_fb', '//facebook.com/');
						$instagram = get_theme_mod('newsletter_insta', 'instagram.com/');
						$twitter = get_theme_mod('newsletter_tw', '//twitter.com/');
						$pinterest = get_theme_mod('newsletter_pint', 'https://in.pinterest.com/');
					?>	
					
					 <?php if($facebook || $instagram || $twitter || $pinterest){ ?>
						<div class="soci-icn">	
							<?php if(!empty($facebook)){ ?>
								<li><a href="<?php echo $facebook ?>" title="Facebook" class="site-button sharp" target="_blank"><i class="fa fa-facebook"></i></a></li>
							<?php }?>		

							<?php if(!empty($instagram)){ ?>
								<li><a href="<?php echo $instagram ?>" title="Instagram" class="site-button sharp" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
							<?php }?>

							<?php if(!empty($twitter)){ ?>
								<li><a href="<?php echo $twitter ?>" title="Twitter" class="site-button sharp" target="_blank">
								<i class="fa-brands fa-x-twitter"></i></a></li>
							<?php }?>

							<?php if(!empty($pinterest)){ ?>
								<li><a href="<?php echo $pinterest ?>" title="pinterest" class="site-button sharp" target="_blank"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a></li>
							<?php }?>
							<div class="clearfix"></div>
						</div>
					 <?php }?>
					
					<div class="clearfix"></div>
				</div>
			</div>			 
			<div class="clearfix"></div> 
		</div>
		<div class="clearfix"></div> 
	</div> 	
<?php } 