]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/body.html.twig
Add class, contact, donate, link and profile
[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 <link rel="shortcut icon" type="image/x-icon" href="{{ asset(site.ico) }}" />
14 <link rel="icon" type="image/svg+xml" href="{{ asset(site.svg) }}" />
15 {% for size, icon in site.png %}
16 {# Apple #}
17 {% if size in [120, 152, 167, 180] %}
18 {% if size == 180 %}
19 <link rel="apple-touch-icon" href="{{ asset(icon) }}" />
20 {% endif %}
21 <link rel="apple-touch-icon" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
22 {# Windows #}
23 {% elseif size in [70, 150, 310] %}
24 <meta name="msapplication-square{{ size }}x{{ size }}logo" content="{{ asset(icon) }}" />
25 {# Others #}
26 {% else %}
27 <link rel="icon" type="image/png" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
28 {% endif %}
29 {% endfor %}
30 {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' #}
31 {% stopwatch 'stylesheet' %}
32 {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,screen}.css' %}
33 <link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
34 {% endstylesheet %}
35 {% endstopwatch %}
36 {% if canonical is defined and canonical %}
37 <link rel="canonical" href="{{ canonical }}" />
38 {% endif %}
39 {% if alternates is defined and alternates %}
40 {% for alternate in alternates %}
41 <link rel="alternate" href="{{ alternate.absolute }}" hreflang="{{ alternate.lang }}" />
42 {% endfor %}
43 {% endif %}
44 {% endblock %}
45 {% block javascripts %}
46 {% stopwatch 'javascript' %}
47 {#{% javascript '@RapsysAir/js/*.js' %}
48 <script type="text/javascript" src="{{ asset_url }}"></script>
49 {% endjavascript %}#}
50 {% endstopwatch %}
51 {% endblock %}
52 {% block title %}{{ title }}{% endblock %}
53 {% block body %}
54 {% block header %}
55 <header id="header">
56 {% block header_title %}<h1><a href="{{ site.url }}" title="{{ site.title }}"><img src="{{ asset(site.logo) }}" alt="{{ site.title }}" width="171" height="32" /></a></h1>{% endblock %}
57 {% block header_nav %}
58 <nav>
59 <h2>{% trans %}Navigation{% endtrans %}</h2>
60 <ul>
61 <li><a href="{{ path('rapsys_air_contact') }}">{% trans %}Contact{% endtrans %}</a></li>
62 <li><a href="{{ path('rapsys_air_terms_of_service') }}">{% trans %}Terms of service{% endtrans %}</a></li>
63 <li><a href="{{ path('rapsys_air_organizer_regulation') }}">{% trans %}Organizer regulation{% endtrans %}</a></li>
64 <li><a href="{{ path('rapsys_air_organizer') }}">{% trans %}Organizers{% endtrans %}</a></li>
65 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
66 <li><a href="{{ path('rapsys_user_logout') }}">{% trans %}Logout{% endtrans %}</a></li>
67 {% else %}
68 <li><a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a></li>
69 <li><a href="{{ path('rapsys_user_register') }}">{% trans %}Register{% endtrans %}</a></li>
70 {% endif %}
71 </ul>
72 </nav>
73 {% endblock %}
74 {#
75 {% block site_subtitle %}{% endblock %}
76 {% block site_tagline %}
77 {% if tags is defined and tags %}
78 <ul>
79 {% for id, tag in tags %}
80 <li><h2><a href="#{{id}}">{{tag}}</a></h2></li>
81 {% endfor %}
82 </ul>
83 {% endif %}
84 {% endblock %}
85 #}
86 </header>
87 {% endblock %}
88 {% block message %}
89 {# pass an array argument to get the messages of those types (['warning', 'error']) #}
90 {% for label, messages in app.flashes %}
91 {% if messages %}
92 <div class="message {{label}}">
93 <ul>
94 {% for message in messages %}
95 <li>{{ message }}</li>
96 {% endfor %}
97 </ul>
98 </div>
99 {% endif %}
100 {% endfor %}
101 {% endblock %}
102 {#
103 {% block sidebar %}<aside id="sidebar"></aside>{% endblock %}
104 #}
105 {% block content %}
106 <section id="content">
107 <h2><a href="{{ path('rapsys_air_homepage') }}">{{ section }}</a></h2>
108 <p>{% trans %}Outdoor space reservation system{% endtrans %}</p>
109 </section>
110 {% endblock %}
111 {% block footer %}
112 <footer id="footer">
113 <span>&nbsp;</span>
114 <details><summary>{{ copy.long }}</summary><span>{{ copy.short }}</span></details>
115 {% if alternates is defined and alternates %}
116 <ul>
117 {% for alternate in alternates %}
118 <li><a href="{{ alternate.relative }}" hreflang="{{ alternate.lang }}" title="{{ alternate.title }}">{{ alternate.translated }}</a></li>
119 {% endfor %}
120 </ul>
121 {% else %}
122 <span>&nbsp;</span>
123 {% endif %}
124 </footer>
125 {% endblock %}
126 {% endblock %}