]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/body.html.twig
Add public translated jpeg logo
[airbundle] / Resources / views / body.html.twig
1 {% extends '@RapsysAir/base.html.twig' %}
2 {% block metas %}
3 <meta charset="UTF-8" />
4 {% endblock %}
5 {% block stylesheets %}
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 {% if description is defined and description %}
8 <meta name="description" content="{{ description }}" />
9 {% endif %}
10 {% if keywords is defined and keywords %}
11 <meta name="keywords" content="{{ keywords|join(', ') }}" />
12 {% endif %}
13 {% if site is defined and site %}
14 <link rel="shortcut icon" type="image/x-icon" href="{{ asset(site.icon.ico) }}" />
15 <link rel="icon" type="image/svg+xml" href="{{ asset(site.icon.svg) }}" />
16 {% for size, icon in site.png %}
17 {# Apple #}
18 {% if size in [120, 152, 167, 180] %}
19 {% if size == 180 %}
20 <link rel="apple-touch-icon" href="{{ asset(icon) }}" />
21 {% endif %}
22 <link rel="apple-touch-icon" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
23 {# Windows #}
24 {% elseif size in [70, 150, 310] %}
25 <meta name="msapplication-square{{ size }}x{{ size }}logo" content="{{ asset(icon) }}" />
26 {# Others #}
27 {% else %}
28 <link rel="icon" type="image/png" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
29 {% endif %}
30 {% endfor %}
31 {% endif %}
32 {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' #}
33 {% stopwatch 'stylesheet' %}
34 {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,lemon,notoemoji,screen}.css' %}
35 <link rel="stylesheet" type="text/css" href="{{ asset_url }}?20221024100144" />
36 {% endstylesheet %}
37 {% endstopwatch %}
38 {% if canonical is defined and canonical %}
39 <link rel="canonical" href="{{ canonical }}"{% if locale is defined and locale %} hreflang="{{ locale }}"{% endif %} />
40 {% endif %}
41 {% if alternates is defined and alternates %}
42 {% for lang, alternate in alternates %}
43 <link rel="alternate" href="{{ alternate.absolute }}" hreflang="{{ lang }}" />
44 {% endfor %}
45 {% endif %}
46 {% if facebook['metas'] is defined and facebook['metas'] %}
47 {% for property, contents in facebook['metas'] %}
48 {% if contents is iterable %}
49 {% for content in contents %}
50 <meta property="{{ property }}" content="{{ content }}" />
51 {% endfor %}
52 {% else %}
53 <meta property="{{ property }}" content="{{ contents }}" />
54 {% endif %}
55 {% endfor %}
56 {% endif %}
57 {% endblock %}
58 {% block javascripts %}
59 {% stopwatch 'javascript' %}
60 {#{% javascript '@RapsysAir/js/*.js' %}
61 <script type="text/javascript" src="{{ asset_url }}"></script>
62 {% endjavascript %}#}
63 {% endstopwatch %}
64 {% endblock %}
65 {% block title %}{{ [site.title, section, title]|filter(v => v)|join(' - ') }}{% endblock %}
66 {% block body %}
67 {% block header %}
68 <header id="header">
69 <div>
70 {% if site is defined and site %}
71 {% block header_title %}<a id="logo" href="{{ site.url }}" title="{{ site.title }}"><img src="{{ asset(site.logo.svg) }}?20221024100144" srcset="{{ asset(site.logo.png) }}?20221024100144 200w, {{ asset(site.logo.svg) }}?20221024100144 400w" sizes="(min-width:400px) 400px, 200px" alt="{{ site.title }}" width="100" height="45" /><span>{{ site.title }}</span></a>{% endblock %}
72 {% endif %}
73 <h1 id="title"><a href="{{ canonical }}">{{ title }}</a></h1>
74 </div>
75 {% block header_nav %}
76 <nav id="nav">
77 {#<h2>{% trans %}Navigation{% endtrans %}</h2>#}
78 <a href="{{ path('rapsys_air') }}" rel="home">{% trans %}Home{% endtrans %}</a>
79 <a href="{{ path('rapsys_air_contact') }}" rel="contact">{% trans %}Contact{% endtrans %}</a>
80 <a href="{{ path('rapsys_air_frequently_asked_questions') }}">{% trans %}Frequently asked questions{% endtrans %}</a>
81 {% if is_granted('ROLE_ADMIN') %}
82 <a href="{{ path('rapsys_air_user') }}">{% trans %}Users{% endtrans %}</a>
83 {% endif %}
84 {% if is_granted('ROLE_GUEST') %}
85 <a href="{{ path('rapsys_air_organizer_regulation') }}">{% trans %}Organizer regulation{% endtrans %}</a>
86 {% endif %}
87 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
88 <a href="{{ path('rapsys_user_edit', {mail: app.user.mail|short, hash: app.user.mail|short|hash}) }}">{% trans %}My account{% endtrans %}</a>
89 <a href="{{ path('rapsys_user_logout') }}">{% trans %}Logout{% endtrans %}</a>
90 {% else %}
91 <a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a>
92 <a href="{{ path('rapsys_user_register') }}">{% trans %}Register{% endtrans %}</a>
93 {% endif %}
94 </nav>
95 {% endblock %}
96 {#
97 {% block site_subtitle %}{% endblock %}
98 {% block site_tagline %}
99 {% if tags is defined and tags %}
100 <ul>
101 {% for id, tag in tags %}
102 <li><h2><a href="#{{id}}">{{tag}}</a></h2></li>
103 {% endfor %}
104 </ul>
105 {% endif %}
106 {% endblock %}
107 #}
108 </header>
109 {% endblock %}
110 {% block message %}
111 {# pass an array argument to get the messages of those types (['warning', 'error']) #}
112 {% for label, messages in app.flashes %}
113 {% if messages %}
114 <div class="message {{label}}">
115 <ul>
116 {% for message in messages %}
117 <li>{{ message }}</li>
118 {% endfor %}
119 </ul>
120 </div>
121 {% endif %}
122 {% endfor %}
123 {% endblock %}
124 {#
125 {% block sidebar %}<aside id="sidebar"></aside>{% endblock %}
126 #}
127 {% block content %}
128 <article>
129 <header>
130 <h2>{% trans %}Outdoor space reservation system{% endtrans %}</h2>
131 </header>
132 </article>
133 {% endblock %}
134 {% block footer %}
135 <footer id="footer">
136 <a href="{{ path('rapsys_air_about') }}">{% trans %}About{% endtrans %}</a>
137 {% if copy is defined and copy %}
138 <details><summary>{{ copy.long }}</summary><span>{{ copy.short }} <a href="{{ copy.link }}" title="{{ copy.title }}" rel="author">{{ copy.by }}</a></span></details>
139 {% endif %}
140 <a href="{{ path('rapsys_air_terms_of_service') }}">{% trans %}Terms of service{% endtrans %}</a>
141 {% if alternates is defined and alternates %}
142 {% set langs = alternates|keys|filter(v => v|length == 5) %}
143 {% if langs|length > 1 %}
144 <ul>
145 {% for lang in langs %}
146 <li><a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a></li>
147 {% endfor %}
148 </ul>
149 {% else %}
150 {% set lang = langs|first %}
151 <a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a>
152 {% endif %}
153 {% else %}
154 <span>&nbsp;</span>
155 {% endif %}
156 </footer>
157 {% endblock %}
158 {% endblock %}