<?php 
$acx_csma_template_id = 1;
do_action('acx_csma_above_template_html',$acx_csma_template_id);
$acx_csma_appearence_array_1=acx_csma_get_db_array_value(); 
$acx_csma_meta_title = get_option('acx_csma_meta_title');
$acx_csma_meta_description = get_option('acx_csma_meta_description');
$acx_csma_meta_keywords = get_option('acx_csma_meta_keywords');
$favicon_attach_id = get_option('acx_csma_favicon');
		$acx_csma_favicon = $favicon_attach_id;
		if(is_numeric($favicon_attach_id))
		{
			$fav_icon_attachment_url = parse_url( wp_get_attachment_url($favicon_attach_id) );
			$acx_csma_favicon = $fav_icon_attachment_url [ 'scheme' ]  . '://' .rawurlencode( basename( $fav_icon_attachment_url[ 'host' ])). $fav_icon_attachment_url[ 'path' ];
		}

$acx_csma_date_time = get_option('acx_csma_date_time');
$acx_csma_start_date_time = get_option('acx_csma_start_date_time');
$acx_csma_timestamp=current_time('timestamp');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
if($acx_csma_meta_title!="")
{
?>
<title><?php echo stripslashes($acx_csma_meta_title); ?></title>
<?php
}
if($acx_csma_meta_description!="")
{
?>
<meta name="description" content="<?php echo stripslashes($acx_csma_meta_description); ?>">
<?php
}
if($acx_csma_meta_keywords!="")
{
?>
<meta name="keywords" content="<?php echo stripslashes($acx_csma_meta_keywords); ?>">
<?php
}
?>
<style>
<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_css_temp1']; ?>
.submit:hover
{
	color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_hover_color1']; ?>;
	background:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_hover_bgcolor1']; ?>;
}
.submit{
	background:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_color1']; ?>;
	color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_text_color1']; ?>;
}
.acx_csma_li_span
{
		background-color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_input_bg_color1']; ?>;
}
.acx_csma_gdpr_notice .acx_csma_info_lb:hover
{
	color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdpr_hovercolor1']; ?> !important;
}
</style>
<link href="<?php echo plugins_url('style.css', __FILE__); ?>" rel="stylesheet" type="text/css" />
<link rel="icon" href="<?php echo esc_url($acx_csma_favicon); ?>"  type="image/png">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<?php echo stripslashes(get_option('acx_csma_ga_trakng_code')); 
do_action('acx_csma_bottom_inside_head_tag',$acx_csma_template_id);
?>
</head>
<?php
$acx_csma_background_image1_id = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_background_image1'];
$bg_image1_url  = $acx_csma_background_image1_id;
if(is_numeric($acx_csma_background_image1_id))
{
	$image1_attachment_url = parse_url( wp_get_attachment_url($acx_csma_background_image1_id) );
	$bg_image1_url    = $image1_attachment_url [ 'scheme' ]  . '://' .rawurlencode( basename( $image1_attachment_url[ 'host' ])). $image1_attachment_url[ 'path' ];
} 
?>
<body style="background: url('<?php echo $bg_image1_url; ?>') no-repeat fixed center center transparent; background-size:cover; ">

