aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/reportedcontent/views')
-rw-r--r--mod/reportedcontent/views/default/admin/utilities/reportedcontent.php11
-rw-r--r--mod/reportedcontent/views/default/object/reported_content.php14
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/admin_css.php36
3 files changed, 23 insertions, 38 deletions
diff --git a/mod/reportedcontent/views/default/admin/utilities/reportedcontent.php b/mod/reportedcontent/views/default/admin/utilities/reportedcontent.php
index 3f79d500a..32f108312 100644
--- a/mod/reportedcontent/views/default/admin/utilities/reportedcontent.php
+++ b/mod/reportedcontent/views/default/admin/utilities/reportedcontent.php
@@ -5,16 +5,9 @@
* @package ElggReportedContent
*/
-$title = elgg_view_title(elgg_echo('reportedcontent'));
-
$list = elgg_list_entities(array('types' => 'object', 'subtypes' => 'reported_content'));
if (!$list) {
- $list = '<p class="margin-top">' . elgg_echo('reportedcontent:none') . '</p>';
+ $list = '<p class="mtm">' . elgg_echo('reportedcontent:none') . '</p>';
}
-$body = <<<__HTML
-$title
-$list
-__HTML;
-
-echo $body; \ No newline at end of file
+echo $list; \ No newline at end of file
diff --git a/mod/reportedcontent/views/default/object/reported_content.php b/mod/reportedcontent/views/default/object/reported_content.php
index 0ac4457da..0ab157d62 100644
--- a/mod/reportedcontent/views/default/object/reported_content.php
+++ b/mod/reportedcontent/views/default/object/reported_content.php
@@ -13,14 +13,14 @@ $delete_url = elgg_get_site_url() . "action/reportedcontent/delete?guid=$report-
//find out if the report is current or archive
if ($report->state == 'archived') {
- $reportedcontent_background = "archived_report";
+ $reportedcontent_background = "reported-content-archived";
} else {
- $reportedcontent_background = "active_report";
+ $reportedcontent_background = "reported-content-active";
}
?>
-<div class="admin_settings reported_content <?php echo $reportedcontent_background; ?>">
+<div class="reported-content <?php echo $reportedcontent_background; ?>">
<div class="clearfix controls">
<?php
if ($report->state != 'archived') {
@@ -36,7 +36,7 @@ if ($report->state == 'archived') {
'href' => $delete_url,
'text' => elgg_echo('reportedcontent:delete'),
'is_action' => true,
- 'class' => 'elgg-action-button disabled',
+ 'class' => 'elgg-action-button',
);
echo elgg_view('output/url', $params);
?>
@@ -57,12 +57,12 @@ if ($report->state == 'archived') {
<?php echo elgg_view('output/url', array(
'href' => '#',
'text' => elgg_echo('reportedcontent:moreinfo'),
- 'class' => 'details_link',
- 'onclick' => "elgg_slide_toggle(this, '.reported_content', '.reported_content_more{$report->getGUID()}'); return false;"
+ 'class' => "elgg-toggle",
+ 'internalid' => "elgg-toggler-report-$report->guid",
));
?>
</p>
- <div class="details hidden reported_content_more<?php echo $report->getGUID();?>">
+ <div class="hidden" id="elgg-togglee-report-<?php echo $report->getGUID();?>">
<p>
<b><?php echo elgg_echo('reportedcontent:objecturl'); ?>:</b>
<?php echo elgg_view('output/url', array(
diff --git a/mod/reportedcontent/views/default/reportedcontent/admin_css.php b/mod/reportedcontent/views/default/reportedcontent/admin_css.php
index 82566ff3a..02c235a99 100644
--- a/mod/reportedcontent/views/default/reportedcontent/admin_css.php
+++ b/mod/reportedcontent/views/default/reportedcontent/admin_css.php
@@ -7,32 +7,24 @@
?>
/* REPORTED CONTENT */
-.admin_settings.reported_content {
- margin:5px 0 0 0;
- padding:5px 7px 3px 9px;
+.reported-content {
+ margin: 5px 0 0 0;
+ padding: 5px 7px 3px 9px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
-.admin_settings.reported_content p {
- margin:0;
+.reported-content p {
+ margin: 0;
}
-.active_report {
- border:1px solid #D3322A;
- background:#F7DAD8;
+.reported-content-active {
+ border: 1px solid #D3322A;
+ background: #F7DAD8;
}
-.archived_report {
- border:1px solid #666666;
- background:#dedede;
+.reported-content-archived {
+ border: 1px solid #666666;
+ background: #dedede;
}
-.admin_settings.reported_content .controls {
- float:right;
- margin:14px 5px 0 0;
-}
-.admin_settings.reported_content a.action_button {
- display:inline;
- float:right;
- margin-left:15px;
-}
-.admin_settings.reported_content .details_link {
- cursor: pointer;
+.reported-content .controls {
+ float: right;
+ margin: 14px 5px 0 0;
}