<?php 
// Load saved values in Hermes Theme Options
$hermes_options = hermes_get_global_options(); 
?>

	<?php if ($hermes_options['hermes_footer_contacts_display'] == 1) { ?>
	<div class="wrapper wrapper-footer-contacts">
		<div class="footer-additional">
			<ul class="footer-contact">
				<li class="hermes-contact telephone"><span class="label"><?php echo $hermes_options['hermes_header_contact_telephone_label']; ?></span> <span class="value"><?php echo $hermes_options['hermes_header_contact_telephone_value']; ?></span><span class="divider">&middot;</span></li>
				<li class="hermes-contact address"><span class="label"><?php echo $hermes_options['hermes_header_contact_address_value']; ?></span><span class="divider">&middot;</span></li>
				<?php if (isset($hermes_options['hermes_header_contact_email_value'])) { ?><li class="hermes-contact email"><span class="value"><a href="mailto:<?php echo $hermes_options['hermes_header_contact_email_value']; ?>"><?php echo $hermes_options['hermes_header_contact_email_value']; ?></a></span></li><?php } ?>
			</ul><!-- end .header-contact -->
		</div><!-- end .footer-additional -->
	</div><!-- end .wrapper -->
	<?php } ?>

	<footer>
	
		<div class="wrapper">

			<?php if ($hermes_options['hermes_footer_sidebars_display'] == 1) { ?>

			<div class="column column-narrow">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer: Column 1') ) : ?> <?php endif; ?>
				<div class="cleaner">&nbsp;</div>
			</div><!-- end .column -->
			
			<div class="column column-narrow">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer: Column 2') ) : ?> <?php endif; ?>
				<div class="cleaner">&nbsp;</div>
			</div><!-- end .column -->
			
			<div class="column column-narrow">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer: Column 3') ) : ?> <?php endif; ?>
				<div class="cleaner">&nbsp;</div>
			</div><!-- end .column -->

			<div class="column column-wide column-last">
				
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer: Column 4') ) : ?> <?php endif; ?>

				<div class="cleaner">&nbsp;</div>

			</div><!-- end .column .column-wide -->
			
			<div class="cleaner">&nbsp;</div>
			<div class="divider"></div>
			
			<?php } ?>

			<?php if ($hermes_options['hermes_misc_credit'] == 1) { ?>
			<p class="hermes-credit"><?php _e('Designed by', 'hermes_textdomain'); ?> <a href="http://www.hermesthemes.com" target="_blank" title="Hotel WordPress Themes">HermesThemes</a></p>
			<?php } ?>
			<?php $copyright_default = __('Copyright &copy; ','hermes_textdomain') . date("Y",time()) . ' ' . get_bloginfo('name') . '. ' . __('All Rights Reserved', 'hermes_textdomain'); ?>
			<p class="copy"><?php echo get_theme_mod( 'hermes_copyright_text', $copyright_default ); ?></p>

		</div><!-- end .wrapper -->
	
	</footer>

</div><!-- end #container -->

<?php 
wp_footer(); 
wp_reset_query();
if (is_singular()) { ?>
	<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
	<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
	<?php } ?>
	
	<?php print(stripslashes($hermes_options['hermes_script_footer'])); ?>
</body>
</html>