<?php $pageTitle = "Events"; include_once 'includes/functions_events.php'; $data = getRecentEvents(); if ($eventID == "0") { $event = getNextEvent(false, 3600); if ($event != null) { $eTime = $event['utctime']; } } else { $event = findEvent($eventID); if ($event != null) { $eTime = $event['utctime']; } } if (isset($eTime)) { $extraCrap = <<<TWITCARD \t\t<meta name="twitter:card" content="summary_large_image"> \t\t<meta name="twitter:site" content="@SteamLUG"> \t\t<meta name="twitter:title" content="{$event['title']}"> \t\t<meta name="twitter:description" content="Join our community playing ‘{$event['title']}’ at {$event['time']} UTC. Everyone is welcome!<br>{$event['url']}"> \t\t<meta name="twitter:image:src" content="https:{$event['img_header']}"> TWITCARD; $extraJS = "\t\t\tvar target = new Date(" . $eTime . ");"; $tailJS = array('/scripts/events.js'); } include_once 'includes/header.php'; ?> <h1 class="text-center">SteamLUG Events</h1>
<?php include_once '../includes/functions_events.php'; echo json_encode(getRecentEvents());