diff --git a/files/assets/images/WPD/banners/1.webp b/files/assets/images/WPD/banners/1.webp new file mode 100644 index 000000000..04a3b2779 Binary files /dev/null and b/files/assets/images/WPD/banners/1.webp differ diff --git a/files/helpers/const.py b/files/helpers/const.py index 91ac0bd07..56441f46e 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -295,6 +295,9 @@ elif SITE == 'watchpeopledie.co': PERMS['HOLE_CREATE'] = 2 + SIDEBAR_THREAD = 5403 + BANNER_THREAD = 9869 + HOLE_NAME = 'flair' HOLE_STYLE_FLAIR = True HOLE_REQUIRED = True @@ -310,7 +313,6 @@ elif SITE == 'watchpeopledie.co': GIFT_NOTIF_ID = CARP_ID - SIDEBAR_THREAD = 5403 else: # localhost or testing environment implied FEATURES['PRONOUNS'] = True FEATURES['HOUSES'] = True diff --git a/files/templates/default.html b/files/templates/default.html index 3a40b03d5..878bb7c0a 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -279,14 +279,16 @@ site banner {% endif %} + {% elif SITE_NAME == 'WPD' %} + {% if v %} + {% set path = "assets/images/" + SITE_NAME + "/banners" %} + {% set banner = "/" + path + "/" + listdir('files/' + path)|random() + '?v=1' %} + {% else %} + {% set banner = 'cached.webp' | asset_siteimg %} + {% endif %} + site banner {% else %} - {% if SITE_NAME == 'WPD' %} - {% if v %} - {% set banner = 'banner.webp' | asset_siteimg %} - {% else %} - {% set banner = 'cached.webp' | asset_siteimg %} - {% endif %} - {% elif SITE_NAME == 'PCM' %} + {% if SITE_NAME == 'PCM' %} {% set banner = 'banners/great-value-v2.webp' | asset_siteimg %} {% else %} {% set banner = 'banner.webp' | asset_siteimg %}