<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: tpl_footer.php 3371 2006-04-04 04:59:46Z ajeh $
//

  // this file can be copied to /templates/your_template_dir/pagename
  // example: to override the privacy page
  // make a directory /templates/my_template/privacy
  // copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php
  // to override the global settings and turn off the footer un-comment the following line:

  // $flag_disable_footer = true;
require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));

if (!isset($flag_disable_footer) || $flag_disable_footer == false) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr> 
<td align="center"><?php echo zen_display_banner('static', $banner); ?><br> <br> 
</td>
</tr>
<tr>
<td align="center">
<!--bof-optional categories tabs navigation display-->
<?php
if (CATEGORIES_TABS_STATUS == '1') {
  require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php');
}
?>
<!--eof-optional categories tabs navigation display-->
</td>
</tr>
</table>
    
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="includes/templates/purpleshades/images/footer_bg.gif">
<!--bof-EZ-Pages footer display -->
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<tr align="center"> 
<td height="20" colspan="2"> 
<?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
</td>
</tr>
<?php } ?>
<!--eof-EZ-Pages footer display -->
<?php
if (SHOW_FOOTER_IP == '1') {
?>
<?php
}
?>
<?php
  if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
    if ($banner->RecordCount() > 0) {
?>
<?php
    }
  }
?>
<tr> 
<td width="516" rowspan="2">&nbsp;|&nbsp;<a href="<?php echo zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>&nbsp;|&nbsp;</td>
<td width="510" height="36"><div align="right"><?php echo TEXT_YOUR_IP_ADDRESS . '  ' . $_SERVER['REMOTE_ADDR']; ?></div></td>
</tr>
<tr> 
<td height="20" valign="middle"> 
<div align="right"><?php echo FOOTER_TEXT_BODY; ?>&nbsp;&nbsp;</div></td>
</tr>
</table>
</td></tr>
<?php
} // flag_disable_footer
?></table>
