]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/base.html.twig
Use locale if set
[airbundle] / Resources / views / base.html.twig
index 638e2bcab68154bb56431ed43a4b8a7030b556c6..debdb4bc717a5bea0921eadd282dc5453372ef7c 100644 (file)
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
-<html{% if app.request.locale is defined and app.request.locale %} lang="{{ app.request.locale }}"{% endif %}>
-       <head>
+<html{% if locale is defined and locale %} lang="{{ locale }}"{% endif %}>
+       <head{% if facebook is defined and facebook and facebook['heads'] is defined and facebook['heads'] %} prefix="{{ facebook['heads']|map((value, key) => "#{key}: #{value}")|join(' ') }}"{% endif %}>
                {% block metas %}<meta charset="UTF-8">{% endblock %}
                <title>{% block title %}Welcome!{% endblock %}</title>
                {% block stylesheets %}{% endblock %}