webseite/templates/layout.html

200 lines
14 KiB
HTML
Raw Normal View History

2019-02-12 17:45:44 +01:00
<!DOCTYPE html>
<html{% if this.alt %} lang="{{ this.alt }}"{% endif %}>
2019-02-12 17:45:44 +01:00
<head>
<meta charset="utf-8">
<title>{% block title %}Startseite{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="{{ '/css/main.min.css'|asseturl }}" />
<!--[if lte IE 9]><link rel="stylesheet" href="{{ 'assets/css/ie9.min.css'|asseturl }}" /><![endif]-->
2019-02-12 23:52:50 +01:00
{% block expand_description
%}<meta name="description" content="{%
if bag('translate', this.alt, 'description') %}{{ bag('translate', this.alt, 'description') }}{%
else %}{{ bag('translate', 'de', 'description') }}{% endif %}" />{%
endblock %}
<link rel="apple-touch-icon" sizes="180x180" href="{{ '/images/icons/apple-touch-icon.png'|asseturl }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/images/icons/favicon-32x32.png'|asseturl }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ '/images/icons/favicon-16x16.png'|asseturl }}">
<link rel="manifest" href="{{ '/images/icons/site.webmanifest'|asseturl }}">
<link rel="mask-icon" href="{{ '/images/icons/safari-pinned-tab.svg'|asseturl }}" color="#e64f2d">
<link rel="shortcut icon" href="{{ '/images/icons/favicon.ico'|asseturl }}">
2019-02-12 17:45:44 +01:00
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="{{ '/images/icons/browserconfig.xml'|asseturl }}">
2019-02-12 23:52:50 +01:00
<meta name="theme-color" content="#e64f2d">{%
block expand_header %}{% endblock %}
<script src="{{ '/js/jquery.min.js'|asseturl }}"></script>
2019-02-12 17:45:44 +01:00
</head>
<body class="{% if this._path == '/' %}landing {% endif %} is-preload">
<div id="page-wrapper">
<!-- Header -->
<header id="header">
<h1 id="logo">
<div class="tooltip">
2019-02-12 21:36:56 +01:00
<a id="tb-opened" class="button tb-opened navbar special" href="{%
2019-02-13 17:28:47 +01:00
if bag('translate', this.alt, 'api_url_open') %}{{ bag('translate', this.alt, 'api_url_open') }}{%
else %}{{ bag('translate', 'de', 'api_url_open') }}{% endif
2019-02-12 21:36:56 +01:00
%}">{%
if bag('translate', this.alt, 'api_space') %}{{ bag('translate', this.alt, 'api_space') }}{%
else %}{{ bag('translate', 'de', 'api_space') }}{% endif %} {%
if bag('translate', this.alt, 'api_open') %}{{ bag('translate', this.alt, 'api_open') }}{%
else %}{{ bag('translate', 'de', 'api_open') }}{% endif %}</a>
<span class="tooltiptext">{% if bag('translate', this.alt, 'api_open_text')
%}{{ bag('translate', this.alt, 'api_open_text') }}{%
else %}{{ bag('translate', 'de', 'api_open_text') }}{% endif %}</span>
2019-02-12 17:45:44 +01:00
</div>
<div class="tooltip">
2019-02-12 21:36:56 +01:00
<a id="tb-closed" class="tb-closed" href="{% if bag('translate', this.alt, 'api_url') %}{{ bag('translate', this.alt, 'api_url') }}{%
else %}{{ bag('translate', 'de', 'api_url') }}{% endif
%}">{%
if bag('translate', this.alt, 'api_space') %}{{ bag('translate', this.alt, 'api_space') }}{%
else %}{{ bag('translate', 'de', 'api_space') }}{%
endif %} {% if bag('translate', this.alt, 'api_closed') %}{{ bag('translate', this.alt, 'api_closed') }}{%
else %}{{ bag('translate', 'de', 'api_closed') }}{% endif %}</a>
<span class="tooltiptext">{% if bag('translate', this.alt, 'api_opening_time')
%}{{ bag('translate', this.alt, 'api_opening_time') }}{%
else %}{{ bag('translate', 'de', 'api_opening_time') }}{% endif %}</span>
2019-02-12 17:45:44 +01:00
</div>
</h1>
<nav id="nav">
<ul>
<li{% if this._path == '/' %} class="active"{% endif
%}><a href="{{ '/'|url }}">{%
if bag('navigation', this.alt, 'home') %}{{ bag('navigation', this.alt, 'home') }}{%
2019-02-12 21:36:56 +01:00
else %}{{ bag('navigation', 'de', 'home') }}{% endif %}</a></li>{%
2019-02-12 17:45:44 +01:00
for href, title, print in [
['/blog', 'Blog', 1],
['/projekte', 'Projekte', 1],
['/verein', 'Verein', 1],
['/termine', 'Kalender', 1],
['/kontakt', 'Kontakt', 1]
] %}{% if print %}
<li{% if this.is_child_of(href) %} class="active"{% endif
%}><a href="{{ href|url }}">{% if bag('navigation', this.alt, title) %}{{ bag('navigation', this.alt, title) }}{% else %}{{ title }}{% endif %}</a>{%
if title == 'Projekte' %}
<ul>{% set root = site.get('/projekte/', alt=this.alt) %}{%
for child in root.children recursive %}{% if loop.index <= 7 %}
<li{%
if this._path == child._path %} class="active"{% endif
%}><a href="{% if this.alt == 'de' %}{% else %}/{{ this.alt }}/{{ this.alt }}/{% endif %}{{ child|url }}">{{ child.title }}</a></li>{%
endif %}{% endfor %}
2019-02-12 21:36:56 +01:00
<li><a href="{{ '/projekte/'|url }}">{%
if bag('navigation', this.alt, 'show_projekt') %}{{ bag('navigation', this.alt, 'show_projekt') }}{%
else %}{{ bag('navigation', 'de', 'show_projekt') }}{% endif %}</a></li>
<li><a href="{{ '/feed_projekte.xml'|url }}">{%
if bag('navigation', this.alt, title) %}{{ bag('navigation', this.alt, title) }}{%
else %}{{ title }}{% endif %} {%
if bag('navigation', this.alt, 'xml') %}{{ bag('navigation', this.alt, 'xml') }}{%
else %}{{ bag('navigation', 'de', 'xml') }}{% endif %}</a></li>
2019-02-12 17:45:44 +01:00
</ul>{%
elif title == 'Verein' %}
2019-02-12 21:36:56 +01:00
<ul><li><a href="{{ '/vereinsheim'|url }}">{%
if bag('navigation', this.alt, 'Vereinsheim') %}{{ bag('navigation', this.alt, 'Vereinsheim') }}{%
else %}{{ bag('navigation', 'de', 'Vereinsheim') }}{% endif %}</a></li>
<li><a href="{{ '/vereinsheim/elektrowerkstatt'|url }}">{%
if bag('navigation', this.alt, 'Elektrowerkstatt') %}{{ bag('navigation', this.alt, 'Elektrowerkstatt') }}{%
else %}{{ bag('navigation', 'de', 'Elektrowerkstatt') }}{% endif %}</a></li>
<li><a href="{{ '/vereinsheim/grobwerkstatt'|url }}">{%
if bag('navigation', this.alt, 'Grobwerkstatt') %}{{ bag('navigation', this.alt, 'Grobwerkstatt') }}
{% else %}{{ bag('navigation', 'de', 'Grobwerkstatt') }}{% endif %}</a></li>
<li><a href="{{ '/vereinsheim/lounge'|url }}">{%
if bag('navigation', this.alt, 'Lounge') %}{{ bag('navigation', this.alt, 'Lounge') }}{%
else %}{{ bag('navigation', 'de', 'Lounge') }}{% endif %}</a></li>
<li><a href="{{ '/verein/presse'|url }}">{%
if bag('navigation', this.alt, 'Presse') %}{{ bag('navigation', this.alt, 'Presse') }}{%
else %}{{ bag('navigation', 'de', 'Presse') }}{% endif %}</a></li>
<li><a href="https://tbbs.me">{%
if bag('navigation', this.alt, 'Wiki') %}{{ bag('navigation', this.alt, 'Wiki') }}{%
else %}{{ bag('navigation', 'de', 'Wiki') }}{% endif %}</a></li>
<li><a href="{{ '/verein/dokumente'|url }}">{%
if bag('navigation', this.alt, 'satzung') %}{{ bag('navigation', this.alt, 'satzung') }}{%
else %}{{ bag('navigation', 'de', 'satzung') }}{% endif %}</a></li>
<li><a href="{{ '/mitglied-werden'|url }}" class="button special">{%
if bag('navigation', this.alt, 'mitglied') %}{{ bag('navigation', this.alt, 'mitglied') }}{%
else %}{{ bag('navigation', 'de', 'mitglied') }}{% endif %}</a></li>
<li><a href="{{ '/verein/spenden'|url }}">{%
if bag('navigation', this.alt, 'spenden') %}{{ bag('navigation', this.alt, 'spenden') }}{%
else %}{{ bag('navigation', 'de', 'spenden') }}{% endif %}</a></li>
<li><a href="{{ '/antworten'|url }}">{%
if bag('navigation', this.alt, 'fragen') %}{{ bag('navigation', this.alt, 'fragen') }}{%
else %}{{ bag('navigation', 'de', 'fragen') }}{% endif %}</a></li></ul>{%
2019-02-12 17:45:44 +01:00
elif title == 'Kontakt' %}
2019-02-12 21:36:56 +01:00
<ul><li><a href="{{ '/kontakt'|url }}">{%
if bag('navigation', this.alt, 'Kontakt') %}{{ bag('navigation', this.alt, 'Kontakt') }}{%
else %}{{ bag('navigation', 'de', 'Kontakt') }}{% endif %}</a></li>
<li><a href="{{ '/impressum'|url }}">{%
if bag('navigation', this.alt, 'Impressum') %}{{ bag('navigation', this.alt, 'Impressum') }}{%
else %}Impressum{% endif %}</a></li>
<li><a href="{{ '/datenschutz/'|url }}">{%
if bag('navigation', this.alt, 'Datenschutz') %}{{ bag('navigation', this.alt, 'Datenschutz') }}{%
else %}Datenschutz{% endif %}</a></li>
2019-02-12 17:45:44 +01:00
</ul>{%
elif title == 'Blog' %}
<ul>{% set root = site.get('/blog/', alt=this.alt) %}{%
for child in root.children recursive %}
<li{%
if this._path == child._path %} class="active"{% endif
%}><a href="{{ child|url }}">{{ child.shorttitle }}</a></li>{%
endfor %}
<li><a href="{{ '/feed_blog.xml'|url }}">RSS Feed</a></li></ul>{%
endif %}</li>{%
endif %}{%
endfor %}
<li class="last"><a href="/{% if bag('navigation', this.alt, 'default_path') %}{{ bag('navigation', this.alt, 'default_path') }}{% else %}..{% endif %}{{ this._path }}">{% if bag('navigation', this.alt, 'sprache') %}{{ bag('navigation', this.alt, 'sprache') }}{% else %}Sprache{% endif %}</a>
<ul class="last">
<li><a href="{{ this._path }}">{%
2019-02-12 21:36:56 +01:00
if bag('navigation', this.alt, 'German') %}{{ bag('navigation', this.alt, 'German') }}{%
else %}{{ bag('navigation', 'de', 'German') }}{% endif %}</a></li>
<li><a href="/en{{ this._path }}">{%
if bag('navigation', this.alt, 'Englisch') %}{{ bag('navigation', this.alt, 'Englisch') }}{%
else %}{{ bag('navigation', 'de', 'Englisch') }}{%
endif %} <i>({%
if bag('navigation', this.alt, 'falls') %}{{ bag('navigation', this.alt, 'falls') }}{%
2019-02-12 21:44:53 +01:00
else %}{{ bag('navigation', 'de', 'falls') }}{%
2019-02-12 21:36:56 +01:00
endif %})</i></a><li>
2019-02-12 17:45:44 +01:00
</ul>
</li>
</ul>
</nav>
</header>
<!-- Main -->
{% block body %}{% endblock %}
<!-- Footer -->
<footer id="footer">
2019-02-12 23:52:50 +01:00
<ul class="icons">{%
for label, icon, href in [
2019-02-12 17:45:44 +01:00
['Twitter', 'fab fa-twitter', "https://twitter.com/toolboxbodensee"],
['Mastodon', 'fab fa-mastodon', "https://chaos.social/@toolbox"],
['Facebook', 'fab fa-facebook', "https://www.facebook.com/toolboxbodensee/"],
['Instagram', 'fab fa-instagram', "https://www.instagram.com/toolbox_bodensee/"],
['GitHub', 'fab fa-github', "https://github.com/ToolboxBodensee"],
['YouTube', 'fab fa-youtube', "https://www.youtube.com/channel/UCoTB8frSN0OT2mZl2IXSsDA/videos"],
['Mail', 'fas fa-envelope', "mailto:kontakt@toolbox-bodensee.de"],
['Telefon', 'fas fa-phone', "tel:+4975449667222"],
['News', 'fas fa-rss', "https://toolbox-bodensee.de/feed_blog.xml"]
] %}
2019-02-12 23:52:50 +01:00
<li><a href="{{ href }}" title="{{ label }}" target="_blank" rel="noopener" class="icon {{ icon }}"></a></li>{%
endfor %}
2019-02-12 17:45:44 +01:00
</ul>
<ul class="copyright">
<li>&copy;Copyright by Toolbox Bodensee e.V.</li>
2019-02-12 23:52:50 +01:00
<li><a href="{{ '/impressum/'|url }}">{%
if bag('navigation', this.alt, 'Impressum') %}{{ bag('navigation', this.alt, 'Impressum') }}{%
else %}Impressum{% endif %}</a></li>
<li><a href="{{ '/datenschutz/'|url }}">{%
if bag('navigation', this.alt, 'Datenschutz') %}{{ bag('navigation', this.alt, 'Datenschutz') }}{%
else %}Datenschutzerklärung{% endif %}</a></li>
2019-02-12 17:45:44 +01:00
<li>Design inspired by <a href="http://html5up.net">HTML5 UP</a> </li>
<!-- CMS: Lektor | Angepasst durch L3D -->
<!-- advertising: Grab your waffle from C3WOC! C3WOC ->Great waffles for everypony. https://c3woc.de/ -->
</ul>
</footer>
</div>
<!-- Scripts -->
<script src="{{ '/js/jquery.scrolly.min.js'|asseturl }}"></script>
<script src="{{ '/js/jquery.scrollex.min.js'|asseturl }}"></script>
<script src="{{ '/js/skel.min.js'|asseturl }}"></script>
<script src="{{ '/js/util.js'|asseturl }}"></script>
<script src="{{ '/js/main.js'|asseturl }}"></script>
2019-02-12 17:45:44 +01:00
</body>
</html>