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

149 lines
6.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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" />
<link rel="stylesheet" href="/theme/css/main.css" />
<link rel="stylesheet" href="/theme/css/highlight.css" />
<link rel="stylesheet" href="/theme/css/nativeads.js.css" />
</head>
<body
{% if content is renderable %}
class="content-type-{{ content._lowerclass }}"
{% endif %}
>
<object id="bg" data="/theme/svg/bg.svg"></object>
<header>
<div class="security-info">
{% if client_ua %}
<span class="client-ua">{{ client_ua }}</span>
{% endif %}
{% 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 %}
</div>
<a class="logo" href="/"><img src="/theme/svg/logo.svg" /></a>
{% if block_seal %}
<div class="seal-message">
{{ block_seal }}
</div>
{% endif %}
</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>
<main>
{% if content.menu %}
{{ content.menu.render() }}
{% endif %}
{% if title_show and title %}
<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>
{% if menu_footer %}
{{ menu_footer.render() }}
{% endif %}
<object data="/theme/svg/fediverse.svg"></object>
<img src="/theme/svg/badge.svg" />
</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>
{% 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>
</body>
</html>