本文整理汇总了PHP中Meta::getCmsCategoryMetas方法的典型用法代码示例。如果您正苦于以下问题:PHP Meta::getCmsCategoryMetas方法的具体用法?PHP Meta::getCmsCategoryMetas怎么用?PHP Meta::getCmsCategoryMetas使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meta
的用法示例。
在下文中一共展示了Meta::getCmsCategoryMetas方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getMetaTags
/**
* @since 1.5.0
*/
public static function getMetaTags($id_lang, $page_name, $title = '')
{
global $maintenance;
if (!(isset($maintenance) && !in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP'))))) {
if ($page_name == 'product' && ($id_product = Tools::getValue('id_product'))) {
return Meta::getProductMetas($id_product, $id_lang, $page_name);
} elseif ($page_name == 'category' && ($id_category = Tools::getValue('id_category'))) {
return Meta::getCategoryMetas($id_category, $id_lang, $page_name, $title);
} elseif ($page_name == 'manufacturer' && ($id_manufacturer = Tools::getValue('id_manufacturer'))) {
return Meta::getManufacturerMetas($id_manufacturer, $id_lang, $page_name);
} elseif ($page_name == 'supplier' && ($id_supplier = Tools::getValue('id_supplier'))) {
return Meta::getSupplierMetas($id_supplier, $id_lang, $page_name);
} elseif ($page_name == 'cms' && ($id_cms = Tools::getValue('id_cms'))) {
return Meta::getCmsMetas($id_cms, $id_lang, $page_name);
} elseif ($page_name == 'cms' && ($id_cms_category = Tools::getValue('id_cms_category'))) {
return Meta::getCmsCategoryMetas($id_cms_category, $id_lang, $page_name);
}
}
return Meta::getHomeMetas($id_lang, $page_name);
}
示例2: getMetaTags
/**
* Get meta tags
*
* @since 1.5.0
*/
public static function getMetaTags($idLang, $pageName, $title = '')
{
if (Configuration::get('PS_SHOP_ENABLE') || in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP')))) {
if ($pageName == 'product' && ($idProduct = Tools::getValue('id_product'))) {
return Meta::getProductMetas($idProduct, $idLang, $pageName);
} elseif ($pageName == 'category' && ($idCategory = Tools::getValue('id_category'))) {
return Meta::getCategoryMetas($idCategory, $idLang, $pageName, $title);
} elseif ($pageName == 'manufacturer' && ($idManufacturer = Tools::getValue('id_manufacturer'))) {
return Meta::getManufacturerMetas($idManufacturer, $idLang, $pageName);
} elseif ($pageName == 'supplier' && ($idSupplier = Tools::getValue('id_supplier'))) {
return Meta::getSupplierMetas($idSupplier, $idLang, $pageName);
} elseif ($pageName == 'cms' && ($idCms = Tools::getValue('id_cms'))) {
return Meta::getCmsMetas($idCms, $idLang, $pageName);
} elseif ($pageName == 'cms' && ($idCmsCategory = Tools::getValue('id_cms_category'))) {
return Meta::getCmsCategoryMetas($idCmsCategory, $idLang, $pageName);
}
}
return Meta::getHomeMetas($idLang, $pageName);
}