From 4766f36a4d74924f21ff329c4318ce4e069ffa04 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 17:53:05 +0000 Subject: Pulled in the interface changes. git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/reportedcontent/css.php | 91 ++++++++++++++++++++++ .../views/default/reportedcontent/form.php | 74 ++++++++++++++++++ .../views/default/reportedcontent/listing.php | 43 ++++++++++ .../views/default/reportedcontent/owner_block.php | 9 +++ .../views/default/reportedcontent/user_report.php | 6 ++ 5 files changed, 223 insertions(+) create mode 100644 mod/reportedcontent/views/default/reportedcontent/css.php create mode 100644 mod/reportedcontent/views/default/reportedcontent/form.php create mode 100644 mod/reportedcontent/views/default/reportedcontent/listing.php create mode 100644 mod/reportedcontent/views/default/reportedcontent/owner_block.php create mode 100644 mod/reportedcontent/views/default/reportedcontent/user_report.php (limited to 'mod/reportedcontent/views/default') diff --git a/mod/reportedcontent/views/default/reportedcontent/css.php b/mod/reportedcontent/views/default/reportedcontent/css.php new file mode 100644 index 000000000..061a5e5f6 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/css.php @@ -0,0 +1,91 @@ + + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.org/ + */ + +?> +/* *************************************** +PAGE-OWNER BLOCK +*************************************** */ +#owner_block_report_this { + padding:5px 0 0 0; +} +#owner_block_report_this a { + font-size: 90%; + color:#999999; + padding:0 0 4px 20px; + background: url(_graphics/icon_reportthis.gif) no-repeat left top; +} +#owner_block_report_this a:hover { + color: #0054a7; +} + +/* *************************************** + ADMIN AREA - REPORTED CONTENT +*************************************** */ +.reportedcontent_content { + margin:0 0 5px 0; + padding:0 7px 4px 10px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; +} +.reportedcontent_content p.reportedcontent_detail, +.reportedcontent_content p { + margin:0; +} +.active_report { + border:1px solid #D3322A; + background:#F7DAD8; +} +.archived_report { + border:1px solid #666666; + background:#dedede; +} +a.archive_report_button { + float:right; + font: 12px/100% Arial, Helvetica, sans-serif; + font-weight: bold; + color: #ffffff; + background:#4690d6; + border: 1px solid #4690d6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + width: auto; + padding: 4px; + margin:15px 0 0 20px; + cursor: pointer; +} +a.archive_report_button:hover { + background: #0054a7; + border: 1px solid #0054a7; + text-decoration: none; +} +a.delete_report_button { + float:right; + font: 12px/100% Arial, Helvetica, sans-serif; + font-weight: bold; + color: #ffffff; + background:#999999; + border: 1px solid #999999; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + width: auto; + padding: 4px; + margin:15px 0 0 20px; + cursor: pointer; +} +a.delete_report_button:hover { + background: #333333; + border: 1px solid #333333; + text-decoration:none; +} +.reportedcontent_content .collapsible_box { + background: white; +} diff --git a/mod/reportedcontent/views/default/reportedcontent/form.php b/mod/reportedcontent/views/default/reportedcontent/form.php new file mode 100644 index 000000000..73fbd5c93 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/form.php @@ -0,0 +1,74 @@ + + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.org/ + */ + + $guid = 0; + $title = get_input('title',""); + $description = ""; + $address = get_input('address',""); + if ($address == "previous") + $address = $_SERVER['HTTP_REFERER']; + $tags = array(); + $access_id = ACCESS_PRIVATE; + $shares = array(); + $owner = $vars['user']; + +?> +
+
+ + +

+ +

+

+ +

+

+ +

+

+ +

+ +
+
diff --git a/mod/reportedcontent/views/default/reportedcontent/listing.php b/mod/reportedcontent/views/default/reportedcontent/listing.php new file mode 100644 index 000000000..5d3d3d997 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/listing.php @@ -0,0 +1,43 @@ + +"; + + 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 ""; +?> diff --git a/mod/reportedcontent/views/default/reportedcontent/owner_block.php b/mod/reportedcontent/views/default/reportedcontent/owner_block.php new file mode 100644 index 000000000..3624a86d2 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/owner_block.php @@ -0,0 +1,9 @@ + +
+ +
diff --git a/mod/reportedcontent/views/default/reportedcontent/user_report.php b/mod/reportedcontent/views/default/reportedcontent/user_report.php new file mode 100644 index 000000000..ee6c7cbf8 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/user_report.php @@ -0,0 +1,6 @@ + +

+wwwroot . "mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">" . elgg_echo('reportedcontent:report') . ""; +?> +

\ No newline at end of file -- cgit v1.2.3