From 030d9af8ce4118300972ccdd631be001526c79aa Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 3 Apr 2013 21:37:24 +0200 Subject: [PATCH] Added template events --- com.woltlab.wcf/template/breadcrumbs.tpl | 26 +++++++++++-------- com.woltlab.wcf/template/documentHeader.tpl | 2 +- com.woltlab.wcf/template/footer.tpl | 6 +++++ com.woltlab.wcf/template/headInclude.tpl | 2 ++ com.woltlab.wcf/template/header.tpl | 10 ++++++- com.woltlab.wcf/template/mainMenu.tpl | 2 +- com.woltlab.wcf/template/mainMenuSubMenu.tpl | 1 + com.woltlab.wcf/template/redirect.tpl | 2 -- .../acp/templates/applicationManagement.tpl | 16 ++++++------ .../files/acp/templates/categoryAdd.tpl | 8 +++--- .../files/acp/templates/categoryList.tpl | 16 ++++++------ .../files/acp/templates/languageAdd.tpl | 8 +++--- .../files/acp/templates/languageExport.tpl | 8 +++--- .../acp/templates/languageMultilingualism.tpl | 8 +++--- .../files/acp/templates/languageServerAdd.tpl | 8 +++--- .../install/files/acp/templates/option.tpl | 8 +++--- .../files/acp/templates/optionImport.tpl | 8 +++--- .../install/files/acp/templates/package.tpl | 8 +++--- .../install/files/acp/templates/styleAdd.tpl | 8 +++--- .../files/acp/templates/styleImport.tpl | 8 +++--- .../files/acp/templates/userAssignToGroup.tpl | 8 +++--- .../acp/templates/userEmailAddressExport.tpl | 8 +++--- .../files/acp/templates/userGroupOption.tpl | 26 +++++++++++++------ .../acp/templates/usersMassProcessing.tpl | 8 +++--- 24 files changed, 121 insertions(+), 92 deletions(-) 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'}