本文整理匯總了PHP中mslib_fe::updateCustomSettings方法的典型用法代碼示例。如果您正苦於以下問題:PHP mslib_fe::updateCustomSettings方法的具體用法?PHP mslib_fe::updateCustomSettings怎麽用?PHP mslib_fe::updateCustomSettings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mslib_fe
的用法示例。
在下文中一共展示了mslib_fe::updateCustomSettings方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
}
$subcats = array();
// current cat
if ($parent_id > 0) {
$str = "SELECT * from tx_multishop_categories c, tx_multishop_categories_description cd where c.status=1 and c.categories_id='" . addslashes($parent_id) . "' and cd.language_id='" . $this->sys_language_uid . "' and c.page_uid='" . $this->showCatalogFromPage . "' and c.categories_id=cd.categories_id";
$qry = $GLOBALS['TYPO3_DB']->sql_query($str);
$current = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry);
} else {
// default root has no current category. this is a bad query (bas)
//$str="SELECT * from tx_multishop_categories c, tx_multishop_categories_description cd where c.status=1 and c.parent_id='".$parent_id."' and cd.language_id='".$this->sys_language_uid."' and c.page_uid='".$this->showCatalogFromPage."' and c.categories_id=cd.categories_id";
}
// first check if the meta_title exists
$display_listing = false;
if ($current['categories_id']) {
if ($current['custom_settings']) {
mslib_fe::updateCustomSettings($current['custom_settings']);
}
if ($current['meta_title']) {
$meta_title = $current['meta_title'];
} else {
$meta_title = $current['categories_name'];
$meta_title = $meta_title . $this->ms['MODULES']['PAGE_TITLE_DELIMETER'] . $this->ms['MODULES']['STORE_NAME'];
}
if ($current['meta_description']) {
$meta_description = $current['meta_description'];
} else {
$meta_description = '';
}
if ($current['meta_keywords']) {
$meta_keywords = $current['meta_keywords'];
} else {
示例2:
}
}
}
}
}
}
if (is_numeric($this->get['products_id'])) {
// overwrite multishop settings loaded from the product
$product = mslib_fe::getProduct($this->get['products_id'], $this->get['categories_id'], 'p.custom_settings', 1, 1);
if ($product['custom_settings']) {
mslib_fe::updateCustomSettings($product['custom_settings']);
}
}
// overwrite multishop settings loaded from the content element
if ($this->customSettings) {
mslib_fe::updateCustomSettings($this->customSettings);
}
// overwrite multishop settings loaded from the content element eof
if (!$this->conf['admin_template_folder']) {
$this->conf['admin_template_folder'] = 'admin_multishop';
}
// reset the fileadmin admin folder to local plugin location
if (!$this->conf['search_page_pid']) {
$this->conf['search_page_pid'] = $this->shop_pid;
}
if (!$this->conf['shoppingcart_page_pid']) {
$this->conf['shoppingcart_page_pid'] = $this->shop_pid;
}
if (!$this->conf['products_detail_page_pid']) {
$this->conf['products_detail_page_pid'] = $this->shop_pid;
}