if(OOAddon::isAvailable('rexseo'))
{
$meta = new rexseo_meta();
$meta_description = $meta->get_description();
$meta_keywords = $meta->get_keywords();
$meta_title = $meta->get_title();
$meta_canonical = $meta->get_canonical();
$meta_base = $meta->get_base();
}
else
{
$OOStartArticle = OOArticle::getArticleById($REX['START_ARTICLE_ID'], $REX['CUR_CLANG']);
$meta_description = $OOStartArticle->getValue("art_description");
$meta_keywords = $OOStartArticle->getValue("art_keywords");
if($this->getValue("art_description") != "")
$meta_description = htmlspecialchars($this->getValue("art_description"));
if($this->getValue("art_keywords") != "")
$meta_keywords = htmlspecialchars($this->getValue("art_keywords"));
$meta_title = $REX['SERVERNAME'].' | '.$this->getValue("name");
$meta_canonical = isset($_REQUEST['REQUEST_URI']) ? $_REQUEST['REQUEST_URI'] : '';
$meta_base = 'http://'.$_SERVER['HTTP_HOST'].'/';
}
?>