<?php
/**
 * The template for displaying the footer
 *
 * Contains footer content and the closing of the #main and #page div elements.
 *
 * @package Krown
 * @subpackage Krown
 * @since Krown 1.0
 */
?>

			<?php
			global $tlazya_krwn; 
			if (isset($tlazya_krwn['map_switch']) && $tlazya_krwn['map_switch'] == 1 ) {
			?>
			<!-- #map -->
			<section id="map" class="section" style="height:700px;">
				<?php
					global $tlazya_krwn;
					if (isset($tlazya_krwn['map_title']) && $tlazya_krwn['map_title'] != '') {
						echo '<header class="header-section style-2"><h2>'.esc_attr($tlazya_krwn['map_title']).'</h2></header>' ;
					}
				?>
				<div id="gmap" class="map" style="width: 100%; height: 100%;"></div>
				<?php
				global $tlazya_krwn;
				$glat = $tlazya_krwn['map_lat'];
				$glng = $tlazya_krwn['map_lng'];
				$gzoom = $tlazya_krwn['map_zoom'];
				//$gurl = $tlazya_krwn['markar_url']['url'];
				$gct1 = $tlazya_krwn['map_marker_title'];
				$gct2 = $tlazya_krwn['map_marker_content'];
				if ((isset($tlazya_krwn['map_lat']) && $tlazya_krwn['map_lat'] != '') && (isset($tlazya_krwn['map_lng']) && $tlazya_krwn['map_lng'] != '')) {
					?>
					<?php
						if (isset($tlazya_krwn['markar_url']['url']) && $tlazya_krwn['markar_url']['url'] != '') {
					?>
					<?php echo do_shortcode('[rms-googlemap lat="' . esc_attr($glat) . '" lng="'.esc_attr($glng).'" icon="'.esc_url($tlazya_krwn['markar_url']['url']).'" zoom="'.esc_attr($gzoom).'" contents="'.esc_html($gct1).'" contents2="'.esc_html($gct2).'"]'); ?>
					<?php } ?>
					<?php
				} else {
					?>
					<?php echo do_shortcode('[rms-googlemap lat="23.835027" lng="90.368574" icon="'.get_template_directory_uri().'/img/map.png'.'" zoom="16" contents="ThemeonLab" contents2="Quality Template Provide"]'); ?>
				<?php } ?>  
				<div class="white-space-100"></div>
			</section>
			<!-- / #map -->
			<?php
			}
			elseif (isset($tlazya_krwn['map_switch']) && $tlazya_krwn['map_switch'] == 0 ) 
			{
			?>
			<?php
			}
			else 
			{
			?>
			<!-- #map -->
			<section id="map" class="section" style="height:700px;">
				<header class="header-section style-2">
					<h2>You can find us here</h2>
				</header>
				<div id="gmap" class="map" style="width: 100%; height: 100%;"></div>
				<?php
				global $tlazya_krwn;
				$glat = $tlazya_krwn['map_lat'];
				$glng = $tlazya_krwn['map_lng'];
				$gzoom = $tlazya_krwn['map_zoom'];
				//$gurl = $tlazya_krwn['markar_url']['url'];
				$gct1 = $tlazya_krwn['map_marker_title'];
				$gct2 = $tlazya_krwn['map_marker_content'];
				if ((isset($tlazya_krwn['map_lat']) && $tlazya_krwn['map_lat'] != '') && (isset($tlazya_krwn['map_lng']) && $tlazya_krwn['map_lng'] != '')) {
					?>
					<?php
						if (isset($tlazya_krwn['markar_url']['url']) && $tlazya_krwn['markar_url']['url'] != '') {
					?>
					<?php echo do_shortcode('[rms-googlemap lat="' . esc_attr($glat) . '" lng="'.esc_attr($glng).'" icon="'.esc_url($tlazya_krwn['markar_url']['url']).'" zoom="'.esc_attr($gzoom).'" contents="'.esc_html($gct1).'" contents2="'.esc_html($gct2).'"]'); ?>
					<?php } ?>  
					<?php
				} else {
					?>
					<?php echo do_shortcode('[rms-googlemap lat="23.835027" lng="90.368574" icon="'.get_template_directory_uri().'/img/map.png'.'" zoom="16" contents="ThemeonLab" contents2="Quality Template Provide"]'); ?>
				<?php } ?>  
				<div class="white-space-100"></div>
			</section>
			<!-- / #map -->
			<?php } ?>
			<!--Go Top -->
			<div id="toTop" class="scrollup"><a href="#"><i class="fa fa-angle-double-up fa-lg"></i></a></div>
			<!-- #footer -->
			<footer class="section" id="footer-wrap">
				<div class="container">

					<div class="row text-center">
						<div class="logo">
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
							<?php
								global $tlazya_krwn;
								if (isset($tlazya_krwn['inner_url']['url']) && $tlazya_krwn['inner_url']['url'] != '') {
							?>
								<img style="width: 250px;" src="<?php echo esc_url($tlazya_krwn['inner_url']['url']); ?>" alt="Krwn logo">
							<?php 
								} 
								else { ?>
								<img style="width: 250px;" src="<?php echo get_template_directory_uri(); ?>/assets/images/logo-footer.png" alt="Krwn logo">
							<?php } ?>
							</a>
						</div>
					</div>

					<div class="row">

						<div class="col-md-6">
							<?php
							global $tlazya_krwn;
							if (isset($tlazya_krwn['title_info']) && $tlazya_krwn['title_info'] != '') {
								echo '<h3 class="footer-title">' . esc_attr($tlazya_krwn['title_info']) . '</h3>';
							}
							?>

							<div class="contact-info">
								<?php
								global $tlazya_krwn;
								if (isset($tlazya_krwn['contact_content']) && $tlazya_krwn['contact_content'] != '') {
									echo '<p>'.esc_attr($tlazya_krwn['contact_content']).'</p>';
								}
								?>
								<address>
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['address_info']) && $tlazya_krwn['address_info'] != '') {
										echo esc_attr($tlazya_krwn['address_info']) ;
									}
									?><br>
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['mail_info']) && $tlazya_krwn['mail_info'] != '') {
										echo '<a href="mailto:' . esc_attr($tlazya_krwn['mail_info']) . '" title="contact mail">' . esc_attr($tlazya_krwn['mail_info']) . '</a><br>';
									}
									?>
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['website_link']) && $tlazya_krwn['website_link'] != '') {
										echo '<a href="' . esc_attr($tlazya_krwn['website_link']) . '">' . esc_attr($tlazya_krwn['website_link']) . '</a><br>';
									}
									?>
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['phone_info']) && $tlazya_krwn['phone_info'] != '') {
										echo '<abbr title="Phone">P:</abbr> ' . esc_attr($tlazya_krwn['phone_info']) . '';
									}
									?>
								</address>
								
							</div>

							<div class="social">
								<p>
								<?php
								global $tlazya_krwn;
								if (isset($tlazya_krwn['footer_copyright']) && $tlazya_krwn['footer_copyright'] != '') {
									echo $tlazya_krwn['footer_copyright'];
								}
								?>
								</p>
								<ul>
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['twitter_url']) && $tlazya_krwn['twitter_url'] != '') {
									?>
									<li><a href="<?php echo esc_url($tlazya_krwn['twitter_url']); ?>" title="Twitter"><i class="fa fa-twitter"></i></a></li>
									<?php } ?> 
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['linkedin_url']) && $tlazya_krwn['linkedin_url'] != '') {
									?>
									<li><a href="<?php echo esc_url($tlazya_krwn['linkedin_url']); ?>" title="Linkedin"><i class="fa fa-linkedin"></i></a></li>
									<?php } ?> 
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['facebook_url']) && $tlazya_krwn['facebook_url'] != '') {
									?>
									<li><a href="<?php echo esc_url($tlazya_krwn['facebook_url']); ?>" title="Facebook"><i class="fa fa-facebook"></i></a></li>
									<?php } ?> 
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['google_url']) && $tlazya_krwn['google_url'] != '') {
									?>
									<li><a href="<?php echo esc_url($tlazya_krwn['google_url']); ?>" title="Google plus"><i class="fa fa-google-plus"></i></a></li>
									<?php } ?> 
									<?php
									global $tlazya_krwn;
									if (isset($tlazya_krwn['pin_url']) && $tlazya_krwn['pin_url'] != '') {
									?>
									<li><a href="<?php echo esc_url($tlazya_krwn['pin_url']); ?>" title="Pinterest"><i class="fa fa-pinterest"></i></a></li>
									<?php } ?> 
								</ul>
							</div>							

						</div>

						<div class="col-md-6">
							<?php
							global $tlazya_krwn;
							if (isset($tlazya_krwn['contacts_title']) && $tlazya_krwn['contacts_title'] != '') {
								echo '<h3 class="footer-title">'.esc_html($tlazya_krwn['contacts_title']).'</h3>';
							}
							?>
							<?php
							global $tlazya_krwn;
							if (isset($tlazya_krwn['contacts_content']) && $tlazya_krwn['contacts_content'] != '') {
								echo '<p>'.$tlazya_krwn['contacts_content'].'</p><br>';
							}
							?>
							<?php
								global $tlazya_krwn;
								if ((isset($tlazya_krwn['contact_form_id']) && $tlazya_krwn['contact_form_id'] != '') && (isset($tlazya_krwn['contact_form_title']) && $tlazya_krwn['contact_form_title'] != '')){
									echo do_shortcode('[contact-form-7 id="'.esc_attr($tlazya_krwn['contact_form_id']).'" title="'.esc_attr($tlazya_krwn['contact_form_title']).'"]');
								}
							?>	

						</div>						

					</div>

				</div>
			</footer>
			<!-- / #footer -->
		</div>
		<!-- / #wrap -->
		<?php wp_footer(); ?>
	</body>
	<link rel="canonical" href="http://www.20script.ir" />
</html>