forked from MarseyWorld/MarseyWorld
allow wpdcels to opt into event music
parent
77b2794e94
commit
9ba2088472
|
@ -1,4 +1,4 @@
|
|||
{% if SITE_NAME != 'WPD' and (not v or v.event_music) and not (hole and hole.name == 'music') and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) %}
|
||||
{% if not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) %}
|
||||
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
|
||||
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %}
|
||||
<input hidden id="event-song" value="{{song}}">
|
||||
|
|
Loading…
Reference in New Issue