--- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -1,1 +1,223 @@ - + + + + + ' . $pageTitle . ' + '; + if ($datepicker) echo ''; + if (isDebugServer()) echo ' + + '; + else echo ' + + '; + if ($datepicker) echo ' + '; + echo ''; + if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod')) { + echo ' + + + '; + } + if ($geolocate) { + echo " "; + } + echo ' +".' + + + '; + if ($opendiv) { + echo '
+ +
+

' . $pageTitle . '

+
+ +
'; + } +} +function include_footer() +{ + if ($geolocate && isset($_SESSION['lat'])) { + echo ""; + } + echo ''; + if (!isDebug()) { + $googleAnalyticsImageUrl = googleAnalyticsGetImageUrl(); + echo ''; + } +} +function timePlaceSettings($geolocate = false) +{ + global $service_periods; + $geoerror = false; + if ($geolocate == true) { + $geoerror = !isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == ""; + } + if ($geoerror) { + 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()) . ')...

+
+
+
+ + +
+
+ + Current Time? +
+
+ + + +
+ + + +
'; +} +?> +