<?php 
do_action('acx_csma_top_inside_body_tag',$acx_csma_template_id);
if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_1[$acx_csma_template_id]))
{
	if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
	{
		$new_class="text_logo";
	} 
	else
	{
		$new_class="";
	}
}
else
{
	$new_class="";
}
$acx_csma_form_text = get_option('acx_csma_form_text');
$acx_csma_gdpr_status = get_option('acx_csma_gdpr_status');
$acx_csma_privacy_policy_title = get_option('acx_csma_privacy_policy_title');
$acx_csma_privacy_policy_desc = get_option('acx_csma_privacy_policy_desc');
?>	<div class="wrapper" > 
		<div class="canvas960 <?php echo $new_class; ?>"> 
			<div id="header">
			<?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_1[$acx_csma_template_id]))
			{if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']==""){ 
			$acx_csma_logo1_id = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo1'];
					$logo1_url  = $acx_csma_logo1_id;
					if(is_numeric($acx_csma_logo1_id))
					{
						$logo1_attachment_url = parse_url( wp_get_attachment_url($acx_csma_logo1_id) );
						$logo1_url    = $logo1_attachment_url [ 'scheme' ]  . '://' .rawurlencode( basename( $logo1_attachment_url[ 'host' ])). $logo1_attachment_url[ 'path' ];
					}
			?>
			<img src="<?php  echo $logo1_url; ?>" alt="Logo">
			<?php } else if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_choice']=="text")
			{
				$acx_csma_logo_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_text1'];
				$acx_csma_logo_text1 = acx_csma_text_after_save_hook_fn($acx_csma_logo_text1);
				
		?>
				<div class="logo_text" style="color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_logo_text_color1']; ?>"><?php echo $acx_csma_logo_text1; ?></div>
			<?php } }?>
			</div><!-- header -->
			<?php
			$acx_csma_title1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_title1'];
			$acx_csma_title1 = acx_csma_text_after_save_hook_fn($acx_csma_title1);
			$acx_csma_subtitle_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subtitle_text1'];
			$acx_csma_subtitle_text1 = acx_csma_text_after_save_hook_fn($acx_csma_subtitle_text1);
			?>
			<div class="inline_block"> 
				<h2 style="color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_title_color1']; ?>"><?php  echo $acx_csma_title1; ?></h2>
				<h3 style="color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subtitle_color1']; ?>"><?php  echo $acx_csma_subtitle_text1; ?></h3>
			</div><!-- inline_block -->
			
			<div class="inline_block mg_top"> 
				<div class="timer_head" style="background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_bg_color1']; ?>; color: <?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_title_color1']; ?>">
				<?php
				$acx_csma_show_timer1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_show_timer1'];
				if($acx_csma_show_timer1 == 1)
					{
						$acx_csma_inside_title1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_inside_title1'];
						$acx_csma_inside_title1 = acx_csma_text_after_save_hook_fn($acx_csma_inside_title1);
						?><p><?php  echo $acx_csma_inside_title1; ?></p>
				
				<?php
					}
				$acx_csma_custom_html_top_temp1_title = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_temp1_title'];
				if($acx_csma_custom_html_top_temp1_title != "") { ?>
				<div class="acx_csma_content_div acx_csma_top acx_csma_top_1 inline_block">
				<?php echo $acx_csma_custom_html_top_temp1_title = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp1_title); ?>
				</div>
				<?php } ?>
				</div><!-- timer_head  -->
				<?php
					$acx_csma_custom_html_top_temp1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_temp1'];
					$acx_csma_custom_html_bottom_temp1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp1'];
					
				if($acx_csma_custom_html_top_temp1 != "" || $acx_csma_custom_html_bottom_temp1 != "" || $acx_csma_show_timer1 == 1)
				{
				?>
				
				<div class="inline_block timer_holder" style=" background: <?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_bg_color1']; ?>"> 
				<?php
				}
				if($acx_csma_custom_html_top_temp1 != "") { ?>
				<div class="acx_csma_content_div acx_csma_top acx_csma_top_1">
				<?php echo $acx_csma_custom_html_top_temp1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp1); ?>
				</div>
				<?php } ?>
				<?php if($acx_csma_show_timer1 == 1)
					{
						$acx_second_arr=acx_csma_disp_var_to_show("second");
						$acx_sec_singular=$acx_second_arr['singular'];
						$acx_sec_plural=$acx_second_arr['plural'];

						$acx_minute_arr=acx_csma_disp_var_to_show("minute");
						$acx_minute_singular=$acx_minute_arr['singular'];
						$acx_minute_plural=$acx_minute_arr['plural'];
						
						$acx_hour_arr=acx_csma_disp_var_to_show("hour");
						$acx_hour_singular=$acx_hour_arr['singular'];
						$acx_hour_plural=$acx_hour_arr['plural'];
						
						$acx_day_arr=acx_csma_disp_var_to_show("day");
						$acx_day_singular=$acx_day_arr['singular'];
						$acx_day_plural=$acx_day_arr['plural'];
			
	?>
					<div class="timer_box days"> 
						<p id="acx_day_disp" style="color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_day_singular); ?></p>
						<ul>
						<li  style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span id="days_0" class="acx_csma_li_span">0</span></li>
						<li  style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span id="days_1" class="acx_csma_li_span">0</span></li>
						<li  style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span id="days_2" class="acx_csma_li_span">0</span></li>
						</ul>
					</div><!-- timer_box -->
					<div class="timer_box"> 
						<p id="acx_hour_disp" style="color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_hour_singular); ?></p>
						<ul>
							<li  style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span id="hours_0" class="acx_csma_li_span">0</span></li>
							<li style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span  id="hours_1" class="acx_csma_li_span">0</span></li>
						</ul>
					</div><!-- timer_box -->	
					<div class="timer_box"> 
						<p id="acx_min_disp" style="color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_minute_singular); ?></p>
						<ul>
							<li style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span id="minutes_0" class="acx_csma_li_span">0</span></li>
							<li style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span id="minutes_1" class="acx_csma_li_span">0</span></li>
						</ul>
					</div><!-- timer_box -->
					<div class="timer_box last_one"> 
						<p id="acx_sec_disp" style="color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_head_color1']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_sec_singular); ?></p>
						<ul>
							<li style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span  id="seconds_0" class="acx_csma_li_span">0</span></li>
							<li  style="color:<?php echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_timer_iptext_color1']; ?>"><span id="seconds_1" class="acx_csma_li_span">0</span></li>
						</ul>
					</div><!-- timer_box -->
					<?php }?>
				<?php
				
				if($acx_csma_custom_html_bottom_temp1 != "") { ?>
				<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1">
				<?php echo $acx_csma_custom_html_bottom_temp1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp1); ?>
				</div>
				<?php }
							
				if($acx_csma_custom_html_top_temp1 != "" || $acx_csma_custom_html_bottom_temp1 != "" || $acx_csma_show_timer1 == 1)
				{	?>
				</div><!-- timer_holder -->
				<?php } ?>
				
				<div class="inline_block form" style="background: none repeat scroll 0 0 <?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_bg_color1']; ?>"> 
				<?php
					$acx_csma_custom_html_top_sub1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_top_sub1'];
					$acx_csma_custom_html_bottom_sub1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_custom_html_bottom_sub1'];
					$acx_csma_show_subscription = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_show_subscription'];
				if($acx_csma_custom_html_top_sub1 != "" || $acx_csma_custom_html_bottom_sub1 != "" || $acx_csma_show_subscription == 1)
				{
					
					if($acx_csma_custom_html_top_sub1 != "")
					{ ?>
						<div class="acx_csma_content_div acx_csma_top acx_csma_top_1" id="acx_csma_top_1">
							<?php echo $acx_csma_custom_html_top_sub1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_sub1);; ?>
						</div>
					<?php
					}
					
					if($acx_csma_show_subscription == 1)
					{
						$acx_csma_subscribe_title1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_title1'];
						$acx_csma_subscribe_title1 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_title1);
						$acx_csma_subscribe_success1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_success1'];
						$acx_csma_subscribe_success1 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_success1);
						$acx_csma_subscribe_invalid1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_invalid1'];
						$acx_csma_subscribe_invalid1 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_invalid1);
						$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
						$acx_next_singular=acx_csma_option_text_after_save_hook_fn($acx_subs_next_arr['singular']);
						$acx_subs_name_arr=acx_csma_disp_var_to_show("Subscription Name Placeholder");
						$acx_s_name_singular=acx_csma_option_text_after_save_hook_fn($acx_subs_name_arr['singular']);
						$acx_subs_email_arr=acx_csma_disp_var_to_show("Subscription Email Placeholder");
						$acx_s_email_singular=acx_csma_option_text_after_save_hook_fn($acx_subs_email_arr['singular']);
						
						$acx_csma_show_subscription_name = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_show_subscription_name'];
						$acx_csma_show_subscription_name = acx_csma_text_after_save_hook_fn($acx_csma_show_subscription_name);
					?>
					<h4><span style="color: <?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_title_color1']; ?>;"><?php  echo $acx_csma_subscribe_title1; ?></span></h4>
					<form name="acx_csma_form" method="post" action="<?php echo esc_url(str_replace( '%7E', '~',$_SERVER['REQUEST_URI'])); ?>"> 
					<div id="acx_csma_success"  name="acx_csma_success" style="display:none;" ><?php echo $acx_csma_subscribe_success1; ?></div>
					<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;" ><?php echo $acx_csma_subscribe_invalid1; ?></div>
					<div id="acx_csma_error" style="display:none;"></div>
					<?php
					if($acx_csma_show_subscription_name == 1)
					{
					?>
					<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo $acx_s_name_singular; ?>">
					<input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo $acx_s_email_singular; ?>" >
					<br/> 
					<div class="acx_csma_privacy_cvr" style="display:none;">
					<?php 
					if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
					{
						?>
						<span class="acx_csma_gdpr_notice" style='color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdprcolor1']; ?>;'>
						<input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
						<?php
						if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
						{
							?>
							<a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdprcolor1']; ?>;'>
							<?php
						}
						?>
						
						<?php echo $acx_csma_form_text;?>
						<?php
						if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
						{
							?>
							</a>
							<?php
							
						}
						?>
						</span>
						<?php
					}
					?>
					</div>
					<br>
					<input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="<?php echo $acx_next_singular; ?>" class="submit">
					<?php }
					else if($acx_csma_show_subscription_name == 0){ ?>
					<input type="text" id="acx_csma_email" name="email" placeholder="<?php echo $acx_s_email_singular; ?>" >
					<br/> 
					<div class="acx_csma_privacy_cvr" style="display:none;">
					<?php 
					if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
					{
						?>
						<span class="acx_csma_gdpr_notice">
						<input type="checkbox" name="acx_csma_gdpr_accept" id="acx_csma_gdpr_accept" value="yes">
						<?php
						if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
						{
							?>
							<a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php echo  $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_gdprcolor1'];?>;'>
							<?php
						}
						?>
						
						<?php echo $acx_csma_form_text;?>
						<?php
						if($acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
						{
							?>
							</a>
							<?php
							
						}
						?>
						</span>
						<?php
					}
					?>
					</div>
					<br>
					<input type="button" id="acx_csma_submit" onclick="acx_csma_validate_email();" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_text1']); ?>" class="submit" >
					<?php					
					}
					?>
					
					</form>
					<?php
					}
					if($acx_csma_custom_html_bottom_sub1 != "")
					{ ?>
						<div class="acx_csma_content_div acx_csma_bottom acx_csma_bottom_1" id="acx_csma_top_1">
							<?php echo $acx_csma_custom_html_bottom_sub1 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_sub1); ?>
						</div>
					<?php 
					}		
				}
				?>
				</div>
				<!-- form -->
				<?php $acx_csma_footer_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text1']; 
				$acx_csma_footer_text1 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text1);
				?>
				<div class="timer_head footer" style="background:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_bgcolor1']; ?>;color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text_color1']; ?>"><?php  echo $acx_csma_footer_text1
				; ?>
				<?php
				if($acx_csma_gdpr_status == "yes" && $acx_csma_privacy_policy_title != "" && $acx_csma_privacy_policy_desc != "")
				{
					?>
					
					| <a class='acx_csma_info_lb' lb_title='<?php echo $acx_csma_privacy_policy_title ;?>' lb_content='<?php echo $acx_csma_privacy_policy_desc ;?>' style='color:<?php  echo $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_footer_text_color1']; ?>;'><?php echo $acx_csma_privacy_policy_title ;?></a>
					<?php
				}
						
				?>
				</div><!-- timer_head  -->
			</div><!-- inline_block -->
		</div><!-- canvas960 -->
	</div><!-- wrapper -->
