forked from MarseyWorld/MarseyWorld
PCM: enable multiple banners.
parent
cc4c2774f1
commit
1aa2d949bf
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 |
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue