diff --git a/core/templates/acarsmap.php b/core/templates/acarsmap.php index 965ff687..f42de4c1 100644 --- a/core/templates/acarsmap.php +++ b/core/templates/acarsmap.php @@ -1,4 +1,5 @@ - +Activity Feed -type to determine the type of activity (duh?) - Constants are in app.config.php - - Like here, I put a specific link to the PIREP at the end of the message - You can use the if/else's to add specific images? - - $activity->refid is the ID of the thing it's referring to, so if it's a - new PIREP, the refid will be the ID of the PIREP - - $activity-> also contains all the fields about the pilot who this notice - is about - */ - - $link_title = ''; - $link_href = ''; - if($activity->type == ACTIVITY_NEW_PIREP) { - - $link_href = url('/pireps/view/'.$activity->refid); - $link_title = 'View Flight Report'; - - } elseif($activity->type == ACTIVITY_TWITTER) { - - $link_href = 'http://twitter.com/#!/'.Config::get('TWITTER_AIRLINE_ACCOUNT').'/status/'.$activity->refid; - $link_title = 'View Tweet'; - - } elseif($activity->type == ACTIVITY_NEW_PILOT) { - $link_href = url('/profile/view/'.$activity->pilotid); - $link_title = 'View Profile'; - } -?> -
- type == ACTIVITY_TWITTER) { - echo ''; - } - - ?> - pilotid != 0) { - $pilotCode = PilotData::getPilotCode($activity->code, $activity->pilotid); - ?> - - - firstname.' '.$activity->lastname?> - - - - - message); - ?> - - '.$link_title.''; - } - ?> -
- ++ type == ACTIVITY_TWITTER) { + echo ''; + } + + ?> + pilotid != 0) { + $pilotCode = PilotData::getPilotCode($activity->code, $activity->pilotid); + ?> + + + firstname.' '.$activity->lastname?> + + + + + message); + ?> + + '.$link_title.''; + } + ?> +
+ \ No newline at end of file diff --git a/core/templates/contact_form.php b/core/templates/contact_form.php index fba600b4..419b8fa2 100644 --- a/core/templates/contact_form.php +++ b/core/templates/contact_form.php @@ -1,3 +1,4 @@ +