public function panel_markup($event_id = 0) { if ($event_id) { $users = $this->get_users_by_event($event_id); $tpl = new WT_Theme(); echo $tpl->rsvp($this->template($users)); } }