From c893138d2087c72681481fcfd6ade6beeb0e504d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 18 Feb 2015 12:17:58 +0100 Subject: [PATCH] Disabled ad locations on non-content pages --- com.woltlab.wcf/templates/footer.tpl | 4 ++-- com.woltlab.wcf/templates/header.tpl | 8 ++++---- com.woltlab.wcf/templates/login.tpl | 4 ++-- com.woltlab.wcf/templates/redirect.tpl | 4 ++-- com.woltlab.wcf/templates/userException.tpl | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/com.woltlab.wcf/templates/footer.tpl b/com.woltlab.wcf/templates/footer.tpl index 48b0d0daac..41a5e762f7 100644 --- a/com.woltlab.wcf/templates/footer.tpl +++ b/com.woltlab.wcf/templates/footer.tpl @@ -2,7 +2,7 @@ {if $skipBreadcrumbs|empty}{include file='breadcrumbs' __microdata=false}{/if} - {if MODULE_WCF_AD} + {if MODULE_WCF_AD && $__disableAds|empty} {@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.content')} {/if} @@ -40,7 +40,7 @@ {event name='copyright'} - {if MODULE_WCF_AD} + {if MODULE_WCF_AD && $__disableAds|empty} {@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.bottom')} {/if} diff --git a/com.woltlab.wcf/templates/header.tpl b/com.woltlab.wcf/templates/header.tpl index bb52801524..00377dda8a 100644 --- a/com.woltlab.wcf/templates/header.tpl +++ b/com.woltlab.wcf/templates/header.tpl @@ -20,7 +20,7 @@ -{include file='footer'} +{include file='footer' __disableAds=true} diff --git a/com.woltlab.wcf/templates/redirect.tpl b/com.woltlab.wcf/templates/redirect.tpl index c34cd40401..7d3c62e98b 100644 --- a/com.woltlab.wcf/templates/redirect.tpl +++ b/com.woltlab.wcf/templates/redirect.tpl @@ -10,14 +10,14 @@ -{include file='header'} +{include file='header' __disableAds=true}

{@$message}

{lang}wcf.global.redirect.url{/lang}
-{include file='footer'} +{include file='footer' __disableAds=true} diff --git a/com.woltlab.wcf/templates/userException.tpl b/com.woltlab.wcf/templates/userException.tpl index 9b24e4b646..b04be1a47a 100644 --- a/com.woltlab.wcf/templates/userException.tpl +++ b/com.woltlab.wcf/templates/userException.tpl @@ -7,7 +7,7 @@ -{include file='header'} +{include file='header' __disableAds=true}

{@$message} @@ -28,7 +28,7 @@ --> {/if} -{include file='footer'} +{include file='footer' __disableAds=true} -- 2.20.1