[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 源代码 banner_box.php

Zen Cart 源代码 banner_box.php




下载文件

文件名: banner_box.php
文件类型: PHP文件
文件大小: 1.15 KiB
MD5: 0ba715e852f5bd809bfd4d4cc71f7eea

banner_box.php - 关闭高亮
  1. <?php
  2. /**
  3.  * banner_box sidebox - used to display "square" banners in sideboxes
  4.  *
  5.  * @package templateSystem
  6.  * @copyright Copyright 2003-2005 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: banner_box.php 3133 2006-03-07 23:39:02Z ajeh $
  10.  */
  11.  
  12. // test if box should display
  13.   $show_banner_box = true;
  14.   if (SHOW_BANNERS_GROUP_SET7 == '') {
  15.     $show_banner_box = false;
  16.   }
  17.  
  18.   if ($show_banner_box == true) {
  19.     $banner_box[] = TEXT_BANNER_BOX;
  20.     $banner_box_group= SHOW_BANNERS_GROUP_SET7;
  21.  
  22.     require($template->get_template_dir('tpl_banner_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box.php');
  23.  
  24. // if no active banner in the specified banner group then the box will not show
  25. // uses banners in the defined group $banner_box_group
  26.     if ($banner->RecordCount() > 0) {
  27.  
  28.       $title =  BOX_HEADING_BANNER_BOX;
  29.       $title_link = false;
  30.       require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  31.     }
  32.   }
  33. ?>


cron