]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add icons for spam toggle
authorEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 20:32:05 +0000 (14:32 -0600)
committerEvan Prodromou <evan@status.net>
Wed, 7 Mar 2012 20:32:05 +0000 (14:32 -0600)
ActivitySpamPlugin.php
icons/bullet_black.png [new file with mode: 0644]
icons/exclamation.png [new file with mode: 0644]

index e497b9a7444e9cfd2eac8fe43caf8ea36eea18ba..b62401ce1ba816d191b26c4f9d6d34200969e1f3 100644 (file)
@@ -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 (file)
index 0000000..5761970
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 (file)
index 0000000..c37bd06
Binary files /dev/null and b/icons/exclamation.png differ