summaryrefslogtreecommitdiff
path: root/plugins/UserFlag/UserFlagPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserFlag/UserFlagPlugin.php')
-rw-r--r--plugins/UserFlag/UserFlagPlugin.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php
index fbe5fd351..2376bb859 100644
--- a/plugins/UserFlag/UserFlagPlugin.php
+++ b/plugins/UserFlag/UserFlagPlugin.php
@@ -102,7 +102,7 @@ class UserFlagPlugin extends Plugin
$action->elementStart('li', 'entity_flag');
if (User_flag_profile::exists($profile->id, $user->id)) {
- $action->element('span', array(),
+ $action->element('p', array(),
_('Flagged for review'));
} else {
$form = new FlagProfileForm($action, $profile,
@@ -130,4 +130,15 @@ class UserFlagPlugin extends Plugin
return true;
}
+
+ function onEndShowStatusNetStyles($action)
+ {
+ $action->elementStart('style', array('type' => 'text/css'));
+ $action->raw('.entity_flag input, .entity_flag p {'.
+ ' background:url('.common_path('plugins/UserFlag/flag.gif').') 5px 5px no-repeat;'.
+ ' }');
+ $action->elementEnd('style');
+
+ return true;
+ }
}