--- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -36,9 +36,17 @@ if ($datepicker) echo ''; if (isDebugServer()) echo ' + '; else echo ' + '; if ($datepicker) echo ' "; +} +$(document).ready(function() { + $('#here').click(function(event) { $('#geolocate').val(geolocate()); return false;}); +$('#here').show(); +}); +"; +if (!isset($_SESSION['lat']) || $_SESSION['lat'] == "") echo "geolocate();"; +echo " "; } if (isAnalyticsOn()) echo ' "; - } echo ''; if (isAnalyticsOn()) { @@ -175,9 +188,9 @@ 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })();"; + })();"; $googleAnalyticsImageUrl = googleAnalyticsGetImageUrl(); - echo ''; + echo ''; } } function timePlaceSettings($geolocate = false) @@ -188,13 +201,13 @@ $geoerror = !isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == ""; } if ($geoerror) { - echo '
Sorry, but your location could not currently be detected. + echo '
Sorry, but your location could not currently be detected. Please allow location permission, wait for your location to be detected, or enter an address/co-ordinates in the box below.
'; } echo '

Change Time/Place (' . (isset($_SESSION['time']) ? $_SESSION['time'] : "Current Time,") . ' ' . ucwords(service_period()) . ')...

-
+
@@ -202,7 +215,8 @@
- Current Time? + + Current Time?
@@ -220,7 +234,7 @@ } function trackEvent($category, $action, $label = "", $value = -1) { if (isAnalyticsOn()) { - echo ""; } } ?>