From: Evan Prodromou Date: Wed, 7 Mar 2012 20:32:05 +0000 (-0600) Subject: Add icons for spam toggle X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9566af3d9c6c730caa5102d27f3432cc503fc7e;p=quix0rs-gnu-social.git Add icons for spam toggle --- diff --git a/ActivitySpamPlugin.php b/ActivitySpamPlugin.php index e497b9a744..b62401ce1b 100644 --- a/ActivitySpamPlugin.php +++ b/ActivitySpamPlugin.php @@ -215,6 +215,14 @@ class ActivitySpamPlugin extends Plugin return true; } + function onEndShowStyles($action) + { + $action->element('style', null, + 'form_train_spam input.submit { background: url("'.$this->path('icons/bullet_black.png').'") no-repeat 0px 0px } ' . "\n" . + 'form_train_spam input.submit { background: url("'.$this->path('icons/exclamation.png').'") no-repeat 0px 0px } '); + return true; + } + function onPluginVersion(&$versions) { $versions[] = array('name' => 'ActivitySpam', diff --git a/icons/bullet_black.png b/icons/bullet_black.png new file mode 100644 index 0000000000..57619706d1 Binary files /dev/null and b/icons/bullet_black.png differ diff --git a/icons/exclamation.png b/icons/exclamation.png new file mode 100644 index 0000000000..c37bd062e6 Binary files /dev/null and b/icons/exclamation.png differ