diff --git a/files/helpers/const.py b/files/helpers/const.py index 070504c0f..841571566 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -307,6 +307,9 @@ elif SITE == 'lgbdropthet.com': HOLE_CREATE_JL_MIN = 3 SNAKES_ID = 9 + + PROCOINS_ENABLED = False + LOTTERY_ENABLED = False else: # localhost or testing environment implied pass @@ -943,4 +946,5 @@ COMMENT_SPAM_SIMILAR_THRESHOLD = float(environ.get("COMMENT_SPAM_SIMILAR_THRESHO COMMENT_SPAM_COUNT_THRESHOLD = int(environ.get("COMMENT_SPAM_COUNT_THRESHOLD", 10)) DESCRIPTION = environ.get("DESCRIPTION", "rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!").strip() -has_sidebar = path.exists(f'files/templates/sidebar_{SITE_NAME}.html') \ No newline at end of file +has_sidebar = path.exists(f'files/templates/sidebar_{SITE_NAME}.html') +has_logo = path.exists(f'files/assets/images/{SITE_NAME}/logo.webp') diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index 11c5547a9..54fc8a187 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -58,4 +58,4 @@ def inject_constants(): "HOLE_NAME": HOLE_NAME, "HOLE_STYLE_FLAIR": HOLE_STYLE_FLAIR, "HOLE_REQUIRED": HOLE_REQUIRED, "LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK, "DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION, - "PROCOINS_ENABLED": PROCOINS_ENABLED, "has_sidebar": has_sidebar} + "PROCOINS_ENABLED": PROCOINS_ENABLED, "has_sidebar": has_sidebar, "has_logo": has_logo} diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 63a87d8ac..59a96e090 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -1,4 +1,4 @@ -{%- from 'util/assetcache.html' import asset -%} +{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%} {%- import 'util/helpers.html' as help -%} @@ -12,7 +12,7 @@ - + {% block pagetitle %}{{SITE_NAME}}{% endblock %} diff --git a/files/templates/chat.html b/files/templates/chat.html index 7e245a7a7..41db9636d 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -1,4 +1,4 @@ -{%- from 'util/assetcache.html' import asset -%} +{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%} {%- import 'util/helpers.html' as help -%} @@ -11,7 +11,7 @@ - + Chat diff --git a/files/templates/comments.html b/files/templates/comments.html index 33c7e70a0..969bce620 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -1,4 +1,4 @@ -{%- from 'util/assetcache.html' import asset -%} +{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%} {%- import 'util/helpers.html' as help -%} {% if not ajax %} {% if comment_info %} diff --git a/files/templates/default.html b/files/templates/default.html index 75fc0fca4..9b54cff37 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -1,4 +1,4 @@ -{%- from 'util/assetcache.html' import asset -%} +{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%} {%- import 'util/helpers.html' as help -%} @@ -84,16 +84,16 @@ - + - + {% block title %} {{SITE_NAME}} - + @@ -104,7 +104,7 @@ - + {% endblock %} @@ -113,10 +113,10 @@ - + - - + + @@ -128,127 +128,127 @@ {% block fixedMobileBarJS %} @@ -292,7 +292,7 @@ {% else %} - site banner + site banner {% endif %} {% endif %} diff --git a/files/templates/header.html b/files/templates/header.html index 4fe59bc75..8fda2edc1 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -29,13 +29,13 @@