[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/modules/ -> category_icon_display.php (source)

   1  <?php
   2  /**

   3   * category_icon_display module

   4   *

   5   * @package modules

   6   * @copyright Copyright 2003-2006 Zen Cart Development Team

   7   * @copyright Portions Copyright 2003 osCommerce

   8   * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

   9   * @version $Id: category_icon_display.php 4348 2006-09-02 20:50:32Z ajeh $

  10   */
  11  if (!defined('IS_ADMIN_FLAG')) {
  12    die('Illegal Access');
  13  }
  14  if ($cPath == '') {
  15    $cPath= zen_get_product_path((int)$_GET['products_id']);
  16  }
  17  
  18  $cPath_new = zen_get_path(zen_get_products_category_id((int)$_GET['products_id']));
  19  //      if ((zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id']))) !='') {

  20  switch(true) {
  21    case ($module_show_categories=='1'):
  22    $align='left';
  23    break;
  24    case ($module_show_categories=='2'):
  25    $align='center';
  26    break;
  27    case ($module_show_categories=='3'):
  28    $align='right';
  29    break;
  30  }
  31  $category_icon_display_name = zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']);
  32  $category_icon_display_image = zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id']));
  33  
  34  switch(true) {
  35    // name only

  36    case (PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 1):
  37      $category_icon_display_image = '';
  38      break;
  39    // name and image but name only when blank

  40    case (PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 2 && $category_icon_display_image == ''):
  41      $category_icon_display_image = '';
  42      break;
  43    default:
  44      // name and image always display image regardless

  45      $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 />';
  46      break;
  47  }
  48  //    }

  49  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics