disable banner expansion in WPD
parent
972c5533f1
commit
8dbc566c03
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue