summaryrefslogtreecommitdiff
path: root/plugins/markasjunk/markasjunk.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-22 12:05:16 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-22 12:05:16 +0000
commit38394350ffaf894e399b860531bc9d3cee303e0d (patch)
treecfd4023345e280e78b54decb0bd4d2eaa787dd85 /plugins/markasjunk/markasjunk.php
parent957c5298a18e7aafc39bc33f674322f87702a683 (diff)
Let plugins adapt better to different skins
git-svn-id: https://svn.roundcube.net/trunk@5642 208e9e7b-5314-0410-a742-e7e81cd9613c
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');
}
}