diff --git a/src/site/components/phone-number.drupal.liquid b/src/site/components/phone-number.drupal.liquid index 3ea02d41fb..f7fccb6bae 100644 --- a/src/site/components/phone-number.drupal.liquid +++ b/src/site/components/phone-number.drupal.liquid @@ -1,8 +1,19 @@ -{{ phoneLabel | default: 'Phone' }} -
- -
+{% if phoneNumber %} + {% if phoneExtension %} + {% assign partialPhoneNumber = phoneNumber %} + {% assign partialPhoneExtension = phoneExtension %} + {% else %} + {% assign separatedPhoneNumber = phoneNumber | separatePhoneNumberExtension %} + {% assign partialPhoneNumber = separatedPhoneNumber.phoneNumber %} + {% assign partialPhoneExtension = separatedPhoneNumber.extension %} + {% endif %} + + {{ phoneLabel | default: 'Phone' }} +
+ +
+{% endif %} diff --git a/src/site/includes/vba_facilities/service_location.liquid b/src/site/includes/vba_facilities/service_location.liquid index d925720c55..0391953f8d 100644 --- a/src/site/includes/vba_facilities/service_location.liquid +++ b/src/site/includes/vba_facilities/service_location.liquid @@ -25,7 +25,12 @@ Main Phone - + {% assign serviceLocationMainPhone = facilityPhone | separatePhoneNumberExtension %} + {% elsif location.entity.fieldPhone %} {% for phoneObj in location.entity.fieldPhone %} @@ -136,4 +141,4 @@

{% endif %} - \ No newline at end of file + diff --git a/src/site/layouts/vba_facility.drupal.liquid b/src/site/layouts/vba_facility.drupal.liquid index 3739641a2c..583a4af173 100644 --- a/src/site/layouts/vba_facility.drupal.liquid +++ b/src/site/layouts/vba_facility.drupal.liquid @@ -114,7 +114,13 @@

Main phone: - + + {% assign vbaFacilityMainPhone = fieldPhoneNumber | separatePhoneNumberExtension %} +

{% endif %} @@ -249,7 +255,7 @@ fieldTwitter = fieldUpdatesVba.links.twitter fieldInstagram = fieldUpdatesVba.links.instagram fieldFlickr = fieldUpdatesVba.links.flickr - + %} {% endif %}