- Larry skin for owncloud
This commit is contained in:
parent
3df2e08844
commit
2948cee6c1
4 changed files with 37 additions and 8 deletions
|
@ -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';
|
||||
|
|
BIN
plugins/owncloud/skins/larry/cloud.png
Normal file
BIN
plugins/owncloud/skins/larry/cloud.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
14
plugins/owncloud/skins/larry/owncloud.css
Normal file
14
plugins/owncloud/skins/larry/owncloud.css
Normal 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;
|
||||
}
|
20
plugins/owncloud/skins/larry/templates/owncloud.html
Normal file
20
plugins/owncloud/skins/larry/templates/owncloud.html
Normal 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>
|
Loading…
Add table
Reference in a new issue