<base href="{$baseHref}" />
<meta charset="utf-8" />
-<meta name="description" content="{META_DESCRIPTION}" />
-<meta name="keywords" content="{META_KEYWORDS}" />
-{foreach from=$__wcf->getMetaTagHandler() item=__metaTag}
- {@$__metaTag}
-{/foreach}
+{implode from=$__wcf->getMetaTagHandler() item=__metaTag glue="\n"}{@$__metaTag}{/implode}
<script type="text/javascript">
//<![CDATA[
// set default tags
$this->addTag('description', 'description', WCF::getLanguage()->get(META_DESCRIPTION));
$this->addTag('keywords', 'keywords', WCF::getLanguage()->get(META_KEYWORDS));
- $this->addTag('og:site_name', 'og:site_name', WCF::getLanguage()->get(PAGE_TITLE));
+ $this->addTag('og:site_name', 'og:site_name', WCF::getLanguage()->get(PAGE_TITLE), true);
}
/**
if ($name == 'og:description') {
$this->objects['description']['value'] = $value;
}
+
+ $this->indexToObject[] = $identifier;
}
/**
public function removeTag($identifier) {
if (isset($this->objects[$identifier])) {
unset($this->objects[$identifier]);
+
+ $this->indexToObject = array_keys($this->objects);
}
}
public function current() {
$tag = $this->objects[$this->indexToObject[$this->index]];
- return '<meta ' . ($tag['isProperty'] ? 'property' : 'name') . '="' . $tag['name'] . '" content="' + $tag['value'] + '" />';
+ return '<meta ' . ($tag['isProperty'] ? 'property' : 'name') . '="' . $tag['name'] . '" content="' . $tag['value'] . '" />';
}
/**