]> git.agnieray.net Git - galette.git/blob - galette/templates/default/public_page.html.twig
93378d260e3df062fb7611de93efed4e139cfc47
[galette.git] / galette / templates / default / public_page.html.twig
1 <!DOCTYPE html>
2
3 <html lang="{{ galette_lang }}"{% if i18n.isRtl() %} dir="rtl"{% endif %} class="public_page{% if additionnal_html_class is defined %} {{ additionnal_html_class }}{% endif %}">
4 <head>
5 {% include 'elements/header.html.twig' with {
6 galette_lang: galette_lang
7 } %}
8 </head>
9 <body class="{% if body_class is defined and body_class == "front_page" %}front-page {% endif %}pushable{% if login.isLogged() %} loggedin{% endif %} nojs">
10 <a href="#main-content" class="skiptocontent visually-hidden focusable">{{ _T("Skip to content") }}</a>
11 {% include 'elements/navigation/navigation_sidebar.html.twig' %}
12 {% include 'elements/navigation/navigation_topbar.html.twig' %}
13 <main class="pusher">
14 <div id="main" class="{% if cur_route == "login" or cur_route == "password-lost" or cur_route == "password-recovery" or cur_route == "directlink" %}text {% endif %}{% if not login.isLogged() %}ui container{% else %}full height{% if i18n.isRtl() %} rtl{% endif %}{% endif %}">
15 {% if login.isLogged() %}
16 {% include "elements/navigation/navigation_aside.html.twig" %}
17 {% endif %}
18 <section class="{% if login.isLogged() %}content{% else %}vertically centered{% endif %}">
19 {% if not login.isLogged() %}
20 <div class="ui basic center aligned fitted segment">
21 {% if preferences.pref_website is not empty %}
22 <a href="{{ preferences.pref_website }}" target="_blank">
23 <img src="{{ url_for("logo") }}" width="{{ logo.getOptimalWidth() }}" height="{{ logo.getOptimalHeight() }}" alt="{{ preferences.pref_nom }}" class="logo" title="{{ _T("Open '%s' in a new window")|replace({"%s": preferences.pref_website}) }}"/>
24 </a>
25 {% else %}
26 <img src="{{ url_for("logo") }}" width="{{ logo.getOptimalWidth() }}" height="{{ logo.getOptimalHeight() }}" alt="{{ preferences.pref_nom }}" class="logo"/>
27 {% endif %}
28 <div class="ui large header">
29 {{ preferences.pref_nom }}
30 <div class="sub header">{% if preferences.pref_slogan %}{{ __(preferences.pref_slogan) }}{% endif %}</div>
31 </div>
32 </div>
33 <a id="main-content" tabindex="-1"></a>
34 <h1 class="ui block center aligned header" style="position: relative">
35 {% else %}
36 <div class="ui horizontal basic segments header">
37 <a id="main-content" tabindex="-1"></a>
38 <div class="ui center aligned segment">
39 <h1>
40 {% endif %}
41 {{ page_title }}
42 </h1>
43 {% if login.isLogged() %}
44 </div>
45 </div>
46 {% endif %}
47 <div class="main-content">
48 {% include "elements/messages_inline.html.twig" %}
49 {% block content %}{{ _T("Public page content") }}{% endblock %}
50 </div>
51 </section>
52 </div>
53 </main>
54 {% include "elements/footer.html.twig" %}
55 <a href="#" id="back2top" class="circular big ui icon button" title="{{ _T("Back to top") }}">
56 <i class="arrow up icon" aria-hidden="true"></i>
57 </a>
58 {% include "elements/scripts.html.twig" %}
59 {% block javascripts %}{% endblock %}
60 </body>
61 </html>