* @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 "
"; echo "
"; if($report->state != 'archived') echo "guid}") . "\">" . elgg_echo('reportedcontent:archive') . ""; echo "guid}") . "\" onclick=\"return confirm('" . elgg_echo('reportedcontent:areyousure') . "')\">" . elgg_echo('reportedcontent:delete') . "
"; 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') . "

"; echo "
"; } } else { echo "

".elgg_echo('reportedcontent:none')."

"; }