<?php
/**
 * Avalanche for Magento 1.8+
 * Designed by Fast Division (http://fastdivision.com)
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file license.txt.
 * It is also available through the world-wide-web at this URL:
 * http://fastdivision.com/legal/license.txt
 *
 * @author     Fast Division
 * @version    1.5.0
 * @copyright  Copyright 2013 Fast Division
 * @license    http://fastdivision.com/legal/license.txt
 */
?>
		<footer>
			<?php echo $this->getChildHtml('newsletter') ?>
			<div id="footer-container" class="clearfix">
				<div id="site-map" class="grid_6 alpha clearfix">
					<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_links')->toHtml() ?> 
				</div>
				<div class="grid_3">
					<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('footer_box')->toHtml() ?>
				</div>
				<div class="grid_3 omega">
					<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('social_media')->toHtml() ?>
				</div>
				<div id="bottom">
					<div id="copyright">
						<span><?php echo str_replace('[[year]]', date('Y'), Mage::getStoreConfig('avalanche_config/avalanche_footer/avalanche_copyright')) ?></span><br>
						<?php if(Mage::getStoreConfig('avalanche_config/avalanche_footer/avalanche_fd_credit') == 1): ?>
						<span id="fast-division"><?php echo $this->__('Designed by') ?> <a href="http://fastdivision.com"><?php echo $this->__('Fast Division') ?></a></span>
						<?php endif; ?>
						<?php echo $this->getChildHtml('mobile-switch', false) ?>
					</div>
				</div>
			</div>
			<a class="top ir hideTop" href="#" title="Back to Top">Top</a>
		</footer>