From: Marcel Werk Date: Wed, 3 Apr 2013 19:37:24 +0000 (+0200) Subject: Added template events X-Git-Tag: 2.0.0_Beta_1~401 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=030d9af8ce4118300972ccdd631be001526c79aa;p=GitHub%2FWoltLab%2FWCF.git Added template events --- diff --git a/com.woltlab.wcf/template/breadcrumbs.tpl b/com.woltlab.wcf/template/breadcrumbs.tpl index ac66912518..7dedaf8beb 100644 --- a/com.woltlab.wcf/template/breadcrumbs.tpl +++ b/com.woltlab.wcf/template/breadcrumbs.tpl @@ -1,12 +1,16 @@ {if !$__microdata|isset}{assign var=__microdata value=true}{/if} -{if $__wcf->getBreadcrumbs()|count} - -{/if} +{hascontent} + +{/hascontent} diff --git a/com.woltlab.wcf/template/documentHeader.tpl b/com.woltlab.wcf/template/documentHeader.tpl index 2c789893b7..786b3a288f 100644 --- a/com.woltlab.wcf/template/documentHeader.tpl +++ b/com.woltlab.wcf/template/documentHeader.tpl @@ -1,2 +1,2 @@ - + diff --git a/com.woltlab.wcf/template/footer.tpl b/com.woltlab.wcf/template/footer.tpl index 01cd9034c9..e7d1bc4b16 100644 --- a/com.woltlab.wcf/template/footer.tpl +++ b/com.woltlab.wcf/template/footer.tpl @@ -1,3 +1,5 @@ + {event name='contents'} + {if $skipBreadcrumbs|empty}{include file='breadcrumbs' __microdata=false}{/if} @@ -23,6 +25,8 @@
+ {event name='footerContents'} + {if ENABLE_BENCHMARK}{include file='benchmark'}{/if} {event name='copyright'} @@ -30,4 +34,6 @@
+{event name='footer'} + diff --git a/com.woltlab.wcf/template/headInclude.tpl b/com.woltlab.wcf/template/headInclude.tpl index 49ea5402dc..0bc1b37ee4 100644 --- a/com.woltlab.wcf/template/headInclude.tpl +++ b/com.woltlab.wcf/template/headInclude.tpl @@ -3,6 +3,7 @@ {implode from=$__wcf->getMetaTagHandler() item=__metaTag glue="\n"}{@$__metaTag}{/implode} +{event name='metaTags'}