<?php
$acx_csma_template_id = 3;
do_action('acx_csma_above_template_html',$acx_csma_template_id);
$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_appearence_array_3=acx_csma_get_db_array_value(); 
$acx_csma_start_date_time=get_option('acx_csma_start_date_time');
$acx_csma_date_time=get_option('acx_csma_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_3[$acx_csma_template_id]['acx_csma_custom_css_temp3']; ?>

.submit:hover
{
	color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_hover_color3']; ?>;
	background:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_hover_bgcolor3']; ?>;
}
.submit
{
	background:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_color3']; ?>;
	color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_text_color3']; ?>;
}
body
{
	background: none repeat scroll 0 0 <?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_primary_color3']; ?>;	
}
.acx_sq_001 {
  background: <?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_secondary_color3']; ?> none repeat scroll 0 0;
}
.form_holder {
	 background: <?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_left_bar_color3']; ?>;
}
.timer_box ul li
{
	 background: <?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_color3']; ?> none repeat scroll 0 0;
}
.acx_csma_gdpr_notice .acx_csma_info_lb:hover
{
	color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_gdpr_hovercolor3']; ?> !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>
<script src="<?php echo plugins_url('js/jquery.nicescroll.min.js', __FILE__); ?>"></script>
<?php echo stripslashes(get_option('acx_csma_ga_trakng_code')); 
do_action('acx_csma_bottom_inside_head_tag',$acx_csma_template_id);
?>
</head>
<body>
<?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_3[$acx_csma_template_id]))
{
	if($acx_csma_appearence_array_3[$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 <?php echo $new_class; ?>">
	<div class="scmi"> 
	<div class="canvas960"> 
				<ul>
				
					<li>
					<?php if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_fb_link3'] != "" || $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_twitter_link3'] != "" || $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_linkedin_link3'] != "")
					{ ?>
					<p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_social_link_title_color3']; ?>"><?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_social_link_title3']; ?></p>
					<?php } ?>
					</li>
					<?php 
					
					if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_fb_link3']!="")
					{
					?>
					<li><a class="acx_csma_social_icons csma_fb" href="<?php echo esc_url($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_fb_link3']); ?>"><img src="<?php echo plugins_url('images/facebook.png', __FILE__); ?>" alt="Logo"></a></li>
					<?php
					}
					if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_twitter_link3']!="")
					{
					?>
					<li><a class="acx_csma_social_icons csma_twtr" href="<?php echo esc_url($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_twitter_link3']); ?>"><img src="<?php echo plugins_url('images/twitter.png', __FILE__); ?>" alt="Logo"></a></li>
					<?php
					}
					if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_linkedin_link3']!="")
					{
					?>
					<li><a class="acx_csma_social_icons csma_lnkn" href="<?php echo esc_url($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_linkedin_link3']); ?>"><img src="<?php echo plugins_url('images/linkedin.png', __FILE__); ?>" alt="Logo"></a></li>
					<?php
					}
				
				?>
					
				</ul>
				</div><!-- canvas960 -->
				</div><!-- scmi -->
<div class="acx_aditnl_wrap" style="background-color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_secondary_color3']; ?>;">	
		<div class="canvas960"> 
			<div class="inline_block"> 
				<div class="inline_block form_holder"> 
					<div class="header">
					<div class="acx_header_top_sq">
					<div class="acx_header_sq_in">
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						</div> <!-- acx_header_sq_in -->
					</div> <!-- acx_header_top_sq -->
					
					<?php if(array_key_exists('acx_csma_logo_choice',$acx_csma_appearence_array_3[$acx_csma_template_id])){ if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_choice']=="image" || $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_choice']==""){ 
					$acx_csma_logo3_id = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo3'];
					$logo3_url  = $acx_csma_logo3_id;
					if(is_numeric($acx_csma_logo3_id))
					{
						$logo3_attachment_url = parse_url( wp_get_attachment_url($acx_csma_logo3_id) );
						$logo3_url    = $logo3_attachment_url [ 'scheme' ]  . '://' .rawurlencode( basename( $logo3_attachment_url[ 'host' ])). $logo3_attachment_url[ 'path' ];
					}
					?>
					<div id="acx_csma_temp3_img_cvr">
			<img src="<?php echo $logo3_url; ?>" alt="Logo"></div>
			<?php } else if($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_choice']=="text"){
				$acx_csma_logo_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_text3'];
				$acx_csma_logo_text3 = acx_csma_text_after_save_hook_fn($acx_csma_logo_text3);
				?>
				<div class="logo_text" style="color:<?php  echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_logo_text_color3']; ?>"><?php echo $acx_csma_logo_text3; ?></div>
					<?php } } ?>
					</div><!-- header  -->
					<div class="form"> 
					<?php 	
					$acx_csma_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_title3'];
					$acx_csma_title3 = acx_csma_text_after_save_hook_fn($acx_csma_title3);
					$acx_csma_subtitle_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subtitle_text3'];
					$acx_csma_subtitle_text3 = acx_csma_text_after_save_hook_fn($acx_csma_subtitle_text3);
					?>
					<h2 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_title_color3']; ?>"><span style="font-size:74px; color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subtitle_color3']; ?>"><strong><?php echo $acx_csma_title3; ?></strong></span><br><?php echo $acx_csma_subtitle_text3; ?></h2>
					
					<?php
					$acx_csma_show_subscription3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_subscription3'];
					if($acx_csma_show_subscription3 == 1)
					{
						$acx_csma_show_subscription_name3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_subscription_name3'];
						$acx_csma_subscribe_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_title3'];
						$acx_csma_subscribe_title3 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_title3);
						$acx_csma_subscribe_success3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_success3'];
						$acx_csma_subscribe_success3 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_success3);
						$acx_csma_subscribe_invalid3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_invalid3'];
						$acx_csma_subscribe_invalid3 = acx_csma_text_after_save_hook_fn($acx_csma_subscribe_invalid3);
						$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
						$acx_next_singular=$acx_subs_next_arr['singular'];
						$acx_subs_name_arr=acx_csma_disp_var_to_show("Subscription Name Placeholder");
						$acx_s_name_singular=$acx_subs_name_arr['singular'];
						$acx_subs_email_arr=acx_csma_disp_var_to_show("Subscription Email Placeholder");
						$acx_s_email_singular=$acx_subs_email_arr['singular'];
						?>
					<h4 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_title_color3']; ?>"><?php echo $acx_csma_subscribe_title3; ?></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_success3; ?></div>
					<div id="acx_csma_invalid" name="acx_csma_invalid" style="display:none;" ><?php echo $acx_csma_subscribe_invalid3; ?></div>
					<div id="acx_csma_error" style="display:none;"></div>
					<?php
					if($acx_csma_show_subscription_name3 == 0)
					{
					?>
					
					<input type="text" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($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_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3']; ?>;'>
						<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_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3'];?>;'>
							<?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" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_text3']); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();"  class="submit">
					<?php }
					else if($acx_csma_show_subscription_name3 == 1){ ?>
					<input type="text" id="acx_csma_name_hidden" name="acx_csma_name_hidden" value="" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($acx_s_name_singular); ?>"/>
					
					<input type="hidden" id="acx_csma_email" name="email" placeholder="<?php echo acx_csma_option_text_after_save_hook_fn($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_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3']; ?>;'>
						<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_3[$acx_csma_template_id]['acx_csma_footer_gdprcolor3'];?>'>
							<?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" value="<?php echo acx_csma_option_text_after_save_hook_fn($acx_next_singular); ?>" id="acx_csma_submit" onclick="acx_csma_validate_email();"  class="submit">
					<?php
					}
					?>
					</form>
					<?php
					}
					?>
					
					</div><!-- form -->
				
					<div class="acx_header_bottom_sq">
					<div class="acx_header_sq_in">
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						<span class="acx_sq_001"></span>
						</div> <!-- acx_header_sq_in -->
					</div> <!-- acx_header_bottom_sq -->
					
				</div><!-- form_holder -->		
				<div class="inline_block timer_holder"> 
			<?php
			$acx_csma_custom_html_top_timer_temp3=$acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_custom_html_top_timer_temp3'];
			if($acx_csma_custom_html_top_timer_temp3 != "")
			{
				?>
				<div class="acx_csma_content_div acx_csma_top acx_csma_top_3"  id="acx_csma_top_1">
			<?php echo $acx_csma_custom_html_top_timer_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_timer_temp3);
			?>
			</div>
				
				<?php
			}
			if($acx_csma_custom_html_top_timer_temp3 == "")
			{
				$acx_class= "margin-top:30px;";
			}
			else
			{
				$acx_class= "";
			}
			$acx_csma_show_timer3=$acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_timer3'];
			if($acx_csma_show_timer3 == 1)
			{	
				$acx_csma_inside_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_inside_title3'];
				$acx_csma_inside_title3 = acx_csma_text_after_save_hook_fn($acx_csma_inside_title3);
				$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 id="acx_timer_heading" style="<?php echo $acx_class; ?>"><h3 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_inside_title_color3']; ?>"><?php echo $acx_csma_inside_title3; ?></h3></div>
					<div class="timer_box days"> 
						<ul>
							<li id="days" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">000 </li><li id="acx_day_disp" class="day_text" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_day_singular); ?></li>
						</ul>
					</div><!-- timer_box -->
					<div class="timer_box"> 
						<ul style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">
							<li id="hours_0">0</li>
							<li id="hours_1">0</li>
						</ul>
						<p id="acx_hour_disp" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_hour_singular); ?></p>
					</div><!-- timer_box -->	
					<div class="timer_box"> 
						<ul style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">
							<li id="minutes_0">0</li>
							<li id="minutes_1">0</li>
						</ul>
						<p id="acx_min_disp" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_minute_singular); ?></p>						
					</div><!-- timer_box -->
					<div class="timer_box last_one"> 
						<ul style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_iptext_color3']; ?>">
							<li id="seconds_0">0</li>
							<li id="seconds_1">0</li>
						</ul>
						<p id="acx_sec_disp" style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_timer_head_color3']; ?>"><?php echo acx_csma_text_after_save_hook_fn($acx_sec_singular); ?></p>						
					</div><!-- timer_box -->	

					<div class="clearfix" style="clear:both;"></div>
					<?php
					}
					?>
				<div class="inline_block text_box"> 
				
				<?php
				$acx_csma_custom_html_top_temp3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_custom_html_top_temp3'];
				if($acx_csma_custom_html_top_temp3 != "") { ?>
				<div class="acx_csma_content_div acx_csma_top acx_csma_top_3"  id="acx_csma_top_1">
				<?php 
				$acx_csma_custom_html_top_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_top_temp3);
				echo $acx_csma_custom_html_top_temp3; ?>
				</div>
				<?php } ?>
					<h5 style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_text_color3']; ?>"><?php 
						$acx_csma_desc_title3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_title3'];
						$acx_csma_desc_title3 = acx_csma_text_after_save_hook_fn($acx_csma_desc_title3);	
					echo $acx_csma_desc_title3; ?></h5>
					<?php $acx_csma_desc_content_color3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_content_color3'];
					?>
					<p style="color:<?php echo $acx_csma_desc_content_color3 ;?>;"> <?php 
					$acx_csma_desc_subtitle3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_desc_subtitle3'];
					$acx_csma_desc_subtitle3 = acx_csma_textarea_after_save_hook_function($acx_csma_desc_subtitle3);
					echo $acx_csma_desc_subtitle3; ?></p>
				</div><!-- inline_block -->						
					<?php
				$acx_csma_custom_html_bottom_temp3=$acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_custom_html_bottom_temp3'];
				if($acx_csma_custom_html_bottom_temp3 != "")
				{
					?>
					
					<div class="acx_csma_content_div acx_csma_top acx_csma_top_3"  id="acx_csma_top_1">
				<?php echo $acx_csma_custom_html_bottom_temp3 = acx_csma_custom_html_after_save_hook_fn($acx_csma_custom_html_bottom_temp3); ?>
				</div>
					
					<?php
				}
