mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
* remove mask-icon as it basically unused nowadays * remove 194x194-size favicon in 194x194 is a hack for firefox only useful when chrome-android-icon in 192x192 is specifically created for android with a drop-shadow. This is not the case with pretix-logo or even custom logos. So we can safely drop the 194x194 size. Co-authored-by: Raphael Michel <michel@rami.io>
87 lines
4.1 KiB
HTML
87 lines
4.1 KiB
HTML
{% load compress %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
{% load safelink %}
|
|
{% load statici18n %}
|
|
{% load thumb %}
|
|
<!DOCTYPE html>
|
|
<html{% if rtl %} dir="rtl" class="rtl"{% endif %} lang="{{ html_locale }}">
|
|
<head>
|
|
<title>{% block thetitle %}{% endblock %}</title>
|
|
{% if css_file %}
|
|
<link rel="stylesheet" type="text/css" href="{{ css_file }}" />
|
|
{% else %}
|
|
{% compress css %}
|
|
<link rel="stylesheet" type="text/x-scss" href="{% static "pretixpresale/scss/main.scss" %}"/>
|
|
{% endcompress %}
|
|
{% endif %}
|
|
|
|
{% include "pretixpresale/fragment_js.html" %}
|
|
<meta name="referrer" content="origin">
|
|
{{ html_head|safe }}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
|
|
{% block custom_header %}{% endblock %}
|
|
{% if settings.favicon %}
|
|
<link rel="icon" href="{{ settings.favicon|thumb:'16x16^' }}">
|
|
<link rel="shortcut icon" href="{{ settings.favicon|thumb:'16x16^' }}">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ settings.favicon|thumb:'16x16^' }}">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ settings.favicon|thumb:'32x32^' }}">
|
|
<link rel="icon" type="image/png" sizes="192x192" href="{{ settings.favicon|thumb:'192x192^' }}">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ settings.favicon|thumb:'180x180^' }}">
|
|
{% elif development_warning or debug_warning %}
|
|
<link rel="shortcut icon" href="{% static "pretixbase/img/favicon-debug.ico" %}">
|
|
{% else %}
|
|
<link rel="icon" href="{% static "pretixbase/img/favicon.ico" %}">
|
|
<link rel="shortcut icon" href="{% static "pretixbase/img/favicon.ico" %}">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{% static "pretixbase/img/icons/favicon-16x16.png" %}">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{% static "pretixbase/img/icons/favicon-32x32.png" %}">
|
|
<link rel="icon" type="image/png" sizes="192x192" href="{% static "pretixbase/img/icons/android-chrome-192x192.png" %}">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{% static "pretixbase/img/icons/apple-touch-icon.png" %}">
|
|
{% endif %}
|
|
<link rel="manifest" href="{% url "presale:site.webmanifest" %}">
|
|
<meta name="msapplication-TileColor" content="{{ settings.primary_color|default:"#3b1c4a" }}">
|
|
<meta name="msapplication-config" content="{% url "presale:browserconfig.xml" %}">
|
|
<meta name="theme-color" content="{{ settings.primary_color|default:"#3b1c4a" }}">
|
|
</head>
|
|
<body class="nojs" data-locale="{{ request.LANGUAGE_CODE }}" data-now="{% now "U.u" %}" data-datetimeformat="{{ js_datetime_format }}" data-timeformat="{{ js_time_format }}" data-dateformat="{{ js_date_format }}" data-datetimelocale="{{ js_locale }}" data-currency="{{ request.event.currency }}">
|
|
{{ html_page_header|safe }}
|
|
<header>
|
|
{% block above %}
|
|
{% endblock %}
|
|
</header>
|
|
<div class="container main-box">
|
|
{% block page %}
|
|
{% endblock %}
|
|
<footer>
|
|
{% block footer %}
|
|
{% endblock %}
|
|
<nav aria-label="{% trans "Footer Navigation" %}">
|
|
<ul>
|
|
{% block footernav %}
|
|
{% endblock %}
|
|
{% if footer_text %}
|
|
<li>{{ footer_text }}</li>
|
|
{% endif %}
|
|
{% for f in footer %}
|
|
<li><a href="{% safelink f.url %}" target="_blank" rel="noopener">{{ f.label }}</a></li>
|
|
{% endfor %}
|
|
{% include "pretixpresale/base_footer.html" %} {# removing or hiding this might be in violation of pretix' license #}
|
|
</ul>
|
|
</nav>
|
|
</footer>
|
|
</div>
|
|
{% include "pretixpresale/fragment_modals.html" %}
|
|
{% if DEBUG %}
|
|
<script type="text/javascript" src="{% url 'javascript-catalog' lang=request.LANGUAGE_CODE %}"></script>
|
|
{% else %}
|
|
<script src="{% statici18n request.LANGUAGE_CODE %}"></script>
|
|
{% endif %}
|
|
{% if request.session.iframe_session %}
|
|
{% compress js %}
|
|
<script type="text/javascript" src="{% static "iframeresizer/iframeResizer.contentWindow.js" %}"></script>
|
|
{% endcompress %}
|
|
{% endif %}
|
|
{{ html_foot|safe }}
|
|
</body>
|
|
</html>
|