- Larry skin for owncloud

This commit is contained in:
Aleksander Machniak 2012-03-08 19:31:33 +01:00
parent 3df2e08844
commit 2948cee6c1
4 changed files with 37 additions and 8 deletions

View file

@ -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';

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -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;
}

View file

@ -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>