2022-11-21 08:52:22 +00:00
{%- extends 'root.html' -%}
2023-02-24 06:31:27 +00:00
{% block body_attributes %}id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" class="has_header"{% endblock %}
2022-11-21 08:52:22 +00:00
{% block body %}
2023-10-29 12:51:00 +00:00
{% block pulltorefresh %}
< div id = "pulltorefresh" >
< img id = "pulltorefresh-img" src = "{{SITE_FULL_IMAGES}}/e/marseyunamused.webp" >
< / div >
{% endblock %}
{% block banner %}
{% include "modals/expanded_image.html" %}
{% if err or '@' not in request.path %}
2023-11-04 21:50:23 +00:00
{% if IS_FISTMAS() and not (hole and hole.bannerurls) %}
2023-10-29 12:51:00 +00:00
{% include 'events/fistmas/banner.html' %}
2023-11-04 21:50:23 +00:00
{% elif IS_HOMOWEEN() and not (hole and hole.bannerurls) %}
2023-10-29 12:51:00 +00:00
{% include 'events/homoween/banner.html' %}
{% else %}
{% set path = "files/assets/images/" ~ SITE_NAME %}
2022-12-13 21:56:12 +00:00
2023-10-29 12:51:00 +00:00
{% if err and SITE_NAME == 'rDrama' %}
{% set src = "banner_error.webp" | asset_siteimg %}
2023-11-04 21:50:23 +00:00
{% elif hole and hole.bannerurls %}
{% set src = hole.random_banner %}
2023-10-29 12:51:00 +00:00
{% set alt = ['/h/', hole, ' banner']|join %}
{% set class = 'site-banner-hole' %}
{% elif get_running_orgy(v) and os_path.exists(path ~ "/orgy_banners") %}
{% set src = macros.random_image("assets/images/" ~ SITE_NAME ~ "/orgy_banners") %}
{% set href = "/chat" %}
2022-12-13 21:56:12 +00:00
{% set expand = false %}
2023-10-29 12:51:00 +00:00
{% elif IS_DKD() or IS_BIRTHGAY() or IS_BIRTHDEAD() %}
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners") %}
{% elif SITE_NAME == "rDrama" %}
{% set href = "https://donate.transequality.org/a/ncte" %}
2022-12-13 21:56:12 +00:00
{% set expand = false %}
{% endif %}
2023-03-23 12:38:30 +00:00
2023-10-29 12:51:00 +00:00
{% if SITE_NAME == "WPD" %}
{% if hole %}
{% set href = "/h/" ~ hole %}
{% set expand = false %}
{% else %}
{% set href = "/" %}
{% set expand = false %}
{% endif %}
2023-03-23 12:38:30 +00:00
{% endif %}
2023-05-05 21:45:25 +00:00
2023-11-04 21:36:05 +00:00
< a id = "banner-link" href = "{{href|default(src)}}" rel = "noopener" >
2023-10-29 12:51:00 +00:00
{% if src %}
{% set banner_url = src %}
{% else %}
{%- if not v and os_path.exists(path ~ "/cached.webp") -%}
{% set banner_url = 'cached.webp' | asset_siteimg %}
{%- elif SITE_NAME == 'rDrama' and v and v.chud %}
{% set banner_url = '/banners/18.webp' | asset_siteimg %}
{%- elif os_path.exists(path ~ "/banners") -%}
{% set banner_url = macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %}
{%- else -%}
{% set banner_url = 'banner.webp' | asset_siteimg %}
{%- endif -%}
{% endif %}
{% macro img_element() %}
< img data-nonce = "{{g.nonce}}" data-onclick = "{{expand|default('expandImage()')}}" class = "{{class|default('site-banner')}}" alt = "{{alt|default('site banner')}}" src = "{{banner_url}}" >
{% endmacro %}
2023-05-05 22:08:12 +00:00
2023-11-04 21:50:23 +00:00
{% if hole and hole.bannerurls %}
2023-10-29 12:51:00 +00:00
{{img_element()}}
{% else %}
< div class = "banner-wrapper" >
< div style = "padding: 0 0 12.2%" >
< div >
{{img_element()}}
< / div >
2023-05-05 22:08:12 +00:00
< / div >
2023-05-02 16:44:39 +00:00
< / div >
2023-10-29 12:51:00 +00:00
{% endif %}
< / a >
{% endif %}
2022-05-04 23:09:46 +00:00
{% endif %}
2023-10-29 12:51:00 +00:00
{% endblock %}
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
{% include "header.html" %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
{% block mobileUserBanner %}{% endblock %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
{% if IS_HOMOWEEN() %}
{% block hauntBg %}{% endblock %}
{% endif %}
2023-09-28 23:58:09 +00:00
2023-10-29 12:51:00 +00:00
< div class = "container" >
< div class = "row justify-content-around" id = "main-content-row" >
< div class = "order-first col h-100 {% block customPadding %}{% if request.path.startswith('/@') %}user-gutters{% else %}custom-gutters{% endif %}{% endblock %}" id = "main-content-col" >
{% block desktopUserBanner %}{% endblock %}
{% block desktopBanner %}{% endblock %}
{% block PseudoSubmitForm %}{% endblock %}
{% block searchText %}{% endblock %}
{% block content %}{% endblock %}
{% block pagenav %}{% endblock %}
< / div >
{% block sidebar %}
{% if has_sidebar and (home or p) %}
{% set sidebar = "sidebar_" ~ SITE_NAME ~ ".html" %}
< div id = "desktop-sidebar" >
{% include sidebar %}
< / div >
{% endif %}
{% endblock %}
2022-05-04 23:09:46 +00:00
< / div >
< / div >
2023-10-29 12:51:00 +00:00
{% block mobilenavbar %}{% include "mobile_navigation_bar.html" %}{% endblock %}
{% block actionsModal %}{% endblock %}
{% block reportCommentModal %}{% endblock %}
{% block GIFtoast %}{% endblock %}
{% block GIFpicker %}{% endblock %}
< div class = "toast clipboard" id = "toast-success" data-bs-animation = "true" data-bs-autohide = "true" data-bs-delay = "5000" >
< div class = "toast-body text-center" >
< i class = "fas fa-check-circle text-success mr-2" > < / i > Link copied to clipboard
< / div >
2022-05-04 23:09:46 +00:00
< / div >
2023-10-29 12:51:00 +00:00
< script defer src = "{{'js/vendor/lozad.js' | asset}}" > < / script >
< script defer src = "{{'js/vendor/lite-youtube.js' | asset}}" > < / script >
2023-07-14 10:43:52 +00:00
2023-10-29 12:51:00 +00:00
{% if (v and v.spider) or (p and p.award_count("shit", v)) or (p and p.award_count("fireflies", v)) %}
< script defer src = "{{'js/vendor/critters.js' | asset}}" > < / script >
2023-07-14 11:33:27 +00:00
2023-10-29 12:51:00 +00:00
{% if v and v.spider %}
< script defer src = "{{'js/spider.js' | asset}}" > < / script >
{% endif %}
2023-07-14 10:43:52 +00:00
2023-10-29 12:51:00 +00:00
{% if p and p.award_count("shit", v) %}
< input hidden id = "shit_num" value = "{{p.award_count('shit', v)}}" >
< script defer src = "{{'js/bugs.js' | asset}}" > < / script >
{% endif %}
2023-07-14 10:43:52 +00:00
2023-10-29 12:51:00 +00:00
{% if p and p.award_count("fireflies", v) %}
< input hidden id = "fireflies_num" value = "{{p.award_count('fireflies', v)}}" >
< script defer src = "{{'js/fireflies.js' | asset}}" > < / script >
{% endif %}
2023-07-14 10:43:52 +00:00
{% endif %}
2022-12-19 01:20:14 +00:00
2023-12-01 19:42:42 +00:00
{% if IS_EVENT() and not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) and not (p and p.embed and p.domain == 'twitter.com') %}
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %}
< audio id = "event-song" hidden preload = "none" src = "{{song}}" loop > < / audio >
< script defer src = "{{'events/shared/js/music.js' | asset}}" > < / script >
2023-10-29 12:51:00 +00:00
{% endif %}
2022-11-21 08:52:22 +00:00
{% endblock %}