From e9566af3d9c6c730caa5102d27f3432cc503fc7e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 7 Mar 2012 14:32:05 -0600 Subject: [PATCH] Add icons for spam toggle --- ActivitySpamPlugin.php | 8 ++++++++ icons/bullet_black.png | Bin 0 -> 211 bytes icons/exclamation.png | Bin 0 -> 701 bytes 3 files changed, 8 insertions(+) create mode 100644 icons/bullet_black.png create mode 100644 icons/exclamation.png 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 0000000000000000000000000000000000000000..57619706d10d9736b1849a83f2c5694fbe09c53b GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^zbpD<_bdI{u9mbgZg z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-$h^>lFz(Kw&{<9vg>5sw~gS5O!4 zr|{HuUFIBKiQyL}eBJ-L{`UVT|6_O~L{G%N{Wbre{kQtZ_0LvEhN#0$9Ug7g~-`rQ^qx~m@y2OU8A z#zh~=7n#Z$Z*fx-GOtDf07cgx0suCz_W(2~Y(0tf@FX@P6EPuM_dgn$vj9LucO)%W zw%HgMW>=#oL>nZ>M&NEf08>)#)k<{$fCT_r>rPi=BV=hFh6WS^qqze>C6Ek}o{M5% za|@JGowu0t{&hgNzySHZxy@LTNh);YzZ2zSp_ zl$^T&Dnc|NLb&RD_!4>pt@VHdP)ZGER%5ZmWEe$lryR&y;2u^3cOkO4#6c%-(EY6a{600000NkvXXu0mjfxS2AI literal 0 HcmV?d00001 -- 2.39.5