mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 20:02:15 +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
|
|
@ -2788,6 +2788,17 @@ class Context
|
|||
self::$_instance->opengraph_metadata[] = array($name, $content);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set canonical URL
|
||||
*
|
||||
* @param string $url
|
||||
* @return void
|
||||
*/
|
||||
public static function setCanonicalURL($url)
|
||||
{
|
||||
self::addHtmlHeader(sprintf('<link rel="canonical" href="%s" />', escape($url)));
|
||||
}
|
||||
}
|
||||
/* End of file Context.class.php */
|
||||
/* Location: ./classes/context/Context.class.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue