diff options
Diffstat (limited to 'plugins/markasjunk')
| -rw-r--r-- | plugins/markasjunk/localization/en_US.inc | 1 | ||||
| -rw-r--r-- | plugins/markasjunk/markasjunk.php | 16 | ||||
| -rw-r--r-- | plugins/markasjunk/package.xml | 4 | ||||
| -rw-r--r-- | plugins/markasjunk/skins/default/markasjunk.css | 6 |
4 files changed, 19 insertions, 8 deletions
diff --git a/plugins/markasjunk/localization/en_US.inc b/plugins/markasjunk/localization/en_US.inc index 6f63e161a..c1f56ad1d 100644 --- a/plugins/markasjunk/localization/en_US.inc +++ b/plugins/markasjunk/localization/en_US.inc @@ -1,6 +1,7 @@ <?php $labels = array(); +$labels['buttontext'] = 'Junk'; $labels['buttontitle'] = 'Mark as Junk'; $labels['reportedasjunk'] = 'Successfully reported as Junk'; diff --git a/plugins/markasjunk/markasjunk.php b/plugins/markasjunk/markasjunk.php index 697d880ca..7f87f5baa 100644 --- a/plugins/markasjunk/markasjunk.php +++ b/plugins/markasjunk/markasjunk.php @@ -18,18 +18,22 @@ class markasjunk extends rcube_plugin $rcmail = rcmail::get_instance(); $this->register_action('plugin.markasjunk', array($this, 'request_action')); - + if ($rcmail->action == '' || $rcmail->action == 'show') { $skin_path = $this->local_skin_path(); $this->include_script('markasjunk.js'); + if (is_file($this->home . "/$skin_path/markasjunk.css")) + $this->include_stylesheet("$skin_path/markasjunk.css"); $this->add_texts('localization', true); + $this->add_button(array( + 'type' => 'link', + 'label' => 'buttontext', 'command' => 'plugin.markasjunk', - 'imagepas' => $skin_path.'/junk_pas.png', - 'imageact' => $skin_path.'/junk_act.png', - 'width' => 32, - 'height' => 32, - 'title' => 'markasjunk.buttontitle'), 'toolbar'); + 'class' => 'button buttonPas junk disabled', + 'classact' => 'button junk', + 'title' => 'buttontitle', + 'domain' => 'markasjunk'), 'toolbar'); } } diff --git a/plugins/markasjunk/package.xml b/plugins/markasjunk/package.xml index 56e4de0d5..1f6c96cf6 100644 --- a/plugins/markasjunk/package.xml +++ b/plugins/markasjunk/package.xml @@ -16,8 +16,8 @@ <date>2010-03-29</date> <time>13:20:00</time> <version> - <release>1.0</release> - <api>1.0</api> + <release>1.1</release> + <api>1.1</api> </version> <stability> <release>stable</release> diff --git a/plugins/markasjunk/skins/default/markasjunk.css b/plugins/markasjunk/skins/default/markasjunk.css new file mode 100644 index 000000000..89ea568f4 --- /dev/null +++ b/plugins/markasjunk/skins/default/markasjunk.css @@ -0,0 +1,6 @@ + +#messagetoolbar a.button.junk { + text-indent: -1000px; + background: url(junk_act.png) 0 0 no-repeat; +} + |
