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-06-30 19:39:19 +00:00
|
|
|
{% block pulltorefresh %}
|
|
|
|
<div id="pulltorefresh">
|
2023-07-22 16:24:16 +00:00
|
|
|
<img id="pulltorefresh-img" src="{{SITE_FULL_IMAGES}}/e/marseyunamused.webp">
|
2023-06-30 19:39:19 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block banner %}
|
2022-11-15 19:14:29 +00:00
|
|
|
{% include "modals/expanded_image.html" %}
|
2022-12-02 21:31:21 +00:00
|
|
|
{% if err or '@' not in request.path %}
|
2023-03-08 06:51:40 +00:00
|
|
|
{% if IS_FISTMAS() and not sub %}
|
2023-04-25 15:59:16 +00:00
|
|
|
{% include 'events/fistmas/banner.html' %}
|
2023-09-28 23:58:09 +00:00
|
|
|
{% elif IS_HOMOWEEN() and not sub %}
|
|
|
|
{% include 'events/homoween/banner.html' %}
|
2022-11-29 20:20:26 +00:00
|
|
|
{% else %}
|
2023-09-26 17:06:55 +00:00
|
|
|
{% set path = "files/assets/images/" ~ SITE_NAME %}
|
|
|
|
|
2023-04-27 12:08:11 +00:00
|
|
|
{% if err and SITE_NAME == 'rDrama' %}
|
2022-12-02 21:31:21 +00:00
|
|
|
{% set src = "banner_error.webp" | asset_siteimg %}
|
2022-12-11 23:44:34 +00:00
|
|
|
{% elif sub and sub.has_banners %}
|
|
|
|
{% set src = sub.random_banner() %}
|
2022-11-29 20:20:26 +00:00
|
|
|
{% set alt = ['/h/', sub, 'banner']|join %}
|
|
|
|
{% set class = 'site-banner-hole' %}
|
2023-09-26 17:06:55 +00:00
|
|
|
{% elif get_orgy(v) and os_path.exists(path ~ "/orgy_banners") %}
|
|
|
|
{% set src = macros.random_image("assets/images/" ~ SITE_NAME ~ "/orgy_banners") %}
|
|
|
|
{% set href = "/chat" %}
|
|
|
|
{% set expand = false %}
|
2023-04-27 12:08:11 +00:00
|
|
|
{% elif IS_EVENT() %}
|
|
|
|
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners") %}
|
2022-11-29 20:20:26 +00:00
|
|
|
{% elif SITE_NAME == "rDrama" %}
|
2023-08-25 21:14:06 +00:00
|
|
|
{% set href = "https://donate.transequality.org/a/ncte" %}
|
2022-12-13 21:54:34 +00:00
|
|
|
{% set expand = false %}
|
2022-11-29 20:20:26 +00:00
|
|
|
{% endif %}
|
2022-12-13 21:56:12 +00:00
|
|
|
|
|
|
|
{% if SITE_NAME == "WPD" %}
|
|
|
|
{% if sub %}
|
|
|
|
{% set href = "/h/" ~ sub %}
|
|
|
|
{% set expand = false %}
|
|
|
|
{% else %}
|
|
|
|
{% set href = "/" %}
|
|
|
|
{% set expand = false %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2023-03-23 12:38:30 +00:00
|
|
|
|
2023-05-02 18:04:26 +00:00
|
|
|
<a id="banner-link" href="{{href|default(src)}}" rel="nofollow noopener">
|
2023-03-23 12:38:30 +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 os_path.exists(path ~ "/banners") -%}
|
2023-08-18 20:33:29 +00:00
|
|
|
{% set banner_url = macros.random_image("assets/images/" ~ SITE_NAME ~ "/banners") %}
|
2023-03-23 12:38:30 +00:00
|
|
|
{% else -%}
|
|
|
|
{% set banner_url = 'banner.webp' | asset_siteimg %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2023-05-05 21:45:25 +00:00
|
|
|
|
2023-05-05 22:08:12 +00:00
|
|
|
{% macro img_element() %}
|
2023-08-17 02:01:55 +00:00
|
|
|
<img data-nonce="{{g.nonce}}" data-onclick="{{expand|default('expandImage()')}}" class="{{class|default('site-banner')}}" alt="{{alt|default('site banner')}}" src="{{banner_url}}">
|
2023-05-05 22:08:12 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% if sub and sub.has_banners %}
|
|
|
|
{{img_element()}}
|
|
|
|
{% else %}
|
|
|
|
<div class="banner-wrapper">
|
|
|
|
<div style="padding: 0 0 12.2%">
|
|
|
|
<div>
|
|
|
|
{{img_element()}}
|
|
|
|
</div>
|
2023-05-02 16:44:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-05 22:08:12 +00:00
|
|
|
{% endif %}
|
2023-03-23 12:38:30 +00:00
|
|
|
</a>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% include "header.html" %}
|
2023-09-28 23:58:09 +00:00
|
|
|
|
|
|
|
{% block mobileUserBanner %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% if IS_HOMOWEEN() %}
|
|
|
|
{% block hauntBg %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-around" id="main-content-row">
|
2023-05-03 14:20:26 +00:00
|
|
|
<div class="order-first col h-100 {% block customPadding %}{% if request.path.startswith('/@') %}user-gutters{% else %}custom-gutters{% endif %}{% endblock %}" id="main-content-col">
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block desktopUserBanner %}{% endblock %}
|
|
|
|
{% block desktopBanner %}{% endblock %}
|
|
|
|
{% block PseudoSubmitForm %}{% endblock %}
|
|
|
|
{% block searchText %}{% endblock %}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
{% block pagenav %}{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
2023-08-29 11:05:10 +00:00
|
|
|
{% block sidebar %}
|
|
|
|
{% if has_sidebar and (home or p) %}
|
|
|
|
{% set sidebar = "sidebar_" ~ SITE_NAME ~ ".html" %}
|
2023-09-28 23:58:09 +00:00
|
|
|
<div id="desktop-sidebar">
|
|
|
|
{% include sidebar %}
|
|
|
|
</div>
|
2023-08-29 11:05:10 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block mobilenavbar %}{% include "mobile_navigation_bar.html" %}{% endblock %}
|
|
|
|
{% block actionsModal %}{% endblock %}
|
|
|
|
{% block reportCommentModal %}{% endblock %}
|
|
|
|
{% block GIFtoast %}{% endblock %}
|
|
|
|
{% block GIFpicker %}{% endblock %}
|
2023-01-20 07:14:59 +00:00
|
|
|
<div class="toast clipboard" id="toast-success" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="toast-body text-center">
|
|
|
|
<i class="fas fa-check-circle text-success mr-2"></i>Link copied to clipboard
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-18 19:16:40 +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-07-14 11:33:27 +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>
|
|
|
|
|
|
|
|
{% if v and v.spider %}
|
|
|
|
<script defer src="{{'js/spider.js' | asset}}"></script>
|
2023-07-14 10:43:52 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2023-07-14 11:33:27 +00:00
|
|
|
{% if p and p.award_count("shit", v) %}
|
2023-07-14 11:18:23 +00:00
|
|
|
<input hidden id="shit_num" value="{{p.award_count('shit', v)}}">
|
2023-07-14 10:43:52 +00:00
|
|
|
<script defer src="{{'js/bugs.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-07-14 11:33:27 +00:00
|
|
|
{% if p and p.award_count("fireflies", v) %}
|
2023-07-14 11:18:23 +00:00
|
|
|
<input hidden id="fireflies_num" value="{{p.award_count('fireflies', v)}}">
|
2023-07-14 10:43:52 +00:00
|
|
|
<script defer src="{{'js/fireflies.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
2022-09-20 17:52:52 +00:00
|
|
|
{% endif %}
|
2022-12-04 19:02:22 +00:00
|
|
|
|
2023-09-28 23:58:09 +00:00
|
|
|
{% if IS_EVENT() %}
|
|
|
|
{% include "events/shared/music.html" %}
|
2022-12-27 02:22:04 +00:00
|
|
|
{% endif %}
|
2022-12-19 01:20:14 +00:00
|
|
|
|
2022-11-21 08:52:22 +00:00
|
|
|
{% endblock %}
|