';
+ $overrides = getServiceOverride();
+ if ($overrides['service_id']) {
+ if ($overrides['service_id'] == "noservice") {
+ echo '
';
+ } else {
+ echo '
';
+ }
+ }
+ if ($GTFSREnabled) {
+ $serviceAlerts = getServiceAlertsAsArray("agency", "0");
+ if (isset($serviceAlerts['entity']) && sizeof($serviceAlerts['entity']) > 0) {
+ foreach ($serviceAlerts['entity'] as $entity) {
+ echo "
" . date("F j, g:i a", strtotime($entity['alert']['active_period'][0]['start'])) . " to " . date("F j, g:i a", strtotime($entity['alert']['active_period'][0]['end'])) . "{$entity['alert']['header_text']['translation'][0]['text']}
Warning: {$entity['alert']['description_text']['translation'][0]['text']}
+
Source ";
+ }
+ }
+ }
+ }
+}
+
+function include_footer() {
+ global $basePath;
+ echo '';
+ if (isAnalyticsOn()) {
+ echo "";
-echo '
-
-
- ';
- if ($opendiv) {
- echo '
-
-
-
' . $pageTitle . '
-
-
-
';
- }
-}
-function include_footer()
-{
- if ($geolocate && isset($_SESSION['lat'])) {
- echo "";
- }
- echo '';
- if (!isDebugServer()) {
- $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.
+ })();";
+ $googleAnalyticsImageUrl = googleAnalyticsGetImageUrl();
+ echo '
';
+ }
+ echo "\n
";
+}
+
+function placeSettings() {
+ global $service_periods;
+ $geoerror = false;
+ $geoerror = !isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "";
+
+ echo '
';
+ 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()) . ')...
- ';
+ echo '
';
-}
+
+
';
+}
+
+function trackEvent($category, $action, $label = "", $value = - 1) {
+ if (isAnalyticsOn()) {
+ echo "\n";
+ }
+}
+
?>