From d215cdb00445d9099ac868e6cd44a2e7db7f974f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 4 Mar 2013 18:15:32 +0100 Subject: [PATCH] Added MetaTagHandler (replaces OpenGraphProtocolHandler) --- com.woltlab.wcf/coreObject.xml | 3 + com.woltlab.wcf/template/headInclude.tpl | 4 +- .../files/lib/system/MetaTagHandler.class.php | 129 ++++++++++++++++++ 3 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 wcfsetup/install/files/lib/system/MetaTagHandler.class.php diff --git a/com.woltlab.wcf/coreObject.xml b/com.woltlab.wcf/coreObject.xml index 212aece5ac..9d10bf1928 100644 --- a/com.woltlab.wcf/coreObject.xml +++ b/com.woltlab.wcf/coreObject.xml @@ -19,5 +19,8 @@ + + + diff --git a/com.woltlab.wcf/template/headInclude.tpl b/com.woltlab.wcf/template/headInclude.tpl index 535f55c60a..877918365c 100644 --- a/com.woltlab.wcf/template/headInclude.tpl +++ b/com.woltlab.wcf/template/headInclude.tpl @@ -2,7 +2,9 @@ -{event name='metaTags'} +{foreach from=$__wcf->getMetaTagHandler() item=__metaTag} + {@$__metaTag} +{/foreach}