From 8dbc566c0382f0750f1a03b2817c68ff3933ba13 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 13 Dec 2022 23:56:12 +0200 Subject: [PATCH] disable banner expansion in WPD --- files/templates/default.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/files/templates/default.html b/files/templates/default.html index add1c26c2..b2af59758 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -19,6 +19,16 @@ {% elif SITE_NAME == 'PCM' %}{# special case: christmas #} {% set src = "/i/PCM/banners_xmas22/" ~ listdir('files/assets/images/PCM/banners_xmas22')|random() %} {% endif %} + + {% if SITE_NAME == "WPD" %} + {% if sub %} + {% set href = "/h/" ~ sub %} + {% set expand = false %} + {% else %} + {% set href = "/" %} + {% set expand = false %} + {% endif %} + {% endif %} {{macros.banner(src, href, alt, expand, class)}} {% endif %} {% endif %}