pdnew/themes/default/templates/layout/main.html

149 lines
6.6 KiB
HTML
Raw Permalink Normal View History

2024-04-12 19:22:00 +00:00
<!doctype html>
<html>
<head>
<title>{% if title %}{{ title }} | {{ site_name }}{% else %}{{ site_name }}{% endif %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
2024-10-22 15:02:22 +00:00
<link rel="stylesheet" href="/theme/css/main.css" />
2024-05-07 03:11:48 +00:00
<link rel="stylesheet" href="/theme/css/highlight.css" />
<link rel="stylesheet" href="/theme/css/nativeads.js.css" />
2024-10-22 15:02:22 +00:00
2024-04-12 19:22:00 +00:00
</head>
<body
{% if content is renderable %}
class="content-type-{{ content._lowerclass }}"
2024-04-12 19:22:00 +00:00
{% endif %}
>
2024-05-20 02:10:17 +00:00
<object id="bg" data="/theme/svg/bg.svg"></object>
2024-04-12 19:22:00 +00:00
<header>
2024-05-20 02:10:17 +00:00
<div class="security-info">
2024-11-04 12:16:58 +00:00
{% if client_ua %}
<span class="client-ua">{{ client_ua }}</span>
{% endif %}
2024-05-20 02:10:17 +00:00
{% if tls_cipher %}
<span class="tls-cipher">{{ tls_cipher }}</span>
{% endif %}
{% if client_cert_verified %}
{% if client_cert_fingerprint %}
<span
class="client-cert-fingerprint {% if client_cert_fingerprint_matched %}matched{% else %}unmatched{% endif %}"
>{{ client_cert_fingerprint }}</span>
{% endif %}
{% endif %}
{% if user %}
<span class="user">{{ user.name }}</span>
{% endif %}
2024-05-20 02:10:17 +00:00
</div>
<a class="logo" href="/"><img src="/theme/svg/logo.svg" /></a>
2024-05-20 02:10:17 +00:00
2024-06-18 01:38:50 +00:00
{% if block_seal %}
<div class="seal-message">
{{ block_seal }}
</div>
2024-06-18 01:38:50 +00:00
{% endif %}
2024-04-12 19:22:00 +00:00
</header>
<div class="menus">
{% if menu_main %}
{{ menu_main.render() }}
{% endif %}
{% if block_search %}
<div id="search-wrapper" class="with-burger">
<div id="search-show" class="burgers">
<a id="search-hide" class="burger show" href="#search-show">Open search</a>
<a class="burger hide" href="#search-hide">Close search</a>
</div>
<div>
{{ block_search.render() }}
</div>
</div>
{% endif %}
{% if menu_secondary %}
{{ menu_secondary.render() }}
{% endif %}
</div>
2024-04-12 19:22:00 +00:00
<main>
{% if content.menu %}
{{ content.menu.render() }}
{% endif %}
2024-04-23 08:17:44 +00:00
{% if title_show and title %}
2024-04-12 19:22:00 +00:00
<h1>{{ title }}</h1>
{% endif %}
{% set messages = get_flashed_messages(with_categories=True) %}
{% if messages|length %}
<section class="notifications">
{% block notifications %}
<ul class="messages">
{% for category, message in messages %}
<li class="message {{ category }}">{{ message }}</li>
{% endfor %}
</ul>
{% endblock %}
</section>
{% endif %}
{% if content is renderable %}
{{ content.render(mode) }}
{% else %}
{{ content }}
{% endif %}
</main>
<footer>
2024-04-12 19:22:00 +00:00
{% if menu_footer %}
{{ menu_footer.render() }}
{% endif %}
<object data="/theme/svg/fediverse.svg"></object>
<img src="/theme/svg/badge.svg" />
2024-04-12 19:22:00 +00:00
</footer>
<div class="ad native-ad native-ad-1 ytd-j yxd-j yxd-jd aff-content-col aff-inner-col aff-item-list ark-ad-message inplayer-ad inplayer_banners in_stream_banner trafficjunky-float-right dbanner preroll-blocker happy-inside-player blocker-notice blocker-overlay exo-horizontal ave-pl bottom-hor-block brs-block advboxemb wgAdBlockMessage glx-watermark-container overlay-advertising-new header-menu-bottom-ads rkads mdp-deblocker-wrapper amp-ad-inner imggif bloc-pub bloc-pub2 hor_banner aan_fake aan_fake__video-units rps_player_ads fints-block__row full-ave-pl full-bns-block vertbars video-brs player-bns-block wps-player__happy-inside gallery-bns-bl stream-item-widget adsbyrunactive happy-under-player adde_modal_detector adde_modal-overlay ninja-recommend-block aoa_overlay">
<div class="content">
<div class="moji"></div>
2024-11-04 12:16:58 +00:00
{% if client_ua_noadblock %}
<span class="fake-header">Your browser is so shite, you can't install an adblocker.</span>
<span class="fake-subheader">This is a major security risk. Install a less shit one and then an adblocker. <a href="https://getfirefox.com/" rel="noreferrer">Firefox</a> is the <em>least</em> shit one.</span>
{% else %}
<span class="fake-header">You don't seem to have an adblocker installed.</span>
<span class="fake-subheader">Go install one now. We recommend one of these, they're all <em>free & open source</em>:</span>
<ul>
<li>
<a href="https://adnauseam.io/" target="_blank" rel="noreferrer">AdNauseam</a>
<div class="adblocker-description">
The best one, weaponizes simulated ad clicks against advertisers.
</div>
</li>
<li>
<a href="https://ublockorigin.com/" target="_blank" rel="noreferrer">uBlock Origin</a>
<div class="adblocker-description">
The basis for AdNauseam, all the same features minus the weaponization.
</div>
</li>
<li>
<a href="https://ublockorigin.com/" target="_blank" rel="noreferrer">uBlock Origin Lite</a>
<div class="adblocker-description">
Crippled by <a href="https://en.wikipedia.org/wiki/Google_Chrome#Manifest_V3_2" target="_blank" rel="noreferrer">Manifest v3</a>.
Activate the 'complete' filtering mode to proceed, but think about upgrading to <a href="https://getfirefox.com/" target="_blank" rel="noreferrer">Firefox</a>.
</div>
</li>
</ul>
{% endif %}
</div>
</div>
2024-04-12 19:22:00 +00:00
</body>
</html>