forked from rDrama/rDrama
1
0
Fork 0

use orgy banners

master
Aevann 2023-09-26 20:06:55 +03:00
parent 64dccd385b
commit d110fdcf0d
3 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View File

@ -12,12 +12,18 @@
{% if IS_FISTMAS() and not sub %}
{% include 'events/fistmas/banner.html' %}
{% else %}
{% set path = "files/assets/images/" ~ SITE_NAME %}
{% if err and SITE_NAME == 'rDrama' %}
{% set src = "banner_error.webp" | asset_siteimg %}
{% elif sub and sub.has_banners %}
{% set src = sub.random_banner() %}
{% set alt = ['/h/', sub, 'banner']|join %}
{% set class = 'site-banner-hole' %}
{% elif get_orgy(v) and os_path.exists(path ~ "/orgy_banners") %}
{% set src = macros.random_image("assets/images/" ~ SITE_NAME ~ "/orgy_banners") %}
{% set href = "/chat" %}
{% set expand = false %}
{% elif IS_EVENT() %}
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners") %}
{% elif SITE_NAME == "rDrama" %}
@ -39,8 +45,6 @@
{% if src %}
{% set banner_url = src %}
{% else %}
{% set path = "files/assets/images/" ~ SITE_NAME %}
{%- if not v and os_path.exists(path ~ "/cached.webp") -%}
{% set banner_url = 'cached.webp' | asset_siteimg %}
{% elif os_path.exists(path ~ "/banners") -%}