From: Raphaƫl Gertz Date: Thu, 12 Aug 2021 15:33:02 +0000 (+0200) Subject: Fix canonical hreflang to use locale X-Git-Tag: 0.2.0~91 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/c3fe94a42c4e2035368b753a6aeb266a04560ea6?ds=sidebyside Fix canonical hreflang to use locale Switch to new facebook metas Switch to rapsys_user edit form Fix alternates hreflang format --- 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 %}