// 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 
            }
            if (SWG_EventsController::canRecordAttendance()) {
                ?>
							<p>
								<a class="attendance" href="<?php 
                echo JURI::current();
                ?>
?<?php 
                echo JURI::buildQuery(array("task" => "attendance.attend", "evttype" => $event->getType(), "evtid" => $event->id, "set" => (int) (!$attended)));
                ?>
"
									><img src="/images/icons/<?php 
                if ($attended) {
                    ?>
tick<?php 
                } else {
                    ?>
 public function showEditLinks($event)
 {
     return JRequest::getBool("showEditOptions") && SWG_EventsController::canEdit($event) && ($event instanceof WalkInstance && $this->addEditWalkURL() || $event instanceof Social && $this->addEditSocialURL() || $event instanceof Weekend && $this->addEditWeekendURL());
 }
 function showAddDummy()
 {
     return JRequest::getBool("showEditOptions") && $this->addEditDummyURL() && SWG_EventsController::canAddDummy();
 }