2022-06-07 09:26:22 +00:00
{%- import 'util/helpers.html' as help -%}
2022-10-21 18:39:45 +00:00
{%- import 'html_head.html' as html_head with context -%}
2022-05-04 23:09:46 +00:00
<!DOCTYPE html>
< html lang = "en" >
2022-10-21 18:39:45 +00:00
{% if request.path == '/' %}
{% set csp=CONTENT_SECURITY_POLICY_HOME %}
{% endif %}
2022-10-22 17:25:44 +00:00
{% if not 'post/' in request.path and not '@' in request.path %}
2022-10-21 18:39:45 +00:00
{{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 #}
2022-05-04 23:09:46 +00:00
< head >
2022-10-21 18:39:45 +00:00
{{html_head.javascript()}}
{{html_head.stylesheets(true, '')}}
{{html_head.meta_tags_1(csp, none, true)}}
2022-09-24 07:14:20 +00:00
< link rel = "icon" type = "image/webp" href = "{{'icon.webp' | asset_siteimg}}" >
2022-05-04 23:09:46 +00:00
{% block title %}
< title > {{SITE_NAME}}< / title >
2022-10-21 18:39:45 +00:00
{{html_head.meta_tags_2(SITE_NAME, SITE_FULL)}}
2022-05-04 23:09:46 +00:00
{% endblock %}
2022-10-21 18:39:45 +00:00
{{html_head.seo()}}
{{html_head.cf_2fa_verify()}}
2022-05-04 23:09:46 +00:00
< / head >
2022-10-21 18:39:45 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
< 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 %}
2022-10-08 02:04:46 +00:00
{% include "expanded_image_modal.html" %}
2022-06-18 02:13:55 +00:00
{% if '@' not in request.path %}
2022-07-11 13:18:05 +00:00
{% if sub and SITE_NAME != 'WPD' %}
2022-06-27 01:00:45 +00:00
< a href = "{{sub.banner_url}}" >
2022-09-12 05:25:04 +00:00
< img alt = "/h/{{sub}} banner" onclick = "expandDesktopImage()" src = "{{sub.banner_url}}" width = 100% style = "object-fit:cover;max-height:min(42vh,30vw)!important" >
2022-06-27 01:00:45 +00:00
< / a >
2022-07-10 09:43:03 +00:00
{% elif SITE_NAME == 'rDrama' %}
2022-10-10 05:22:18 +00:00
< a rel = "nofollow noopener noreferrer" href = "https://secure.transequality.org/site/Donation2?df_id=1480" >
2022-05-04 23:09:46 +00:00
{% if v and (v.is_banned or v.agendaposter) %}
2022-06-22 15:59:47 +00:00
< img alt = "site banner" src = "/i/{{SITE_NAME}}/banner2.webp?v=2000" width = "100%" >
2022-05-04 23:09:46 +00:00
{% else %}
2022-07-10 09:43:03 +00:00
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=25' %}
2022-09-24 07:14:20 +00:00
< img alt = "site banner" src = "{% if v %}{{image}}{% else %}{{'cached.webp' | asset_siteimg}}{% endif %}" width = "100%" >
2022-05-04 23:09:46 +00:00
{% endif %}
< / a >
2022-09-29 18:08:36 +00:00
{% elif SITE_NAME == 'WPD' %}
{% if v %}
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
{% set banner = "/" + path + "/" + listdir('files/' + path)|random() + '?v=1' %}
{% else %}
{% set banner = 'cached.webp' | asset_siteimg %}
{% endif %}
2022-10-07 23:01:04 +00:00
< a href = "{{banner}}" >
2022-10-07 23:01:26 +00:00
< img alt = "site banner" onclick = "expandDesktopImage()" src = "{{banner}}" width = "100%" >
2022-10-07 23:01:04 +00:00
< / a >
2022-05-04 23:09:46 +00:00
{% else %}
2022-09-29 18:08:36 +00:00
{% if SITE_NAME == 'PCM' %}
2022-10-07 01:32:08 +00:00
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
2022-10-07 01:35:21 +00:00
{% set banner = "/" + path + "/" + listdir('files/' + path)|max + '?v=1' %}
2022-08-19 20:16:31 +00:00
{% else %}
2022-09-24 07:14:20 +00:00
{% set banner = 'banner.webp' | asset_siteimg %}
2022-08-19 20:16:31 +00:00
{% endif %}
< a href = "{{banner}}" >
2022-08-24 16:43:08 +00:00
< img alt = "site banner" onclick = "expandDesktopImage()" src = "{{banner}}" width = "100%" >
2022-08-01 22:05:39 +00:00
< / a >
2022-05-04 23:09:46 +00:00
{% endif %}
{% 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 %}
2022-09-29 11:50:03 +00:00
{% if has_sidebar and (home or p) %}
2022-05-04 23:09:46 +00:00
{% 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 >
2022-09-24 07:04:06 +00:00
< script defer src = "{{'js/lozad.js' | asset}}" > < / script >
2022-05-04 23:09:46 +00:00
{% if v %}
2022-09-24 07:04:06 +00:00
< script defer src = "{{'js/formatting.js' | asset}}" > < / script >
2022-05-04 23:09:46 +00:00
{% endif %}
2022-09-24 07:04:06 +00:00
< script defer src = "{{'js/lite-youtube.js' | asset}}" > < / script >
2022-05-04 23:09:46 +00:00
2022-09-20 17:52:52 +00:00
{% if v and v.spider %}
2022-09-24 07:04:06 +00:00
< script defer src = "{{'js/critters.js' | asset}}" > < / script >
< script defer src = "{{'js/spider.js' | asset}}" > < / script >
2022-09-20 17:52:52 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
< / body >
2022-10-05 22:19:06 +00:00
< / html >