本文整理汇总了PHP中zen_check_url_get_terms函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_check_url_get_terms函数的具体用法?PHP zen_check_url_get_terms怎么用?PHP zen_check_url_get_terms使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_check_url_get_terms函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: define
*/
define('TEXT_MAIN', 'This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');
// Showcase vs Store
if (STORE_STATUS == '0') {
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
} else {
define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
}
define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');
define('TEXT_INFORMATION', 'Define your main Index page copy here.');
//moved to english
//define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
if ($category_depth == 'products' || zen_check_url_get_terms()) {
// This section deals with product-listing page contents
define('HEADING_TITLE', 'Available Products');
define('TABLE_HEADING_IMAGE', 'Product Image');
define('TABLE_HEADING_MODEL', 'Model');
define('TABLE_HEADING_PRODUCTS', 'Product Name');
define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
define('TABLE_HEADING_QUANTITY', 'Quantity');
define('TABLE_HEADING_PRICE', 'Price');
define('TABLE_HEADING_WEIGHT', 'Weight');
define('TABLE_HEADING_BUY_NOW', 'Buy Now');
define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
define('TEXT_SHOW', 'Filter Results by:');
define('TEXT_BUY', 'Buy 1 \'');
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:index.php
示例2: die
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: init_category_path.php 4769 2006-10-17 02:59:21Z drbyte $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$show_welcome = false;
if (isset($_GET['cPath'])) {
$cPath = zen_get_generated_category_path_rev($_GET['cPath']);
//ModiFy By showq
//For breadcrumb is full
//print_r($cPath); is trace
} elseif (isset($_GET['products_id']) && !zen_check_url_get_terms()) {
$cPath = zen_get_product_path($_GET['products_id']);
} else {
if (SHOW_CATEGORIES_ALWAYS == '1' && !zen_check_url_get_terms()) {
$show_welcome = true;
$cPath = defined('CATEGORIES_START_MAIN') ? CATEGORIES_START_MAIN : '';
} else {
$show_welcome = false;
$cPath = '';
}
}
if (zen_not_null($cPath)) {
$cPath_array = zen_parse_category_path($cPath);
$cPath = implode('_', $cPath_array);
$current_category_id = $cPath_array[sizeof($cPath_array) - 1];
} else {
$current_category_id = 0;
$cPath_array = array();
}
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:init_category_path.php
示例3: zen_get_module_directory
?>
<?php
if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_FEATURED_PRODUCTS') {
include DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE);
}
?>
<?php
if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_SPECIALS_PRODUCTS') {
include DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX);
}
if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_NEW_PRODUCTS') {
require DIR_FS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS);
}
if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_UPCOMING') {
include DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);
}
$show_display_category->MoveNext();
}
/////////////////////////////////////////////////////////////////////////////////////////////////////
} elseif ($category_depth == 'products' || !empty($_GET['user_id']) || zen_check_url_get_terms()) {
global $gBitProduct;
$listProducts = $gBitProduct->getList($_REQUEST);
$gBitSmarty->assign('listInfo', $_REQUEST);
$gBitSmarty->assign_by_ref('listProducts', $listProducts);
$gBitSmarty->display('bitpackage:bitcommerce/list_products_inc.tpl');
} else {
////////////////////////////////////////////////////////////////////////////////////////////////////////////
$gBitSmarty->assign('mainDisplayBlocks', $gBitDb->getAll(SQL_SHOW_PRODUCT_INFO_MAIN));
}
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:index.php
示例4: elseif
} else {
$faq_categories_query = "select c.faq_categories_id, cd.faq_categories_name, c.faq_categories_image, c.parent_id\n from " . TABLE_FAQ_CATEGORIES . " c, " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " cd\n where c.parent_id = '" . (int) $faq_category_links[$i] . "'\n and c.faq_categories_id = cd.faq_categories_id\n and cd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n and c.faq_categories_status= '1'\n order by sort_order, cd.faq_categories_name";
break;
// we've found the deepest faq_category the customer is in
}
}
} else {
$faq_categories_query = "select c.faq_categories_id, cd.faq_categories_name, cd.faq_categories_description, c.faq_categories_image, c.parent_id\n from " . TABLE_FAQ_CATEGORIES . " c, " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " cd\n where c.parent_id = '" . (int) $current_faq_category_id . "'\n and c.faq_categories_id = cd.faq_categories_id\n and cd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n and c.faq_categories_status= '1'\n order by sort_order, cd.faq_categories_name";
}
$faq_categories = $db->Execute($faq_categories_query);
$number_of_faq_categories = $faq_categories->RecordCount();
$new_faqs_faq_category_id = $current_faq_category_id;
/////////////////////////////////////////////////////////////////////////////////////////////////////
$tpl_page_body = 'tpl_index_faq_categories.php';
/////////////////////////////////////////////////////////////////////////////////////////////////////
} elseif ($faq_category_depth == 'faqs' || zen_check_url_get_terms()) {
if (SHOW_FAQ_INFO_ALL_FAQS == '1') {
// set a faq_category filter
$new_faqs_faq_category_id = $fcPath;
} else {
// do not set the faq_category
}
// create column list
$define_list = array('FAQ_LIST_MODEL' => FAQ_LIST_MODEL, 'FAQ_LIST_NAME' => FAQ_LIST_NAME);
asort($define_list);
$column_list = array();
reset($define_list);
while (list($key, $value) = each($define_list)) {
if ($value > 0) {
$column_list[] = $key;
}
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:main_template_vars.php
注:本文中的zen_check_url_get_terms函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论