mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-10 14:02:12 +09:00
Use global keywords and description if a module does not have its own SEO info
This commit is contained in:
parent
98f0b0cd1c
commit
faf4b1ea54
8 changed files with 95 additions and 0 deletions
|
|
@ -295,6 +295,25 @@ class ModuleHandler extends Handler
|
|||
Context::setBrowserTitle(Context::getSiteTitle());
|
||||
Context::addBrowserTitle($module_info->browser_title);
|
||||
}
|
||||
|
||||
$module_config = $oModuleModel->getModuleConfig('module');
|
||||
if ($module_info->meta_keywords)
|
||||
{
|
||||
Context::addMetaTag('keywords', escape($module_info->meta_keywords));
|
||||
}
|
||||
elseif($module_config->meta_keywords)
|
||||
{
|
||||
Context::addMetaTag('keywords', escape($module_config->meta_keywords));
|
||||
}
|
||||
|
||||
if ($module_info->meta_description)
|
||||
{
|
||||
Context::addMetaTag('description', escape($module_info->meta_description));
|
||||
}
|
||||
elseif($module_config->meta_description)
|
||||
{
|
||||
Context::addMetaTag('description', escape($module_config->meta_description));
|
||||
}
|
||||
|
||||
$viewType = (Mobile::isFromMobilePhone()) ? 'M' : 'P';
|
||||
$targetSrl = (Mobile::isFromMobilePhone()) ? 'mlayout_srl' : 'layout_srl';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue