activity = new Activity($this->db, $this->lang, $id); if ($this->activity->is_past()){ $this->template = $path["template"] . "activity_past.php"; } else{ $this->template = $path["template"] . "activity_future.php"; } $this->title = $this->activity->title . " - " . $data["name"]; $this->description = $this->activity->title . " - " . $data["name"]; if (sizeof($this->activity->image) > 0){ $this->icon = $static["content"] . "activity/" . $this->activity->image[0]->image; } else{ $this->icon = $static["layout"] . "logo/logo.svg"; } $this->canonical = $base_url . "/actividades/" . $this->activity->permalink . "/"; } } ?>