disable banner expansion in WPD

pull/65/head
Aevann1 2022-12-13 23:56:12 +02:00
parent 972c5533f1
commit 8dbc566c03
1 changed files with 10 additions and 0 deletions

View File

@ -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 %}