<?php
/**
 * Common Template - tpl_footer.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_footer = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2010 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_footer.php 15511 2010-02-18 07:19:44Z drbyte $
 */
require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
?>

<?php if (!isset($flag_disable_footer) || !$flag_disable_footer) : ?>
<footer class="site-footer">
<?php if( zen_not_null( $genesis_options['mailchimp_footer'] ) ) : ?>
	<div class="mailchimp-footer">
		<form action="<?php echo $genesis_options['mailchimp_action_url']; ?>?u=<?php echo $genesis_options['mailchimp_u']; ?>&amp;id=<?php echo $genesis_options['mailchimp_id']; ?>" method="post" target="_blank">
		  <input class="email" type="email" name="EMAIL" placeholder="<?php echo TEXT_MAILCHIMP_EMAIL; ?>" />
		  <input type="hidden" name="EMAILTYPE" value="html" />
		  <input class="button" type="submit" value="<?php echo TEXT_MAILCHIMP_SUBSCRIBE; ?>" name="submit" />
		</form>
	</div>
<?php endif; ?>
	<div class="top-footer">
	 	<div class="inner-container">
			<div class="row">
				<div class="footer-column-one footer-module col-md-3 col-xs-6">
					<?php if( zen_not_null( $genesis_options['footer_module_one'] ) ){
						require(DIR_WS_MODULES . '/footer/genesis/' . $genesis_options['footer_module_one'] . '.php'); 
					}else{
						//require(DIR_WS_MODULES . '/footer/genesis/about.php'); 
					}	?>
				</div>
				<div class="footer-column-two footer-module col-md-3 col-xs-6">
					<?php if( zen_not_null( $genesis_options['footer_module_two'] ) ){
						require(DIR_WS_MODULES . '/footer/genesis/' . $genesis_options['footer_module_two'] . '.php'); 
					}else{
						//require(DIR_WS_MODULES . '/footer/genesis/ezpages.php'); 
					}	?>
				</div>
				<div class="footer-column-three footer-module col-md-3 col-xs-6">
					<?php if( zen_not_null( $genesis_options['footer_module_three'] ) ){
						require(DIR_WS_MODULES . '/footer/genesis/' . $genesis_options['footer_module_three'] . '.php'); 
					}else{
						//require(DIR_WS_MODULES . '/footer/genesis/social.php'); 
					}	?>
				</div>
				<div class="footer-column-four footer-module col-md-3 col-xs-6">
					<?php if( zen_not_null( $genesis_options['footer_module_four'] ) ){
						require(DIR_WS_MODULES . '/footer/genesis/' . $genesis_options['footer_module_four'] . '.php'); 
					}else{
						//require(DIR_WS_MODULES . '/footer/genesis/featured.php'); 
					}	?>
				</div>
			</div>
		</div>
	</div>
	<div class="bottom-footer">
		<div class="inner-container">
			<div class="row">
				<div class="copyright-footer col-md-6">
					<?php if( zen_not_null( $genesis_options['site_footer_text'] ) ){
						echo htmlspecialchars_decode($genesis_options['site_footer_text']);
					}else{
						echo FOOTER_TEXT_BODY;
					} ?>
				</div>
				<div class="payment-footer col-md-6 text-right">
					<?php if( zen_not_null( $genesis_options['site_payment_logo_url'] ) ) : ?>
						<img class="img-responsive" src="<?php echo $genesis_options['site_payment_logo_url']; ?>" alt="Payment Options">
					<?php else : ?>
						<img class="img-responsive" src="<?php echo DIR_WS_IMAGES . '/genesis/genesis_payment_color.png'; ?>" alt="Payment Options">
						
					<?php endif; ?>
				</div>
			</div>
		</div>
	</div>
</footer>
<?php endif; ?>
