Listing
The listing component is used to display search results for affiliates or Restores. It's not used within the main site search results.
Pickens County HFH Clemson, SC
PO Box 412
Clemson, SC 29633
United States
{{ attach_library('h4h_theme/listing') }}
{% import '@h4h_theme/icons/icons.twig' as icons %}
<article class="listing">
<{{ heading }} class="listing__heading">
{# If this is a Restore don't link the title to it's node. #}
{% if type == 'restore_store' %}
{{ label }}
{% else %}
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
{% endif %}
{% if city and state %}
<span class="listing__right">
{{ city }}, {{ state }}
</span>
{% endif %}
</{{ heading }}>
{% if content|render %}
<div class="listing__body">
{{ content|raw }}
<div class="listing__items">
{% if website %}
<div class="listing__item">
{{ icons.get('website', 'icon--small-website icon--green') }} {{ website }}
</div>
{% endif %}
{% if phone %}
<div class="listing__item">
{{ icons.get('phone', 'icon--small-phone icon--green') }} {{ phone }}
</div>
{% endif %}
{% if email %}
<div class="listing__item">
<a href="mailto:{{ email }}">{{ icons.get('mail', 'icon--small-mail icon--green') }} {{ email }}</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
</article>