{% capture label %} {% if include.label %}{{ include.label }}{% elsif include.item.name %}{{ include.item.name }}{% else %}{{ include.item.title }}{% endif %} {% endcapture %} {% if include.item.url %} {% if include.item.url contains 'http' %} {% assign url = include.item.url %} {% else %} {% assign url = include.item.url | relative_url %} {% endif %} {% endif %} {% capture avatarClass %} badge__avatar {% if include.avatarClass %}{{ include.avatarClass }}{% else %}avatar--sm{% endif %} {% endcapture %}
{% if include.description %} {{ include.description }} {% else %} {{ include.item.description }} {% endif %}
{% endunless %} {% unless include.showContactInfo == false %} {% if include.item.mob or include.item.mail %} {% if include.item.mob %} {% capture tel %}tel:{{ include.item.mob }}{% endcapture %} {% include contact-line.html icon="ico--phone" href=tel caption=include.item.mob class="contact-line--responsive badge__link" %} {% endif %} {% if include.item.mail %} {% capture mailto %}mailto:{{ include.item.mail }}{% endcapture %} {% include contact-line.html icon="ico--envelope" href=mailto caption=include.item.mail class="contact-line--responsive badge__link" %} {% endif %} {% endif %} {% endunless %}