<script type="text/javascript">
jQuery(document).ready(function() {
  jQuery(window).keydown(function(event){
    if(event.keyCode == 13) {
		<?php
		if($acx_csma_show_subscription == 1)
					{
					?>
acx_csma_validate_email();
return false;
<?php
		}
		?>
    }
  });
});
<?php
if($acx_csma_show_subscription == 1)
{
	$acx_csma_show_subscription_name = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_show_subscription_name'];
	$acx_csma_subscribe_btn_text1 = $acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_subscribe_btn_text1'];
	$acx_name_val_arr=acx_csma_disp_var_to_show("Subscription Name Error Message");
	$acx_name_val_singular=$acx_name_val_arr['singular'];
	$acx_email_val_arr=acx_csma_disp_var_to_show("Subscription Email Error Message");
	$acx_email_val_singular=$acx_email_val_arr['singular'];
	$acx_email_exist_arr=acx_csma_disp_var_to_show("Subscription Email Exists Message");
	$acx_email_singular=$acx_email_exist_arr['singular'];
	$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
	$acx_next_singular=$acx_subs_next_arr['singular'];
?>
var acx_csma_form_status=1;
<?php 
	if($acx_csma_show_subscription_name == 0 && $acx_csma_gdpr_status == "yes")
	{?>
jQuery('#acx_csma_gdpr_accept').attr('checked', false); 
jQuery(".acx_csma_privacy_cvr").show();	
<?php
	}
	?>
function acx_csma_validate_email()
{
	<?php 
	if($acx_csma_show_subscription_name == 0)
	{?>
	
	
	var acx_csma_email = document.getElementById('acx_csma_email').value;
	var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
	if (acx_csma_email=='') 
	{
	   alert('<?php echo $acx_email_val_singular; ?>');
		return false;
	}
	else if (!expr.test(acx_csma_email)) 
	{
		document.getElementById('acx_csma_email').value="";
		jQuery("#acx_csma_invalid").show();
		jQuery("#acx_csma_email").hide();
		jQuery("#acx_csma_submit").hide();
		jQuery(".acx_csma_privacy_cvr").hide();
		setTimeout(function()
			{ 
				jQuery("#acx_csma_invalid").hide();
				jQuery("#acx_csma_email").show();
				jQuery("#acx_csma_submit").show();	
				jQuery('#acx_csma_gdpr_accept').attr('checked', false); 
				jQuery(".acx_csma_privacy_cvr").show();			
			}, 3000);
		
		
		return false;
	}
	else 
	{
		<?php 
			if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
			{
				?>
				if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
				{
					return false;
				}
			<?php
			}
			?>
	var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
	jQuery('body').append(acx_load);
	
	var timestamp =  Math.floor(<?php echo current_time('timestamp'); ?>);
	var ip="<?php  echo $_SERVER['REMOTE_ADDR']; ?>";
	var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
	var order = '&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce('acx_csma_subscribe_es'); ?>';
		jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
		{
			jQuery("#acx_csma_loading").remove();
			if(theResponse == "success")
			{
				document.getElementById('acx_csma_email').value="";
				jQuery("#acx_csma_success").show();
				jQuery("#acx_csma_email").hide();
				jQuery("#acx_csma_submit").hide();
				jQuery(".acx_csma_privacy_cvr").hide();
				setTimeout(function()
				{ 
					jQuery("#acx_csma_success").hide(); 
					jQuery("#acx_csma_email").show();
					jQuery("#acx_csma_submit").show();
					jQuery('#acx_csma_gdpr_accept').attr('checked', false); 
					jQuery(".acx_csma_privacy_cvr").show();
				}, 3000);
			}  
			else{
				document.getElementById('acx_csma_email').value="";
				jQuery("#acx_csma_email").hide();
				jQuery("#acx_csma_submit").hide();
				jQuery("#acx_csma_error").show();
				jQuery(".acx_csma_privacy_cvr").hide();
				jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
				setTimeout(function()
				{ 
					jQuery("#acx_csma_error").html(''); 
					jQuery("#acx_csma_error").hide(); 
					jQuery("#acx_csma_email").show();
					jQuery("#acx_csma_submit").show();
					jQuery('#acx_csma_gdpr_accept').attr('checked', false); 
					jQuery(".acx_csma_privacy_cvr").show();
				}, 3000);
			
			}  
		});
	}
	<?php	
	}
	else
	{
	?>
	var acx_csma_name_hidden=document.getElementById('acx_csma_name_hidden').value;
	if(acx_csma_form_status== 1)
	{
		if(acx_csma_name_hidden=="")
		{
			alert('<?php echo $acx_name_val_singular; ?>');
			acx_csma_form_status=1;
			return false;
		}
		else{
			document.getElementById('acx_csma_name_hidden').type = 'hidden';
			document.getElementById('acx_csma_email').type = 'email';
			jQuery("#acx_csma_email").show();
			document.getElementById('acx_csma_submit').value="<?php echo $acx_csma_subscribe_btn_text1; ?>";
			
			jQuery('#acx_csma_gdpr_accept').attr('checked', false); 
			jQuery(".acx_csma_privacy_cvr").show();	
			acx_csma_form_status=2;
			return false;
		}
	}
	else if(acx_csma_form_status==2)
	{
		var acx_csma_email = document.getElementById('acx_csma_email').value;
		var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (acx_csma_email=='') 
		{
		   alert('<?php echo $acx_email_val_singular; ?>');
			return false;
		}
		else if (!expr.test(acx_csma_email)) 
		{
			document.getElementById('acx_csma_email').value="";
			document.getElementById('acx_csma_name_hidden').value="";
			jQuery("#acx_csma_email").hide();
			jQuery("#acx_csma_submit").hide();
			jQuery("#acx_csma_invalid").show();
			jQuery(".acx_csma_privacy_cvr").hide();	
			setTimeout(function()
				{ 
					jQuery("#acx_csma_invalid").hide(); 
					document.getElementById('acx_csma_name_hidden').type = 'text';
					document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
					jQuery("#acx_csma_submit").show();
					jQuery(".acx_csma_privacy_cvr").hide();	
					acx_csma_form_status=1;
			
				}, 3000);
			return false;
		} 
		else 
		{
			
			<?php 
			if($acx_csma_gdpr_status == "yes" && $acx_csma_form_text != "")
			{
				?>
				if(jQuery("#acx_csma_gdpr_accept:checked").val() !== "yes")
				{
					return false;
				}
			<?php
			}
			?>
			
			var acx_load="<div id='acx_csma_loading'><div class='load_1'></div></div>";
			jQuery('body').append(acx_load);
			
			var timestamp =  Math.floor(<?php echo current_time('timestamp'); ?>);
			var ip="<?php  echo $_SERVER['REMOTE_ADDR']; ?>";
			var acx_csma_ajaxurl ="<?php echo admin_url('admin-ajax.php'); ?>";
			var order = 'name='+acx_csma_name_hidden+'&email='+acx_csma_email+'&ip='+ip+'&timestamp='+timestamp+'&action=acx_csma_subscribe_email'+'&acx_csma_subscribe_es=<?php echo wp_create_nonce('acx_csma_subscribe_es'); ?>';
			jQuery.post(acx_csma_ajaxurl, order, function(theResponse)
			{
				jQuery("#acx_csma_loading").remove();
				if(theResponse == "success")
				{
					document.getElementById('acx_csma_email').value="";
					document.getElementById('acx_csma_name_hidden').value="";
					jQuery("#acx_csma_email").hide();
					jQuery("#acx_csma_submit").hide();
					jQuery(".acx_csma_privacy_cvr").hide();	
					jQuery("#acx_csma_success").show();
					setTimeout(function()
					{ 
						jQuery("#acx_csma_success").hide(); 
						document.getElementById('acx_csma_name_hidden').type = 'text';
						document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
						jQuery("#acx_csma_submit").show();
						acx_csma_form_status=1;
				
					}, 3000);
				}  
				else{
					document.getElementById('acx_csma_email').value="";
					document.getElementById('acx_csma_name_hidden').value="";
					jQuery("#acx_csma_email").hide();
					jQuery("#acx_csma_submit").hide();
					jQuery("#acx_csma_error").show();
					jQuery("#acx_csma_error").html("<?php echo $acx_email_singular; ?>");
					jQuery('#acx_csma_gdpr_accept').attr('checked', false);
					jQuery(".acx_csma_privacy_cvr").show();	
					setTimeout(function()
					{ 
						jQuery("#acx_csma_error").html(''); 
						jQuery("#acx_csma_error").hide(); 
						document.getElementById('acx_csma_name_hidden').type = 'text';
						document.getElementById('acx_csma_submit').value="<?php echo $acx_next_singular; ?>";
						jQuery("#acx_csma_submit").show();
						
						jQuery(".acx_csma_privacy_cvr").hide();	
						acx_csma_form_status=1;
				
					}, 3000);
				}  
			});
		}
	}
<?php
}?>
}
<?php
}
?>
<?php
if($acx_csma_appearence_array_1[$acx_csma_template_id]['acx_csma_show_timer1']==1)
{
	if($acx_csma_timestamp < $acx_csma_date_time)
	{
		?>
var start_date = <?php echo $acx_csma_start_date_time; ?>;
var end_date =<?php echo $acx_csma_date_time; ?>;
var current = Math.floor(<?php echo current_time('timestamp'); ?>);
updateCounter();
function updateCounter()
{
	if(current < end_date)
	{
		current = current+1;
		seconds = (end_date - current);
		
		days = Math.floor(seconds / (60 * 60 * 24)); 
		seconds -= days * 60 * 60 * 24; 
		
		hours = Math.floor(seconds / (60 * 60));
		seconds -= hours * 60 * 60;
		
		minutes = Math.floor(seconds / 60);
		seconds -= minutes * 60;
		for(var i=0;i< seconds.toString().length;i++)
		{
			if(seconds < 2)
			{
				jQuery('#acx_sec_disp').html('<?php echo $acx_sec_singular; ?>');
			}
			else
			{
				jQuery('#acx_sec_disp').html('<?php echo $acx_sec_plural; ?>');
			}	
			if(seconds < 10 && seconds.toString().length == 1 )
			{
				seconds = "0"+seconds;
			}
			if(seconds > 60)
			{
				seconds = 60;
			}
			var res_sec = seconds.toString().charAt(i);
			if(seconds.toString().length == 1)
			{
				var a=i+1;
				document.getElementById("seconds_"+a).innerHTML = res_sec;
			}
			else if(seconds.toString().length == 2)
			{
				document.getElementById("seconds_"+i).innerHTML = res_sec;
			}
		}
		for(var j=0;j< minutes.toString().length;j++)
		{
			if(minutes < 2)
			{
				jQuery('#acx_min_disp').html('<?php echo $acx_minute_singular; ?>');
			}
			else
			{
				jQuery('#acx_min_disp').html('<?php echo $acx_minute_plural; ?>');
			}
			if(minutes < 10 && minutes.toString().length == 1 )
			{
				minutes = "0"+minutes;
			}
			if(minutes > 60)
			{
				minutes = 60;
			}
			var res_min = minutes.toString().charAt(j);
			if(minutes.toString().length == 1)
			{
				var b=j+1;
				document.getElementById("minutes_"+b).innerHTML = res_min;
			}
			else if(minutes.toString().length == 2)
			{
				document.getElementById("minutes_"+j).innerHTML = res_min;
			}
		}
		for(var k=0;k< hours.toString().length;k++)
		{
			if(hours < 2)
			{
				jQuery('#acx_hour_disp').html('<?php echo $acx_hour_singular; ?>');
			}
			else
			{
				jQuery('#acx_hour_disp').html('<?php echo $acx_hour_plural; ?>');
			}
			if(hours < 10 && hours.toString().length == 1 )
			{
				hours = "0"+hours;
			}
			if(hours > 60)
			{
				hours = 60;
			}
			var res_hour = hours.toString().charAt(k);
			if(hours.toString().length == 1)
			{
				var c=k+1;
				document.getElementById("hours_"+c).innerHTML = res_hour;
			}
			else if(hours.toString().length == 2)
			{
				document.getElementById("hours_"+k).innerHTML = res_hour;
			}
		}
		for(var m = 0; m < days.toString().length; m++)
		{
			if(days < 2)
			{
				jQuery('#acx_day_disp').html('<?php echo $acx_day_singular; ?>');
			}
			else
			{
				jQuery('#acx_day_disp').html('<?php echo $acx_day_plural; ?>');
			}
			var res_day = days.toString().charAt(m);
			if(days.toString().length == 1)
			{
				var n=m+2;
				document.getElementById("days_"+n).innerHTML = res_day;
			}
			else if(days.toString().length == 2)
			{
				var n=m+1; 
				document.getElementById("days_"+n).innerHTML = res_day;
			}
			else if(days.toString().length == 3)
			{
				document.getElementById("days_"+m).innerHTML = res_day;
			}  
		}
		setTimeout( function(){ 
			updateCounter(); 
		}, 1000 );
	} 
}
<?php 
	} 
}	
?>
jQuery( ".acx_csma_info_lb" ).click(function() {
	var lb_title = jQuery(this).attr('lb_title');
	var lb_content = jQuery(this).attr('lb_content');
	var html= '<div id="acx_csma_c_icon_p_info_lb_h" style="display:none;"><div class="acx_csma_c_icon_p_info_c"><span class="acx_csma_c_icon_p_info_close" onclick="acx_csma_remove_info()"></span><h4>'+lb_title+'</h4><div class="acx_csma_c_icon_p_info_content">'+lb_content+'</div></div></div> <!-- acx_csma_c_icon_p_info_lb_h -->';
	jQuery( "body" ).append(html)
	jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeIn();
});

function acx_csma_remove_info()
{
	jQuery( "#acx_csma_c_icon_p_info_lb_h" ).fadeOut()
	jQuery( "#acx_csma_c_icon_p_info_lb_h" ).remove();
	var lb_title = "";
	var lb_content = "";
};
</script>
<?php do_action('acx_csma_bottom_inside_body_tag',$acx_csma_template_id); ?>
</body>
</html>