?>	
				</div><!-- timer_holder -->
				
		</div><!-- inline_block -->

		</div><!-- canvas960 -->
		</div> <!-- acx_aditnl_wrap -->
	</div><!-- wrapper -->
	
	<div class="footer"> <p style="color:<?php echo $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_color3']; ?>"><?php 
	$acx_csma_footer_text3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_footer_text3'];
	$acx_csma_footer_text3 = acx_csma_text_after_save_hook_fn($acx_csma_footer_text3);
	echo $acx_csma_footer_text3; 	
	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_3[$acx_csma_template_id]['acx_csma_footer_color3']; ?>;'><?php echo $acx_csma_privacy_policy_title ;?></a>
		<?php
	}?></p> 
	
	</div><!-- footer -->

<script type="text/javascript">
jQuery(document).ready(function() {
	//nice scroll
		jQuery('.text_box').niceScroll({cursorcolor:'#111',preservenativescrolling: false,cursoropacitymax:0.7,boxzoom:false,touchbehavior:true,grabcursorenabled: false});//scrollable DIV 
});

jQuery(document).ready(function() {
  jQuery(window).keydown(function(event){
    if(event.keyCode == 13) {
<?php
if($acx_csma_show_subscription3 == 1)
{
?>
acx_csma_validate_email();
return false;
<?php }?>
    }
  });
});
<?php
if($acx_csma_show_subscription3 == 1)
{
	$acx_csma_show_subscription_name3 = $acx_csma_appearence_array_3[$acx_csma_template_id]['acx_csma_show_subscription_name3'];
	$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_exist_arr=acx_csma_disp_var_to_show("Subscription Email Exists Message");
	$acx_email_singular=$acx_email_exist_arr['singular'];
	$acx_email_val_singular=$acx_email_val_arr['singular'];
	$acx_subs_next_arr=acx_csma_disp_var_to_show("next");
	$acx_next_singular=$acx_subs_next_arr['singular'];
?>
<?php 
	if($acx_csma_show_subscription_name3 == 0 && $acx_csma_gdpr_status == "yes")
	{?>
jQuery('#acx_csma_gdpr_accept').attr('checked', false); 
jQuery(".acx_csma_privacy_cvr").show();	
<?php
	}
	?>

var acx_csma_form_status=1;
function acx_csma_validate_email()
{
	<?php 
	if($acx_csma_show_subscription_name3 == 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_appearence_array_3[$acx_csma_template_id]['acx_csma_subscribe_btn_text3']; ?>";
		
			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_gdpr_accept').attr('checked', false);
				jQuery(".acx_csma_privacy_cvr").show();	
				jQuery("#acx_csma_error").html("<?php echo $acx_email_singular ;?>");
				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
}
if($acx_csma_show_timer3 == 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)
	   {
			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)
	   {
			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)
	   {
			c=k+1;
			document.getElementById("hours_"+c).innerHTML = res_hour;
	   }
	   else if(hours.toString().length == 2)
	   {
			document.getElementById("hours_"+k).innerHTML = res_hour;
	   }
	}

   document.getElementById("days").innerHTML = days;
   if(days < 2)
	{
		jQuery('#acx_day_disp').html('<?php echo $acx_day_singular; ?>');
	}
	else
	{
		jQuery('#acx_day_disp').html('<?php echo $acx_day_plural; ?>');
	}
	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>