summaryrefslogtreecommitdiff
path: root/plugins/owncloud
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-03-08 18:31:33 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-03-08 18:31:33 (GMT)
commit2948cee6c1a98fdaec0bc0c4f45ef245617bc351 (patch)
treec3ad8c16329e19495ffb23c70d62807edadaa2a8 /plugins/owncloud
parent3df2e08844341f7c8e782ea2dfafa9c061e3f4ab (diff)
downloadroundcubemail-plugins-kolab-2948cee6c1a98fdaec0bc0c4f45ef245617bc351.tar.gz
- Larry skin for owncloud
Diffstat (limited to 'plugins/owncloud')
-rw-r--r--plugins/owncloud/owncloud.php11
-rw-r--r--plugins/owncloud/skins/larry/cloud.pngbin0 -> 1844 bytes
-rw-r--r--plugins/owncloud/skins/larry/owncloud.css14
-rw-r--r--plugins/owncloud/skins/larry/templates/owncloud.html20
4 files changed, 37 insertions, 8 deletions
diff --git a/plugins/owncloud/owncloud.php b/plugins/owncloud/owncloud.php
index 2b05f3f..d847cc3 100644
--- a/plugins/owncloud/owncloud.php
+++ b/plugins/owncloud/owncloud.php
@@ -39,18 +39,13 @@ class owncloud extends rcube_plugin
// add taskbar button
$this->add_button(array(
- 'name' => 'owncloud',
+ 'command' => 'owncloud',
'class' => 'button-owncloud',
+ 'classsel' => 'button-owncloud button-selected',
+ 'innerclass' => 'button-inner',
'label' => 'owncloud.owncloud',
- 'href' => './?_task=owncloud',
- 'onclick' => sprintf("return %s.command('owncloud')", JS_OBJECT_NAME)
), 'taskbar');
- $rcmail->output->add_script(
- JS_OBJECT_NAME . ".enable_command('owncloud', true);\n" .
- JS_OBJECT_NAME . ".owncloud = function () { location.href = './?_task=owncloud'; }",
- 'head');
-
$skin = $rcmail->config->get('skin');
if (!file_exists($this->home."/skins/$skin/owncloud.css")) {
$skin = 'default';
diff --git a/plugins/owncloud/skins/larry/cloud.png b/plugins/owncloud/skins/larry/cloud.png
new file mode 100644
index 0000000..7ad3cd9
--- /dev/null
+++ b/plugins/owncloud/skins/larry/cloud.png
Binary files differ
diff --git a/plugins/owncloud/skins/larry/owncloud.css b/plugins/owncloud/skins/larry/owncloud.css
new file mode 100644
index 0000000..1e9aa89
--- /dev/null
+++ b/plugins/owncloud/skins/larry/owncloud.css
@@ -0,0 +1,14 @@
+/***** ownCloud plugin styles *****/
+
+#taskbar a.button-owncloud span.button-inner
+{
+ background: url(cloud.png) 5px 5px no-repeat;
+ height: 14px;
+}
+
+#taskbar a.button-owncloud:hover span.button-inner,
+#taskbar a.button-owncloud.button-selected span.button-inner
+{
+ background: url(cloud.png) 5px -16px no-repeat;
+ height: 14px;
+}
diff --git a/plugins/owncloud/skins/larry/templates/owncloud.html b/plugins/owncloud/skins/larry/templates/owncloud.html
new file mode 100644
index 0000000..8b3f470
--- /dev/null
+++ b/plugins/owncloud/skins/larry/templates/owncloud.html
@@ -0,0 +1,20 @@
+<roundcube:object name="doctype" value="html5" />
+<html>
+<head>
+<title><roundcube:object name="pagetitle" /></title>
+<roundcube:include file="/includes/links.html" />
+<link rel="stylesheet" type="text/css" href="/this/owncloud.css" />
+<link rel="stylesheet" type="text/css" href="/settings.css" />
+</head>
+<body class="noscroll">
+
+<roundcube:include file="/includes/header.html" />
+
+<div id="mainscreen" class="offset uibox" style="overflow: hidden">
+ <roundcube:object name="owncloudframe" />
+</div>
+
+<roundcube:include file="/includes/footer.html" />
+
+</body>
+</html>