From e752a58ff768dcf7ea0dd87631a6001e1a8f8a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 11 Aug 2013 17:22:51 +0200 Subject: [PATCH] Move template listener code into templates Closes #45 --- acptemplate/__headerLogo.tpl | 1 + acptemplate/__softwareVersions.tpl | 4 ++++ template/__headerLogo.tpl | 1 + templateListener.xml | 9 +++------ 4 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 acptemplate/__headerLogo.tpl create mode 100644 acptemplate/__softwareVersions.tpl create mode 100644 template/__headerLogo.tpl diff --git a/acptemplate/__headerLogo.tpl b/acptemplate/__headerLogo.tpl new file mode 100644 index 0000000..69c62f5 --- /dev/null +++ b/acptemplate/__headerLogo.tpl @@ -0,0 +1 @@ +{if $__chat->isActiveApplication()}{/if} \ No newline at end of file diff --git a/acptemplate/__softwareVersions.tpl b/acptemplate/__softwareVersions.tpl new file mode 100644 index 0000000..b5dd0fb --- /dev/null +++ b/acptemplate/__softwareVersions.tpl @@ -0,0 +1,4 @@ +
+
{lang}wcf.acp.index.system.software.chatVersion{/lang}
+
{$__chat->getPackage()->packageVersion}
+
\ No newline at end of file diff --git a/template/__headerLogo.tpl b/template/__headerLogo.tpl new file mode 100644 index 0000000..26b916c --- /dev/null +++ b/template/__headerLogo.tpl @@ -0,0 +1 @@ +{if $__chat->isActiveApplication()}{if !$__wcf->getStyleHandler()->getStyle()->getPageLogo()}{/if}{/if} \ No newline at end of file diff --git a/templateListener.xml b/templateListener.xml index 24abf35..849a748 100644 --- a/templateListener.xml +++ b/templateListener.xml @@ -12,24 +12,21 @@ user header headerLogo - isActiveApplication()}{if !$__wcf->getStyleHandler()->getStyle()->getPageLogo()}{/if}{/if}]]> + admin header headerLogo - isActiveApplication()}{/if}]]> + admin index softwareVersions - -
{lang}wcf.acp.index.system.software.chatVersion{/lang}
-
{$__chat->getPackage()->packageVersion}
-]]>
+
\ No newline at end of file