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 %}
|
|
|
|
{% 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' %}
|
2022-11-29 20:20:26 +00:00
|
|
|
{% else %}
|
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-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" %}
|
|
|
|
{% set href = "https://secure.transequality.org/site/Donation2?df_id=1480" %}
|
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 %}
|
|
|
|
{% set path = "files/assets/images/" ~ SITE_NAME %}
|
|
|
|
|
|
|
|
{%- if not v and os_path.exists(path ~ "/cached.webp") -%}
|
|
|
|
{% set banner_url = 'cached.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 %}
|
|
|
|
|
2023-05-02 16:44:39 +00:00
|
|
|
<div class="banner-wrapper">
|
|
|
|
<div style="padding: 0 0 12.2%">
|
|
|
|
<div>
|
|
|
|
<img data-nonce="{{g.nonce}}" data-onclick="{{expand|default('expandImage()')}}" class="{{class|default('site-banner')}}" alt="{{alt|default('site banner')}}" src="{{banner_url}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-23 12:38:30 +00:00
|
|
|
</a>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% include "header.html" %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block mobileUserBanner %}{% endblock %}
|
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
|
|
|
{% block sidebar %}
|
|
|
|
{% if has_sidebar and (home or p) %}
|
|
|
|
{% set sidebar = "sidebar_" ~ SITE_NAME ~ ".html" %}
|
|
|
|
{% include sidebar %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
<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>
|
|
|
|
</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>
|
2023-01-24 10:40:10 +00:00
|
|
|
<div class="toast" id="toast-post-success" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 100000" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="toast-body bg-success text-center text-white">
|
|
|
|
<i class="fas fa-comment-alt-smile mr-2"></i><span id="toast-post-success-text">Action successful!</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-24 10:40:10 +00:00
|
|
|
<div class="toast" id="toast-post-error" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 100000" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="toast-body bg-danger text-center text-white">
|
|
|
|
<i class="fas fa-exclamation-circle mr-2"></i><span id="toast-post-error-text">Error, please try again later.</span>
|
|
|
|
</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>
|
2022-12-01 22:37:50 +00:00
|
|
|
{% if not err and v and v.spider %}
|
2023-05-03 18:56:54 +00:00
|
|
|
{% if not (p and p.award_count("shit", v)) %}
|
|
|
|
<script defer src="{{'js/vendor/critters.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
2022-09-24 07:04:06 +00:00
|
|
|
<script defer src="{{'js/spider.js' | asset}}"></script>
|
2022-09-20 17:52:52 +00:00
|
|
|
{% endif %}
|
2022-12-04 19:02:22 +00:00
|
|
|
|
2023-04-25 14:34:09 +00:00
|
|
|
{% if IS_DKD() %}
|
2023-04-25 15:59:16 +00:00
|
|
|
{% include "events/DKD/music.html" %}
|
2023-04-25 14:34:09 +00:00
|
|
|
{% elif IS_FISTMAS() %}
|
2023-04-25 15:59:16 +00:00
|
|
|
{% include "events/fistmas/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 %}
|