forked from rDrama/rDrama
WPD: enable rotating sidebar art & admin thread.
parent
7eb4d9bfed
commit
5ddf1c979a
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
Binary file not shown.
After Width: | Height: | Size: 118 KiB |
|
@ -318,6 +318,7 @@ elif SITE == 'pcmemes.net':
|
||||||
LOTTERY_SINK_RATE = -8
|
LOTTERY_SINK_RATE = -8
|
||||||
elif SITE == 'watchpeopledie.co':
|
elif SITE == 'watchpeopledie.co':
|
||||||
PERMS['HOLE_CREATE'] = 2
|
PERMS['HOLE_CREATE'] = 2
|
||||||
|
PERMS['CONTENT_THREADS'] = 2
|
||||||
|
|
||||||
FEATURES['PROCOINS'] = False
|
FEATURES['PROCOINS'] = False
|
||||||
|
|
||||||
|
@ -333,6 +334,8 @@ elif SITE == 'watchpeopledie.co':
|
||||||
CARP_ID = 14668
|
CARP_ID = 14668
|
||||||
AEVANN_ID = 9
|
AEVANN_ID = 9
|
||||||
SNAKES_ID = 32
|
SNAKES_ID = 32
|
||||||
|
|
||||||
|
SIDEBAR_THREAD = 5403
|
||||||
elif SITE == 'lgbdropthet.com':
|
elif SITE == 'lgbdropthet.com':
|
||||||
PERMS['HOLE_CREATE'] = 3
|
PERMS['HOLE_CREATE'] = 3
|
||||||
PERMS['VOTES_VISIBLE'] = 2
|
PERMS['VOTES_VISIBLE'] = 2
|
||||||
|
|
|
@ -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 %}>
|
<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 art_path = "assets/images/WPD/sidebar" -%}
|
||||||
{% set image=sub.sidebar_url %}
|
{%- set art_image = "/" + art_path + "/" + listdir('files/' + art_path)|random() + '?v=44' -%}
|
||||||
{% else %}
|
|
||||||
{% set image='/i/' + SITE_NAME + '/sidebar.webp?v=3000' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if request.path != '/sidebar' %}
|
{% if request.path != '/sidebar' %}
|
||||||
<a href="{{image}}">
|
<a href="{{art_image}}">
|
||||||
<img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%>
|
<img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{art_image}}" width=100%>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue