--- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -34,12 +34,20 @@ '; if ($datepicker) echo ''; - if (isDebugServer()) echo ' + if (isDebugServer()) echo ' - '; - else echo ' - - '; + + '; + else echo ' + + + '; if ($datepicker) echo ' "; - } - if (!isDebugServer()) 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 ' @@ -160,8 +169,10 @@ document.title = "' . $pageTitle . '"; }); -
+
+ Back

' . $pageTitle . '

+ Home
'; @@ -169,17 +180,19 @@ } function include_footer() { - if ($geolocate && isset($_SESSION['lat'])) { - echo ""; - } echo ''; - if (!isDebugServer()) { + if (isAnalyticsOn()) { + echo ""; $googleAnalyticsImageUrl = googleAnalyticsGetImageUrl(); - echo ''; + echo ''; } } function timePlaceSettings($geolocate = false) @@ -190,13 +203,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()) . ')...

-
+
@@ -204,7 +217,8 @@
@@ -220,5 +234,10 @@
'; } +function trackEvent($category, $action, $label = "", $value = -1) { + if (isAnalyticsOn()) { + echo ""; + } +} ?>