summaryrefslogtreecommitdiff
path: root/plugins/markasjunk
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-15 13:47:12 +0000
committeralecpl <alec@alec.pl>2009-09-15 13:47:12 +0000
commit34aec72131fee81697685f9781358e4871ea0150 (patch)
treedf2c6b6d235cc09456f00f5ad0fa5526ea20a993 /plugins/markasjunk
parent2b77e8daa7f7e5c0a71f615672cdb492dcdf0dad (diff)
- Support skins in 'archive' and 'markasjunk' plugins
Diffstat (limited to 'plugins/markasjunk')
-rw-r--r--plugins/markasjunk/markasjunk.php7
-rw-r--r--plugins/markasjunk/skins/default/junk_act.png (renamed from plugins/markasjunk/junk_act.png)bin1995 -> 1995 bytes
-rw-r--r--plugins/markasjunk/skins/default/junk_pas.png (renamed from plugins/markasjunk/junk_pas.png)bin1988 -> 1988 bytes
3 files changed, 5 insertions, 2 deletions
diff --git a/plugins/markasjunk/markasjunk.php b/plugins/markasjunk/markasjunk.php
index b269637f4..961a446d8 100644
--- a/plugins/markasjunk/markasjunk.php
+++ b/plugins/markasjunk/markasjunk.php
@@ -20,10 +20,13 @@ class markasjunk extends rcube_plugin
$rcmail = rcmail::get_instance();
if ($rcmail->action == '' || $rcmail->action == 'show') {
+ $skin_path = 'skins/'.$rcmail->output->config['skin'];
$this->include_script('markasjunk.js');
$this->add_texts('localization', true);
- $this->add_button(array('command' => 'plugin.markasjunk', 'imagepas' => 'junk_pas.png',
- 'imageact' => 'junk_act.png', 'title' => 'markasjunk.buttontitle'), 'toolbar');
+ $this->add_button(array('command' => 'plugin.markasjunk',
+ 'imagepas' => $skin_path.'/junk_pas.png',
+ 'imageact' => $skin_path.'/junk_act.png',
+ 'title' => 'markasjunk.buttontitle'), 'toolbar');
}
}
diff --git a/plugins/markasjunk/junk_act.png b/plugins/markasjunk/skins/default/junk_act.png
index b5a84f604..b5a84f604 100644
--- a/plugins/markasjunk/junk_act.png
+++ b/plugins/markasjunk/skins/default/junk_act.png
Binary files differ
diff --git a/plugins/markasjunk/junk_pas.png b/plugins/markasjunk/skins/default/junk_pas.png
index b88a561a4..b88a561a4 100644
--- a/plugins/markasjunk/junk_pas.png
+++ b/plugins/markasjunk/skins/default/junk_pas.png
Binary files differ