forked from MarseyWorld/MarseyWorld
129 lines
4.4 KiB
HTML
129 lines
4.4 KiB
HTML
{%- import 'util/helpers.html' as help -%}
|
|
{%- import 'html_head.html' as html_head with context -%}
|
|
{%- import 'util/macros.html' as macros with context -%}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
{% if request.path == '/' %}
|
|
{% set csp=CONTENT_SECURITY_POLICY_HOME %}
|
|
{% endif %}
|
|
{% if not 'post/' in request.path and not '@' in request.path %}
|
|
{{html_head.html_head(true, true, true, csp, none, "", "", true, 'post/' in request.path)}}
|
|
{% else %}
|
|
{# this should really be fixed at some point, prolly after 10/31 #}
|
|
<head>
|
|
{{html_head.javascript()}}
|
|
{{html_head.stylesheets(true, '')}}
|
|
{{html_head.meta_tags_1(csp, none, true)}}
|
|
<link rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
|
|
{% block title %}
|
|
<title>{{SITE_NAME}}</title>
|
|
{{html_head.meta_tags_2(SITE_NAME, SITE_FULL)}}
|
|
{% endblock %}
|
|
{{html_head.seo()}}
|
|
{{html_head.cf_2fa_verify()}}
|
|
</head>
|
|
{% endif %}
|
|
|
|
|
|
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %} background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background){% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}>
|
|
|
|
{% block Banner %}
|
|
{% include "modals/expanded_image.html" %}
|
|
|
|
{% if '@' not in request.path %}
|
|
|
|
{% if sub and SITE_NAME != WPD %}
|
|
{% set src = sub.banner_url %}
|
|
{% set alt = ['/h/', sub, 'banner']|join %}
|
|
{% elif SITE_NAME == "rDrama" %}
|
|
{% set href = "https://secure.transequality.org/site/Donation2?df_id=1480" %}
|
|
{% set expand = false %}
|
|
{% endif %}
|
|
|
|
{{ macros.banner(src, href, alt, expand) }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% include "header.html" %}
|
|
|
|
{% block mobileUserBanner %}
|
|
{% endblock %}
|
|
|
|
<div class="container">
|
|
<div class="row justify-content-around" id="main-content-row">
|
|
|
|
<div class="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) %}
|
|
{% include "sidebar_" + SITE_NAME + ".html" %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
|
|
{% 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" role="alert" aria-live="assertive" aria-atomic="true" 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>
|
|
</div>
|
|
|
|
<div class="toast" id="toast-post-success" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role="alert" aria-live="assertive" aria-atomic="true" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
|
<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>
|
|
<div class="toast" id="toast-post-error" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role="alert" aria-live="assertive" aria-atomic="true" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
|
<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>
|
|
|
|
<script defer src="{{'js/lozad.js' | asset}}"></script>
|
|
|
|
<script defer src="{{'js/lite-youtube.js' | asset}}"></script>
|
|
|
|
{% if v and v.spider %}
|
|
<script defer src="{{'js/critters.js' | asset}}"></script>
|
|
<script defer src="{{'js/spider.js' | asset}}"></script>
|
|
{% endif %}
|
|
</body>
|
|
|
|
</html>
|