forked from rDrama/rDrama
cached banner for WPD
parent
45753ee166
commit
f12f67405a
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
|
@ -285,9 +285,13 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
|
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
|
||||||
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=25' %}
|
{% 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 %}
|
{% endif %}
|
||||||
</a>
|
</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 %}
|
{% else %}
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<img alt="site banner" src="{{asset_siteimg('banner.webp')}}" width="100%">
|
<img alt="site banner" src="{{asset_siteimg('banner.webp')}}" width="100%">
|
||||||
|
|
Loading…
Reference in New Issue