forked from rDrama/rDrama
1
0
Fork 0

WPD: enable rotating sidebar art & admin thread.

master
Snakes 2022-08-14 20:12:55 -04:00
parent 7eb4d9bfed
commit 5ddf1c979a
Signed by: Snakes
GPG Key ID: E745A82778055C7E
4 changed files with 7 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -318,6 +318,7 @@ elif SITE == 'pcmemes.net':
LOTTERY_SINK_RATE = -8
elif SITE == 'watchpeopledie.co':
PERMS['HOLE_CREATE'] = 2
PERMS['CONTENT_THREADS'] = 2
FEATURES['PROCOINS'] = False
@ -333,6 +334,8 @@ elif SITE == 'watchpeopledie.co':
CARP_ID = 14668
AEVANN_ID = 9
SNAKES_ID = 32
SIDEBAR_THREAD = 5403
elif SITE == 'lgbdropthet.com':
PERMS['HOLE_CREATE'] = 3
PERMS['VOTES_VISIBLE'] = 2

View File

@ -1,14 +1,11 @@
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5 bg-white" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
{% if sub %}
{% set image=sub.sidebar_url %}
{% else %}
{% set image='/i/' + SITE_NAME + '/sidebar.webp?v=3000' %}
{% endif %}
{%- set art_path = "assets/images/WPD/sidebar" -%}
{%- set art_image = "/" + art_path + "/" + listdir('files/' + art_path)|random() + '?v=44' -%}
{% if request.path != '/sidebar' %}
<a href="{{image}}">
<img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%>
<a href="{{art_image}}">
<img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{art_image}}" width=100%>
</a>
{% endif %}