forked from rDrama/rDrama
1
0
Fork 0

cached banner for WPD

master
Aevann1 2022-08-02 00:05:39 +02:00
parent 45753ee166
commit f12f67405a
2 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -285,13 +285,17 @@
{% else %}
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=25' %}
<img alt="site banner" src="{% if v %}{{image}}{% else %}/assets/images/{{SITE_NAME}}/cached.webp?v=100{% endif %}" width="100%">
<img alt="site banner" src="{% if v %}{{image}}{% else %}{{asset_siteimg('cached.webp')}}{% endif %}" width="100%">
{% endif %}
</a>
{% elif SITE_NAME == 'WPD' %}
<a href="/">
<img alt="site banner" src="{% if v %}{{asset_siteimg('banner.webp')}}{% else %}{{asset_siteimg('cached.webp')}}{% endif %}" width="100%">
</a>
{% else %}
<a href="/">
<img alt="site banner" src="{{asset_siteimg('banner.webp')}}" width="100%">
</a>
</a>
{% endif %}
{% endif %}
{% endblock %}