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

Zen Cart 源代码 information.php




下载文件

文件名: information.php
文件类型: PHP文件
文件大小: 2.71 KiB
MD5: 44044bf5313eee363214f696c1834d69

information.php - 关闭高亮
  1. <?php
  2. /**
  3.  * information sidebox - displays list of general info links, as defined in this file
  4.  *
  5.  * @package templateSystem
  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: information.php 4132 2006-08-14 00:36:39Z drbyte $
  10.  */
  11.  
  12.   unset($information);
  13.  
  14.   if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
  15.     $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
  16.   }
  17.   if (DEFINE_PRIVACY_STATUS <= 1) {
  18.     $information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
  19.   }
  20.   if (DEFINE_CONDITIONS_STATUS <= 1) {
  21.     $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
  22.   }
  23.   if (DEFINE_CONTACT_US_STATUS <= 1) {
  24.     $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';
  25.   }
  26.  
  27. // Forum (phpBB) link:
  28.   if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
  29.     $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
  30. // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
  31. // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
  32.   }
  33.  
  34.   if (DEFINE_SITE_MAP_STATUS <= 1) {
  35.     $information[] = '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>';
  36.   }
  37.  
  38.   // only show GV FAQ when installed
  39.   if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
  40.     $information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
  41.   }
  42.   // only show Discount Coupon FAQ when installed
  43.   if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
  44.     $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
  45.   }
  46.  
  47.   if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
  48.     $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
  49.   }
  50.  
  51.   require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');
  52.  
  53.   $title =  BOX_HEADING_INFORMATION;
  54.   $title_link = false;
  55.  
  56.   require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  57. ?>
  58.