X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/07fdafc89baf468283c29c652b3a7b2469e39d75..1ff2570fa1206fc9d726c16e89e2ca4030951602:/Resources/views/body.html.twig?ds=inline diff --git a/Resources/views/body.html.twig b/Resources/views/body.html.twig index 760a59d..10630ff 100644 --- a/Resources/views/body.html.twig +++ b/Resources/views/body.html.twig @@ -10,35 +10,48 @@ {% if keywords is defined and keywords %} {% endif %} - - - {% for size, icon in site.png %} - {# Apple #} - {% if size in [152, 167, 180] %} - {% if size == 180 %} - + {% if site is defined and site %} + + + {% for size, icon in site.png %} + {# Apple #} + {% if size in [120, 152, 167, 180] %} + {% if size == 180 %} + + {% endif %} + + {# Windows #} + {% elseif size in [70, 150, 310] %} + + {# Others #} + {% else %} + {% endif %} - - {# Windows #} - {% elseif size in [70, 150, 310] %} - - {# Others #} - {% else %} - - {% endif %} - {% endfor %} + {% endfor %} + {% endif %} {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' #} {% stopwatch 'stylesheet' %} - {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,screen}.css' %} - + {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,lemon,notoemoji,screen}.css' %} + {% endstylesheet %} {% endstopwatch %} {% if canonical is defined and canonical %} - + {% endif %} {% if alternates is defined and alternates %} - {% for alternate in alternates %} - + {% for lang, alternate in alternates %} + + {% endfor %} + {% endif %} + {% if facebook['metas'] is defined and facebook['metas'] %} + {% for property, contents in facebook['metas'] %} + {% if contents is iterable %} + {% for content in contents %} + + {% endfor %} + {% else %} + + {% endif %} {% endfor %} {% endif %} {% endblock %} @@ -49,29 +62,38 @@ {% endjavascript %}#} {% endstopwatch %} {% endblock %} -{% block title %}{{ title }}{% endblock %} +{% block title %}{{ [site.title, section, title]|filter(v => v)|join(' - ') }}{% endblock %} {% block body %} {% block header %} - {% block header_title %}{% endblock %} + + {% if site is defined and site %} + {% block header_title %}{{ site.title }}{% endblock %} + {% endif %} + {{ title }} + {% block header_nav %} - - {% trans %}Navigation{% endtrans %} - - {% trans %}Contact{% endtrans %} - {% trans %}Terms of service{% endtrans %} - {% trans %}Organizer regulation{% endtrans %} - {% trans %}Organizers{% endtrans %} + + {#{% trans %}Navigation{% endtrans %}#} + {% trans %}Home{% endtrans %} + {% trans %}Contact{% endtrans %} + {% trans %}Frequently asked questions{% endtrans %} + {% if is_granted('ROLE_ADMIN') %} + {% trans %}Users{% endtrans %} + {% endif %} + {% if is_granted('ROLE_GUEST') %} + {% trans %}Organizer regulation{% endtrans %} + {% endif %} {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} - {% trans %}Logout{% endtrans %} + {% trans %}My account{% endtrans %} + {% trans %}Logout{% endtrans %} {% else %} - {% trans %}Login{% endtrans %} - {% trans %}Register{% endtrans %} + {% trans %}Login{% endtrans %} + {% trans %}Register{% endtrans %} {% endif %} - {% endblock %} -{# + {# {% block site_subtitle %}{% endblock %} {% block site_tagline %} {% if tags is defined and tags %} @@ -82,7 +104,7 @@ {% endif %} {% endblock %} -#} + #} {% endblock %} {% block message %} @@ -103,21 +125,31 @@ {% block sidebar %}{% endblock %} #} {% block content %} - - {{ section }} - {% trans %}Outdoor space reservation system{% endtrans %} - + + + {% trans %}Outdoor space reservation system{% endtrans %} + + {% endblock %} {% block footer %}
{% trans %}Outdoor space reservation system{% endtrans %}