_includes/contacts-tan.html in kcc-gem-theme-1.54.36 vs _includes/contacts-tan.html in kcc-gem-theme-1.55.36
- old
+ new
@@ -24,14 +24,15 @@
<div class="col-4 contacts__col--img">
<img src="assets/img/blank-contact.svg" data-src="{{ page.baseurl }}{{ contact.portrait }}" alt="{{ contact.name }}" class="img-fluid contacts__portrait" />
</div>
<div class="col-8 float-right">
<h5 class="typography__contacts--name notranslate">{{ contact.name }}</h5>
- <h6 class="typography__contacts--title">{{ contact.contacts_title }}</h6>
+ {% if contact.title %}<h6 class="typography__contacts--title">{{ contact.contacts_title }}</h6>{% endif %}
<p class="notranslate">
- <a href="tel:1{{ contact.phone | remove: '-' }}" class="links__darker-link">{{ contact.phone }}</a><br>
- <a class="links__darker-link" target="_blank" href="https://secure.jotform.com/90435102482954?to[first]={{ first }}&to[last]={{ last }}&submitEmail={{ contact.email | remove: '@kcc.edu' }}%40kcc.edu">Email</a>
+ {% if contact.phone %}<a href="tel:1{{ contact.phone | remove: '-' }}" class="links__darker-link">{{ contact.phone }}</a><br>{% contact.portrait %}
+ {% if contact.email %}<a class="links__darker-link" target="_blank" href="https://secure.jotform.com/90435102482954?to[first]={{ first }}&to[last]={{ last }}&submitEmail={{ contact.email | remove: '@kcc.edu' }}%40kcc.edu">Email</a>{% endif %}
+ {% if contact.fax %}{{ contact.fax }}{% endif %}
</p>
</div>
</div>
</div>
{% elsif contact.portrait == 'none' %}
@@ -40,24 +41,26 @@
<div class="col-4 contacts__col--img">
<!-- Contact has no portrait -->
</div>
<div class="col-8 float-right">
<h5 class="typography__contacts--name notranslate">{{ contact.name }}</h5>
- <h6 class="typography__contacts--title">{{ contact.contacts_title }}</h6>
+ {% if contact.title %}<h6 class="typography__contacts--title">{{ contact.contacts_title }}</h6>{% endif %}
<p class="notranslate">
- <a href="tel:1{{ contact.phone | remove: '-' }}" class="links__darker-link">{{ contact.phone }}</a><br>
- <a class="links__darker-link" target="_blank" href="https://secure.jotform.com/90435102482954?to[first]={{ first }}&to[last]={{ last }}&submitEmail={{ contact.email | remove: '@kcc.edu' }}%40kcc.edu">Email</a>
+ {% if contact.phone %}<a href="tel:1{{ contact.phone | remove: '-' }}" class="links__darker-link">{{ contact.phone }}</a><br>{% contact.portrait %}
+ {% if contact.email %}<a class="links__darker-link" target="_blank" href="https://secure.jotform.com/90435102482954?to[first]={{ first }}&to[last]={{ last }}&submitEmail={{ contact.email | remove: '@kcc.edu' }}%40kcc.edu">Email</a>{% endif %}
+ {% if contact.fax %}{{ contact.fax }}{% endif %}
</p>
</div>
</div>
</div>
{% else %}
<div class="col-sm-6 col-md-4 mb-3">
<h5 class="typography__contacts--name notranslate">{{ contact.name }}</h5>
- <h6 class="typography__contacts--title">{{ contact.contacts_title }}</h6>
+ {% if contact.title %}<h6 class="typography__contacts--title">{{ contact.contacts_title }}</h6>{% endif %}
<p class="notranslate">
- <a href="tel:1{{ contact.phone | remove: '-' }}" class="links__darker-link">{{ contact.phone }}</a><br>
- <a class="links__darker-link" target="_blank" href="https://secure.jotform.com/90435102482954?to[first]={{ first }}&to[last]={{ last }}&submitEmail={{ contact.email | remove: '@kcc.edu' }}%40kcc.edu">Email</a>
+ {% if contact.phone %}<a href="tel:1{{ contact.phone | remove: '-' }}" class="links__darker-link">{{ contact.phone }}</a><br>{% contact.portrait %}
+ {% if contact.email %}<a class="links__darker-link" target="_blank" href="https://secure.jotform.com/90435102482954?to[first]={{ first }}&to[last]={{ last }}&submitEmail={{ contact.email | remove: '@kcc.edu' }}%40kcc.edu">Email</a>{% endif %}
+ {% if contact.fax %}{{ contact.fax }}{% endif %}
</p>
</div>
{% endif %}
{% endfor %}
</div>