Want our infrequent emails?

Subscribe to our mailing list

* indicates required
*

Come to these nights

getAccessToken(); $events = array(); $pages = array("jjesters", "jesterjestersstokey", "raconteurscomedy"); foreach ( $pages as $p ) { $ch = curl_init("https://graph.facebook.com/v2.10/$p/events?access_token=$accTok&fields=start_time,name,place,ticket_uri,cover"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = json_decode(curl_exec($ch), true); foreach ( $response["data"] as $ev ) $events[$ev["id"]] = $ev; } function stripTime( $ts ) { return 86400*floor($ts/86400); } $eventList = array(); foreach ( $events as $evId => $ev ) { $ev["start_time_d"] = stripTime(strtotime($ev["start_time"])); if ( $ev["start_time_d"] >= stripTime( time() ) ) { $placed = false; $i = 0; foreach ( $eventList as $evCmp ) { if ( $ev["start_time_d"] < $evCmp["start_time_d"] ) { array_splice( $eventList, $i, 0, array( $ev ) ); $placed = true; } if ( $placed ) break; $i++; } if ( ! $placed ) array_push( $eventList, $ev ); } } foreach ( $eventList as $ev ) { $st = strtotime($ev["start_time"]); $uri = $ev["ticket_uri"] ? $ev["ticket_uri"] : "https://facebook.com/$ev[id]"; $img_uri = 'https://billetto.imgix.net/cropped_images/2406649/original/883497bc-6686-492b-bc41-d478dfe342bf.jpg?w=1440&h=600&fit=crop&crop=entropy%2Cfaces&s=e078cc7c2e71aba665051c896edbd05c'; if ($ev["cover"]) $img_uri = $ev['cover']['source']; $img = "
"; echo "
" . "
" . "" . "
" . "
{$ev[place][name]}
" . "
" . date("l jS F Y H:i", $st) . "
" . $img . "
" . "
" . "
"; } ?>

Request a spot

Request an available Monday using SPOTlz.
Alternatively, send us an email to info@jesterjesters.com

Us on Facebook

Us on Twitter