/** require the html_define for the index/categories page */
        include $define_page;
        ?>
</div>
<?php 
    }
    ?>

<?php 
} else {
    ?>
<div class='page-header clearfix'>
  <?php 
    if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true') {
        // Render the Category's Image
        if ($categories_image = zen_get_categories_image($current_category_id)) {
            ?>
      <div id="categoryImgListing" class="categoryImg pull-left">
        <?php 
            echo zen_image(DIR_WS_IMAGES . $categories_image, '', '', '60', 'class="img-responsive"');
            ?>
      </div>
  <?php 
        }
    }
    ?>
  <h1 id="indexCategoriesHeading" class='pull-left'><?php 
    echo $breadcrumb->last();
    ?>
</h1>
</div>  <!-- .page-header -->
<?php

/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 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_modules_category_icon_display.php 2747 2005-12-31 06:05:37Z ajeh $
 */
require DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORY_ICON_DISPLAY);
?>

<div align="<?php 
echo $align;
?>
" id="categoryIcon" class="categoryIcon"><?php 
echo '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . zen_get_categories_image(zen_get_products_category_id((int) $_GET['products_id'])), zen_get_categories_name(zen_get_products_category_id((int) $_GET['products_id']), $_SESSION['languages_id']), CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT) . '<br />' . zen_get_categories_name(zen_get_products_category_id((int) $_GET['products_id']), $_SESSION['languages_id']) . '</a>';
?>
</div>
switch (true) {
    case $module_show_categories == '1':
        $align = 'left';
        break;
    case $module_show_categories == '2':
        $align = 'center';
        break;
    case $module_show_categories == '3':
        $align = 'right';
        break;
}
//echo 'I SEE ' . $cPath . ' vs ' . $current_category_id;
//$category_icon_display_name = zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']);
//$category_icon_display_image = zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id']));
$category_icon_display_name = zen_get_categories_name((int) $current_category_id);
$category_icon_display_image = zen_get_categories_image((int) $current_category_id);
switch (true) {
    // name only
    case PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 1:
        $category_icon_display_image = '';
        break;
        // name and image but name only when blank
    // name and image but name only when blank
    case PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 2 && $category_icon_display_image == '':
        $category_icon_display_image = '';
        break;
    default:
        // name and image always display image regardless
        $category_icon_display_image = zen_image(DIR_WS_IMAGES . $category_icon_display_image, $category_icon_display_name, CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT) . '<br />';
        break;
}
                case $module_show_categories == '2':
                    $align = 'center';
                    break;
                case $module_show_categories == '3':
                    $align = 'right';
                    break;
            }
            if ($module_next_previous != '3') {
                ?>
  <tr>
    <td colspan="3" align="<?php 
                echo $align;
                ?>
">
      <?php 
                echo '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . zen_get_categories_image(zen_get_products_category_id((int) $_GET['products_id'])), zen_get_categories_name(zen_get_products_category_id((int) $_GET['products_id']), $_SESSION['languages_id']), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, ' align="middle"') . '</a>';
                ?>
      <?php 
                echo '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . zen_get_categories_name(zen_get_products_category_id((int) $_GET['products_id']), $_SESSION['languages_id']) . '</a>';
                ?>
    </td>
  </tr>
<?php 
            }
            // don't show when top and bottom
        }
    }
    ?>
  <tr>
    <td align="center" class="smallText" colspan="3"><?php 
    echo PREV_NEXT_PRODUCT;