PCM: enable multiple banners.

remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-11-07 16:40:16 -05:00
parent cc4c2774f1
commit 1aa2d949bf
7 changed files with 4 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

View File

@ -56,8 +56,10 @@
</a>
{% else %}
{% if SITE_NAME == 'PCM' %}
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
{% set banner = "/" + path + "/" + listdir('files/' + path)|max + '?v=1' %}
{# set path = "assets/images/" + SITE_NAME + "/banners" #}
{# set banner = "/" + path + "/" + listdir('files/' + path)|max + '?v=1' #}
{% set path = "assets/images/" + SITE_NAME + "/banner_rotation" %}
{% set banner = "/" + path + "/" + listdir('files/' + path)|random() + '?v=1' %}
{% else %}
{% set banner = 'banner.webp' | asset_siteimg %}
{% endif %}