<?php
if (get_theme_mod('dinero_newsletter_enable', true) == true) { ?>

	<div class="newsletter-area" id="newsletter">
		<div class="newsletter-bg"></div>
			<div class="<?php if(get_theme_mod('dinero_newsletter_section_width','Box Width') == 'Box Width'){ ?>container <?php } elseif(get_theme_mod('dinero_newsletter_section_width','Box Width') == 'Full Width'){ ?> container-fluid <?php }?>">

		<div class="newsletter-sign-box">
			<?php
			$showStatic = true;
			for( $i = 1; $i < 2; $i++ ){				
				$dinero_newsletter_page_id = get_theme_mod('dinero_newsletter_page_icon'.$i); 
				if(!empty($dinero_newsletter_page_id)){
					$showStatic = false;
					break;
				}
			}

			$dinero_newsletter_page_id = get_theme_mod('dinero_newsletter_page');	
			$dinero_newsletter_maintitle = get_theme_mod('dinero_newsletter_maintitle', 'Subscribe To Our Newsletter');
			$dinero_newsletter_subtitle = get_theme_mod('dinero_newsletter_subtitle', 'Get all latest news and offer by subscribing to our newsletter');
			?>
			<div class="col-md-1 pd-0 <?php echo esc_attr(get_theme_mod('dinero_newsletter_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
				 <?php if( get_theme_mod('dinero_newsletter_head_icon_enable','Yes') == 'Yes'){ ?>
				<div class="dinero-section-head-icon">
					<i class="<?php echo esc_attr(get_theme_mod('dinero_newsletter_head_icon', 'fa fa-paper-plane')); ?>"></i>
				</div>
				<?php }?>
			</div>
			<div class="col-md-5 pd-0 <?php echo esc_attr(get_theme_mod('dinero_newsletter_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
				<?php if($dinero_newsletter_maintitle || $dinero_newsletter_subtitle){ ?>
					<div class="dinero-section-head" style="text-align: <?php if(get_theme_mod('dinero_newsletter_head_align','Left') == 'Left'){ ?> left <?php } elseif(get_theme_mod('dinero_newsletter_head_align','Center') == 'Center'){ ?> center <?php } elseif(get_theme_mod('dinero_newsletter_head_align','Right') == 'Right'){ ?> right <?php } ?> ">
						<h2><?php echo ($dinero_newsletter_maintitle);  ?></h2>
						<h3><?php echo ($dinero_newsletter_subtitle);  ?></h3>				
					</div>
				<?php }?>
			</div>
			<div class="col-md-6">
				<?php
				$dinero_newsletter_shortcode = get_theme_mod('dinero_newsletter_shortcode', '[Add Form shortcode]');
				?>				
				<div class="dinero-newsletter-member-wrap">									
					<?php echo do_shortcode($dinero_newsletter_shortcode);?>
				</div>
			</div>
		<div class="clearfix"></div>
		</div>
	</div> 
<div class="clearfix"></div>
</div>	
<?php } 