X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f110b8ba20232e0ceeb67390f8e672431868d32d..b22cd3b27e98582db6c04c5bfe8b5e3272fdf717:/Resources/views/base.html.twig?ds=sidebyside diff --git a/Resources/views/base.html.twig b/Resources/views/base.html.twig index a95e21a..77819c9 100644 --- a/Resources/views/base.html.twig +++ b/Resources/views/base.html.twig @@ -1,78 +1,162 @@ - - - - {% block title %}{{ title }}{% endblock %} - + + + {% block meta %}{% endblock %} + {% block title %}{{ [title.page, title.section, title.site]|filter(v => v)|join(' - ') }}{% endblock %} {% block stylesheet %} - {% stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' %} - - {% endstylesheet %} + + {% if description is defined and description %} + + {% endif %} + {% if keywords is defined and keywords %} + + {% endif %} + {% if icon is defined and icon %} + + + {% for size, icon in icon.png %} + {# Apple #} + {% if size in [120, 152, 167, 180] %} + {% if size == 180 %} + + {% endif %} + + {# Windows #} + {% elseif size in [70, 150, 310] %} + + {# Others #} + {% else %} + + {% endif %} + {% 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 '@RapsysAir/css/{reset,droidsans,lemon,notoemoji,screen}.css' %} + + {% endstylesheet %} + {% endstopwatch %} + {% if canonical is defined and canonical %} + + {% endif %} + {% if alternates is defined and alternates %} + {% for lang, alternate in alternates %} + + {% endfor %} + {% endif %} + {% if facebook is defined and facebook %} + {% for property, contents in facebook %} + {% if contents is iterable %} + {% for content in contents %} + + {% endfor %} + {% else %} + + {% endif %} + {% endfor %} + {% endif %} {% endblock %} - - - - {% block body %} - + + {% block body %} {% block header %} {% endblock %} - - {# pass an array argument to get the messages of those types (['warning', 'error']) #} - {% for label, messages in app.flashes %} - {% if messages %} -
-
    - {% for message in messages %} -
  • {{ message }}
  • - {% endfor %} -
-
- {% endif %} - {% endfor %} - + {% block message %} + {# pass an array argument to get the messages of those types (['warning', 'error']) #} + {% for label, messages in app.flashes %} + {% if messages %} +
+
    + {% for message in messages %} +
  • {{ message }}
  • + {% endfor %} +
+
+ {% endif %} + {% endfor %} + {% endblock %} + {# {% block sidebar %}{% endblock %} - - {% block content %}
{% endblock %} - + #} + {% block content %} +
+
+

{% trans %}Outdoor space reservation system{% endtrans %}

+
+
+ {% endblock %} {% block footer %} {% endblock %} - - {% endblock %} + {% endblock %} + {% block javascript %} + {% stopwatch 'javascript' %} + {#{% javascript '@RapsysAir/js/*.js' %} + + {% endjavascript %}#} + {% endstopwatch %} + {% endblock %} +