mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Move most meta tags above the <title> to below it #2419
This commit is contained in:
parent
bf3d920a1d
commit
bf0093b56a
4 changed files with 31 additions and 24 deletions
|
|
@ -693,7 +693,8 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
if ($kind === 'admin') {
|
||||
if ($kind === 'admin')
|
||||
{
|
||||
Context::addMetaTag('robots', 'noindex');
|
||||
}
|
||||
|
||||
|
|
@ -865,29 +866,29 @@ class ModuleHandler extends Handler
|
|||
$module_config = ModuleModel::getModuleConfig('module');
|
||||
if (!empty($module_info->meta_keywords))
|
||||
{
|
||||
Context::addMetaTag('keywords', $module_info->meta_keywords);
|
||||
Context::addMetaTag('keywords', $module_info->meta_keywords, false, false);
|
||||
}
|
||||
elseif (!empty($site_module_info->settings->meta_keywords))
|
||||
{
|
||||
Context::addMetaTag('keywords', $site_module_info->settings->meta_keywords);
|
||||
Context::addMetaTag('keywords', $site_module_info->settings->meta_keywords, false, false);
|
||||
}
|
||||
elseif (!empty($module_config->meta_keywords))
|
||||
{
|
||||
Context::addMetaTag('keywords', $module_config->meta_keywords);
|
||||
Context::addMetaTag('keywords', $module_config->meta_keywords, false, false);
|
||||
}
|
||||
|
||||
// Set meta description.
|
||||
if (!empty($module_info->meta_description))
|
||||
{
|
||||
Context::addMetaTag('description', $module_info->meta_description);
|
||||
Context::addMetaTag('description', $module_info->meta_description, false, false);
|
||||
}
|
||||
elseif (!empty($site_module_info->settings->meta_description))
|
||||
{
|
||||
Context::addMetaTag('description', $site_module_info->settings->meta_description);
|
||||
Context::addMetaTag('description', $site_module_info->settings->meta_description, false, false);
|
||||
}
|
||||
elseif (!empty($module_config->meta_description))
|
||||
{
|
||||
Context::addMetaTag('description', $module_config->meta_description);
|
||||
Context::addMetaTag('description', $module_config->meta_description, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue