mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Make OpenGraph configurable, and fix canonical URL to include mid
This commit is contained in:
parent
da1b69c6b7
commit
f25e685209
10 changed files with 83 additions and 8 deletions
|
|
@ -570,12 +570,18 @@ class adminAdminView extends admin
|
|||
*/
|
||||
function dispAdminConfigSEO()
|
||||
{
|
||||
// Site title and HTML footer
|
||||
// Meta keywords and description
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('module');
|
||||
Context::set('site_meta_keywords', escape($config->meta_keywords));
|
||||
Context::set('site_meta_description', escape($config->meta_description));
|
||||
|
||||
// OpenGraph metadata
|
||||
Context::set('og_enabled', Rhymix\Framework\Config::get('seo.og_enabled'));
|
||||
Context::set('og_extract_description', Rhymix\Framework\Config::get('seo.og_extract_description'));
|
||||
Context::set('og_extract_images', Rhymix\Framework\Config::get('seo.og_extract_images'));
|
||||
Context::set('og_use_timestamps', Rhymix\Framework\Config::get('seo.og_use_timestamps'));
|
||||
|
||||
$this->setTemplateFile('config_seo');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue