forked from rDrama/rDrama
change banners for chudrama
parent
870a0f7084
commit
e65b86cbfc
|
@ -280,14 +280,20 @@
|
||||||
<a href="{{sub.banner_url}}">
|
<a href="{{sub.banner_url}}">
|
||||||
<img alt="/h/{{sub.name}} banner" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:min(42vh,30vw)!important">
|
<img alt="/h/{{sub.name}} banner" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:min(42vh,30vw)!important">
|
||||||
</a>
|
</a>
|
||||||
{% elif SITE_NAME == 'rDrama' %}
|
{% elif SITE_NAME == 'Chudrama' %}
|
||||||
{% 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' %}
|
||||||
|
|
||||||
|
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
||||||
|
<img alt="site banner" src="{% if v %}{{image}}{% else %}/assets/images/{{SITE_NAME}}/cached.webp?v=100{% endif %}" width="100%">
|
||||||
|
</a>
|
||||||
|
{% elif SITE_NAME == 'rDrama' %}
|
||||||
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
||||||
{% if v and (v.is_banned or v.agendaposter) %}
|
{% if v and (v.is_banned or v.agendaposter) %}
|
||||||
<img alt="site banner" src="/i/{{SITE_NAME}}/banner2.webp?v=2000" width="100%">
|
<img alt="site banner" src="/i/{{SITE_NAME}}/banner2.webp?v=2000" width="100%">
|
||||||
{% else %}
|
{% 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 %}/assets/images/{{SITE_NAME}}/cached.webp?v=100{% endif %}" width="100%">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue