<?php
/**
 * Элемент лендинга.
 * Подвал для Гугл карты
 * 
 *
 * @author veselka.ua
 * @version 0.1
 *
 * @package veselka_ua/veselka_landing
 */

?>

	<div id="landing-footer" class="slave-slide scroll-section clearfix white-slide">
	<?php require_once LANDING_PATH . '/view/btn-scrollup.php'; ?>
		<div class="content-wrapper">
			<div class="container">
				<div class="row">
					<div class="col-sm-12 footer-pills-wrapper text-center">
						<?php require_once TEMPLATEPATH . '/view/navbar/top-pills.php'; ?>
					</div>
					<div class="col-sm-12">
					<?php if( file_exists(TEMPLATEPATH.'/assets/img/sprite/logo_footer.svg') ) { ?>
						<div id="sprite">
							<a id="sprite-logo" class="sprite-img" href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>"><span></span></a>
						</div><!-- /#sprite -->
					<?php } else { ?>
						<div class="col-sm-4 col-sm-offset-4 col-md-4 col-md-offset-4">
							<?php if( get_post_meta($post_id, 'logo_link', true) != '' ) { ?>
							<a href="<?php echo get_post_meta($post_id, 'logo_link', true); ?>" title="<?php echo get_post_meta($post_id, 'logo_title', true)!=''?get_post_meta($post_id, 'logo_title', true):get_bloginfo('name') . ' - ' . get_bloginfo('description'); ?>">
								<img class="img-responsive center-block" src="<?php echo TEMPLATE_URL; ?>/assets/img/logo.svg" alt="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>">
							</a>
							<?php } else { ?>
							<img class="img-responsive center-block" src="<?php echo TEMPLATE_URL; ?>/assets/img/logo.svg" alt="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>">
							<?php } ?>
						</div>
					<?php } ?>
					</div>

					<?php if( has_action( 'social_networks_footer' ) ) { ?>
					<div class="col-sm-12 text-center">
						<?php do_action( 'social_networks_footer' ); ?>
					</div>
					<?php } ?>

					<?php if( $footer_slogan != '') { ?>
					<div class="col-sm-12 text-center">
						<span class="text-muted">
							<?php echo $footer_slogan; ?>
						</span>
					<?php if( has_action('post_star_rating') ) { ?>
						<?php do_action('post_star_rating'); ?>
					<?php } ?>
					</div>
					<?php }	?>

				</div><!-- /.row -->
			</div><!-- /.container -->
		</div><!-- /.content-wrapper -->
	</div><!-- #landing-footer -->
