summaryrefslogtreecommitdiff
path: root/plugins/markasjunk/markasjunk.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/markasjunk/markasjunk.php')
-rw-r--r--plugins/markasjunk/markasjunk.php16
1 files changed, 10 insertions, 6 deletions
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');
}
}