Skip to content

Commit 670312b

Browse files
committed
Allow latitude and longitude in hCards
1 parent b822e05 commit 670312b

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

templates/forms/misc/--variables--contact.txp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ Value of '0' for no, '1' for yes.
3535
<txp:hide>
3636
LOCATION MAP LATITUDE AND LONGITUDE --------------------------------------------
3737
If a location map is displayed (see above), provide valid latitude and longitude
38-
coordinates. For example, '51.505, -0.09'.
38+
coordinates. For example, '51.505' and '-0.09'.
3939
</txp:hide>
40-
<txp:variable name="--contact-map-lat-long" value="" />
40+
<txp:variable name="--contact-map-latitude" value="" />
41+
<txp:variable name="--contact-map-longitude" value="" />
4142

4243
<txp:hide>
4344
LOCATION MAP ZOOM LEVEL --------------------------------------------------------

templates/pages/contact.txp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
<span class="postal-code" itemprop="postalCode"><txp:variable name="--contact-postal-code" /></span>,
7979
<span class="country" itemprop="addressCountry"><txp:variable name="--contact-country" /></span>
8080
</span>
81+
<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>
86+
</txp:if_variable>
8187
<txp:if_plugin not name="com_connect" version="4.6">
8288
<br>
8389
<a class="email" href="mailto:<txp:variable name="--contact-email" />" itemprop="email"><txp:variable name="--contact-email" /></a>

themes/hive-framework-0.0.7/forms/misc/--variables--contact.txp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ Value of '0' for no, '1' for yes.
3535
<txp:hide>
3636
LOCATION MAP LATITUDE AND LONGITUDE --------------------------------------------
3737
If a location map is displayed (see above), provide valid latitude and longitude
38-
coordinates. For example, '51.505, -0.09'.
38+
coordinates. For example, '51.505' and '-0.09'.
3939
</txp:hide>
40-
<txp:variable name="--contact-map-lat-long" value="" />
40+
<txp:variable name="--contact-map-latitude" value="" />
41+
<txp:variable name="--contact-map-longitude" value="" />
4142

4243
<txp:hide>
4344
LOCATION MAP ZOOM LEVEL --------------------------------------------------------

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
<span class="postal-code" itemprop="postalCode"><txp:variable name="--contact-postal-code" /></span>,
7979
<span class="country" itemprop="addressCountry"><txp:variable name="--contact-country" /></span>
8080
</span>
81+
<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>
86+
</txp:if_variable>
8187
<txp:if_plugin not name="com_connect" version="4.6">
8288
<br>
8389
<a class="email" href="mailto:<txp:variable name="--contact-email" />" itemprop="email"><txp:variable name="--contact-email" /></a>

0 commit comments

Comments
 (0)