本文整理汇总了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;
}