From 855b008013aad0426ab0332b040bddb033bb6af9 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 29 Nov 2010 00:56:55 +0000 Subject: cleaned up the reported content plugin git-svn-id: http://code.elgg.org/elgg/trunk@7466 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/object/reported_content.php | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 mod/reportedcontent/views/default/object/reported_content.php (limited to 'mod/reportedcontent/views/default/object/reported_content.php') diff --git a/mod/reportedcontent/views/default/object/reported_content.php b/mod/reportedcontent/views/default/object/reported_content.php new file mode 100644 index 000000000..fa809bae6 --- /dev/null +++ b/mod/reportedcontent/views/default/object/reported_content.php @@ -0,0 +1,79 @@ +getOwnerEntity(); + +$archive_url = elgg_get_site_url() . "action/reportedcontent/archive?guid=$report->guid"; +$delete_url = elgg_get_site_url() . "action/reportedcontent/delete?guid=$report->guid"; + +//find out if the report is current or archive +if ($report->state == 'archived') { + $reportedcontent_background = "archived_report"; +} else { + $reportedcontent_background = "active_report"; +} + +?> + +
+
+state != 'archived') { + $params = array( + 'href' => $archive_url, + 'text' => elgg_echo('reportedcontent:archive'), + 'is_action' => true, + 'class' => 'action_button', + ); + echo elgg_view('output/url', $params); + } + $params = array( + 'href' => $delete_url, + 'text' => elgg_echo('reportedcontent:delete'), + 'is_action' => true, + 'class' => 'action_button disabled', + ); + echo elgg_view('output/url', $params); +?> +
+

+ : + $reporter->getURL(), + 'text' => $reporter->name + )); + ?>, + time_created); ?> +

+

+ : + title; ?> +
+ '#', + 'text' => elgg_echo('reportedcontent:moreinfo'), + 'class' => 'details_link', + 'onclick' => "elgg_slide_toggle(this, '.reported_content', '.reported_content_more{$report->getGUID()}'); return false;" + )); + ?> +

+ +
-- cgit v1.2.3