forked from rDrama/rDrama
fsd
parent
cdac160a0c
commit
a1e8dbfa37
|
@ -227,25 +227,19 @@
|
||||||
|
|
||||||
{% block Banner %}
|
{% block Banner %}
|
||||||
{% if '@' not in request.path %}
|
{% if '@' not in request.path %}
|
||||||
{% if v %}
|
{% if sub %}
|
||||||
{% if sub %}
|
<img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw">
|
||||||
<img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw">
|
{% elif SITE_NAME == 'rDrama' %}
|
||||||
{% elif SITE_NAME == 'rDrama' %}
|
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
|
||||||
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
|
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=23' %}
|
||||||
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=23' %}
|
|
||||||
|
|
||||||
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
||||||
<img alt="site banner" src="{{image}}" width="100%">
|
<img alt="site banner" src="{{image}}" width="100%">
|
||||||
</a>
|
|
||||||
{% else %}
|
|
||||||
<a href="/">
|
|
||||||
<img alt="site banner" src="/assets/images/{{SITE_NAME}}/banner.webp?v=1042" width="100%">
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<a href="/login">
|
|
||||||
<img class="banner" alt="site banner" src="/assets/images/{{SITE_NAME}}/cached.webp?v=1012" width="100%">
|
|
||||||
</a>
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="/">
|
||||||
|
<img alt="site banner" src="/assets/images/{{SITE_NAME}}/banner.webp?v=1042" width="100%">
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue