Skip to content

Commit

Permalink
release(2.33.2): hide title if fields are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
arturu committed Feb 10, 2025
1 parent f0f191e commit 0a0a77b
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,19 @@
{# Altri componenti #}
{{ content.field_persone_esterne }}

<h3 class="h5 fw-lighter">Contatti</h3>
{% embed '@bi-bcl/card/card.html.twig' with {
card_teaser: true,
card_shadow: true,
card_classes: ['mb-5']
} %}
{% block cardText %}
{{ content.field_telefono }}
{{ content.field_email }}
{% endblock %}
{% endembed %}
{% if content.field_telefono[0] is iterable or content.field_email[0] is iterable %}
<h3 class="h5 fw-lighter">Contatti</h3>
{% embed '@bi-bcl/card/card.html.twig' with {
card_teaser: true,
card_shadow: true,
card_classes: ['mb-5']
} %}
{% block cardText %}
{{ content.field_telefono }}
{{ content.field_email }}
{% endblock %}
{% endembed %}
{% endif %}

{# Sedi #}
{{ content.field_luoghi }}
Expand Down

0 comments on commit 0a0a77b

Please sign in to comment.