"; if($vars['entity']){ foreach($vars['entity'] as $report){ //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') { $url = elgg_add_action_tokens_to_url($vars['url'] . "action/reportedcontent/archive?item=" . $report->guid ); echo "" . elgg_echo('reportedcontent:archive') . ""; } $url = elgg_add_action_tokens_to_url($vars['url'] . "action/reportedcontent/delete?item=" . $report->guid); echo "" . elgg_echo('reportedcontent:delete') . "

"; echo "

" . elgg_echo('reportedcontent:by') . ": " . $user . ", " . friendly_time($report->time_created) . "

"; echo "

" . elgg_echo('reportedcontent:objecttitle') . ": " . $report->title . "

"; echo "

" . elgg_echo('reportedcontent:objecturl') . ": address}\">" . elgg_echo('reportedcontent:visit') . "

"; echo "

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

"; echo "
"; echo "

" . elgg_echo('reportedcontent:reason') . ": " .$report->description . "

"; echo "
"; } } echo ""; ?>