[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 category_icon_display.php

Zen Cart 源代码 category_icon_display.php




下载文件

文件名: category_icon_display.php
文件类型: PHP文件
文件大小: 2.05 KiB
MD5: 11d2f8dba4862eb84066cfbe8b3ff817

category_icon_display.php - 关闭高亮
  1. <?php
  2. /**
  3.  * category_icon_display module
  4.  *
  5.  * @package modules
  6.  * @copyright Copyright 2003-2010 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 16776 2010-06-24 20:48:53Z drbyte $
  10.  */
  11. if (!defined('IS_ADMIN_FLAG')) {
  12.   die('Illegal Access');
  13. }
  14. if ($cPath == '' || $cPath == 0) {
  15.   $cPath= zen_get_product_path((int)$_GET['products_id']);
  16. }
  17. if (!isset($_GET['cPath']) || $_GET['cPath'] == '') $_GET['cPath'] = $cPath;
  18.  
  19. $cPath_new = zen_get_path(zen_get_products_category_id((int)$_GET['products_id']));
  20. //      if ((zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id']))) !='') {
  21. switch(true) {
  22.   case ($module_show_categories=='1'):
  23.   $align='left';
  24.   break;
  25.   case ($module_show_categories=='2'):
  26.   $align='center';
  27.   break;
  28.   case ($module_show_categories=='3'):
  29.   $align='right';
  30.   break;
  31. }
  32. //echo 'I SEE ' . $cPath . ' vs ' . $current_category_id;
  33. //$category_icon_display_name = zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']);
  34. //$category_icon_display_image = zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id']));
  35.  
  36.  
  37. $category_icon_display_name = zen_get_categories_name((int)$current_category_id);
  38. $category_icon_display_image = zen_get_categories_image((int)$current_category_id);
  39.  
  40. switch(true) {
  41.   // name only
  42.   case (PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 1):
  43.     $category_icon_display_image = '';
  44.     break;
  45.   // name and image but name only when blank
  46.   case (PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 2 && $category_icon_display_image == ''):
  47.     $category_icon_display_image = '';
  48.     break;
  49.   default:
  50.     // name and image always display image regardless
  51.     $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 />';
  52.     break;
  53. }
  54. //    }
  55. ?>


cron