From c3fe94a42c4e2035368b753a6aeb266a04560ea6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 12 Aug 2021 17:33:02 +0200 Subject: [PATCH 1/1] Fix canonical hreflang to use locale Switch to new facebook metas Switch to rapsys_user edit form Fix alternates hreflang format --- Resources/views/body.html.twig | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Resources/views/body.html.twig b/Resources/views/body.html.twig index 6fea7b4..73aa677 100644 --- a/Resources/views/body.html.twig +++ b/Resources/views/body.html.twig @@ -36,24 +36,21 @@ {% endstylesheet %} {% endstopwatch %} {% if canonical is defined and canonical %} - + {% endif %} {% if alternates is defined and alternates %} {% for lang, alternate in alternates %} {% endfor %} {% endif %} - {% if ogps is defined and ogps %} - {% for property, content in ogps %} - - {% endfor %} - {% for property, contents in facebooks %} + {% 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 %} @@ -84,7 +81,7 @@
  • {% trans %}Organizer regulation{% endtrans %}
  • {% endif %} {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} -
  • {% trans %}My account{% endtrans %}
  • +
  • {% trans %}My account{% endtrans %}
  • {% trans %}Logout{% endtrans %}
  • {% else %}
  • {% trans %}Login{% endtrans %}
  • @@ -142,12 +139,12 @@ {% if langs|length > 1 %} {% else %} {% set lang = langs|first %} - {{ alternates[lang].translated }} + {{ alternates[lang].translated }} {% endif %} {% else %}   -- 2.41.1