-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloud_button.php
41 lines (35 loc) · 966 Bytes
/
cloud_button.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Roundcube Plugin Cloud Button
* Plugin to add button in taskbar to open cloud storage.
*
* @version 1.0.2
* @author Alexander Pushkin <[email protected]>
* @copyright Copyright (c) 2019, Alexander Pushkin
* @link https://github.com/san4op/roundcube_cloud_button
* @license GNU General Public License, version 3
*/
class cloud_button extends rcube_plugin
{
private $url;
function init()
{
$this->load_config();
$this->url = rcube::get_instance()->config->get('cloud_button_url', '');
if (!$this->url) {
return;
}
$this->include_stylesheet($this->local_skin_path() . '/cloud_button.css');
$this->add_texts('localization/');
$this->add_button(array(
'type' => 'link',
'label' => 'cloud_button.cloud',
'href' => $this->url,
'target' => '_blank',
'class' => 'button-cloud',
'classsel' => 'button-cloud button-selected',
'innerclass' => 'button-inner'
), 'taskbar');
}
}
?>