{$_MENU['events']}
"; # get the events to display $events = xml_parse_file($_CONFIG['events_file']); # it may be the case that there are no events scheduled if(!is_array($events['events'])) { print $_ERRORS['noevents']; } # print the events if they do exist (amazing logic, I know) else { $events = xml_force_array($events['events']['event']); # step through each event and print the html for it foreach($events as $event) { # the html if there is a picture to show with this event $picture = ''; if(!empty($event['picture'])) { $picture = ""; } # put line breaks into location data $event['location'] = nl2br($event['location']); # put line breaks into description data $event['description'] = nl2br($event['description']); print "
{$event['title']}
$picture

{$_WORDS['when']}: {$event['date']}, {$_WORDS['from']} {$event['starttime']} {$_WORDS['until']} {$event['endtime']}

{$_WORDS['where']}:
{$event['location']}

{$_WORDS['what']}:
{$event['description']}

"; } } print "
"; ?>