Skip to content

Commit 1dce52e

Browse files
committed
Guard against missing lat/long value pair
1 parent 670312b commit 1dce52e

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

templates/pages/contact.txp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@
7979
<span class="country" itemprop="addressCountry"><txp:variable name="--contact-country" /></span>
8080
</span>
8181
<txp:if_variable name="--contact-map-latitude" not value="">
82-
<span class="geo">
83-
<meta class="latitude" content="<txp:variable name="--contact-map-latitude" />">
84-
<meta class="longitude" content="<txp:variable name="--contact-map-longitude" />">
85-
</span>
82+
<txp:if_variable name="--contact-map-longitude" not value="">
83+
<span class="geo">
84+
<meta class="latitude" content="<txp:variable name="--contact-map-latitude" />">
85+
<meta class="longitude" content="<txp:variable name="--contact-map-longitude" />">
86+
</span>
87+
</txp:if_variable>
8688
</txp:if_variable>
8789
<txp:if_plugin not name="com_connect" version="4.6">
8890
<br>

themes/hive-framework-0.0.7/pages/contact.txp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@
7979
<span class="country" itemprop="addressCountry"><txp:variable name="--contact-country" /></span>
8080
</span>
8181
<txp:if_variable name="--contact-map-latitude" not value="">
82-
<span class="geo">
83-
<meta class="latitude" content="<txp:variable name="--contact-map-latitude" />">
84-
<meta class="longitude" content="<txp:variable name="--contact-map-longitude" />">
85-
</span>
82+
<txp:if_variable name="--contact-map-longitude" not value="">
83+
<span class="geo">
84+
<meta class="latitude" content="<txp:variable name="--contact-map-latitude" />">
85+
<meta class="longitude" content="<txp:variable name="--contact-map-longitude" />">
86+
</span>
87+
</txp:if_variable>
8688
</txp:if_variable>
8789
<txp:if_plugin not name="com_connect" version="4.6">
8890
<br>

0 commit comments

Comments
 (0)