* @copyright Curverider Ltd 2008-2010 * @link http://elgg.org/ */ if($vars['entity']){ $id = 0; foreach($vars['entity'] as $report){ // increment our id counter $id++; //get the user making the report $user = get_user($report->owner_guid)->name; $user_url = get_user($report->owner_guid)->getURL(); //find out if the report is current or archive if($report->state == 'archived'){ $reportedcontent_background = "archived_report"; }else{ $reportedcontent_background = "active_report"; } echo "
" . elgg_echo('reportedcontent:by') . ": " . $user . ", " . elgg_view_friendly_time($report->time_created) . "
"; echo "" . elgg_echo('reportedcontent:objecttitle') . ": " . $report->title;
echo "
" . elgg_echo('reportedcontent:moreinfo') . "
".elgg_echo('reportedcontent:none')."
"; }