echo $event->id; ?> &format=gpx" title="Download this walk in GPX format for a computer or GPS device">Download route</a> </p> <?php } ?> <?php } ?> <?php if ($this->eventInPast($event)) { $attended = $event->wasAttendedBy(Jfactory::getUser()->id); ?> <?php if (SWG_EventsController::canSeeAttendanceCount() && $event->numAttendees > 0) { // TODO: Add attendees & tickbox to past events on bottomless page ?> <p><?php echo $event->numAttendees; if ($event->numAttendees == 1) { ?> person<?php } else { ?> people<?php } ?> did this</p> <?php }