Don't exclude larry skin
This commit is contained in:
commit
e64c624622
8 changed files with 57 additions and 15 deletions
1
plugins/calendar/.gitignore
vendored
1
plugins/calendar/.gitignore
vendored
|
@ -5,3 +5,4 @@
|
||||||
config.inc.php
|
config.inc.php
|
||||||
skins/*
|
skins/*
|
||||||
!skins/default
|
!skins/default
|
||||||
|
!skins/larry
|
|
@ -1242,7 +1242,11 @@ fieldset #calendarcategories div {
|
||||||
/* Invitation UI in mail */
|
/* Invitation UI in mail */
|
||||||
|
|
||||||
#messagemenu li a.calendarlink span.calendar {
|
#messagemenu li a.calendarlink span.calendar {
|
||||||
|
<<<<<<< HEAD
|
||||||
background-position: 0 -1949px;
|
background-position: 0 -1949px;
|
||||||
|
=======
|
||||||
|
background-position: 0px -1948px;
|
||||||
|
>>>>>>> e666187312ca04384a28a77bf1836db79a97ca52
|
||||||
}
|
}
|
||||||
|
|
||||||
div.calendar-invitebox {
|
div.calendar-invitebox {
|
||||||
|
|
|
@ -94,6 +94,9 @@ class kolab_folders extends rcube_plugin
|
||||||
|
|
||||||
// Get folders list
|
// Get folders list
|
||||||
if ($args['mode'] == 'LIST') {
|
if ($args['mode'] == 'LIST') {
|
||||||
|
if (!$storage->check_connection()) {
|
||||||
|
return $args;
|
||||||
|
}
|
||||||
$args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']);
|
$args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -405,18 +408,22 @@ class kolab_folders extends rcube_plugin
|
||||||
{
|
{
|
||||||
$storage = $this->rc->get_storage();
|
$storage = $this->rc->get_storage();
|
||||||
|
|
||||||
|
if (!$storage->check_connection()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// Code copied from rcube_imap::_list_mailboxes()
|
// Code copied from rcube_imap::_list_mailboxes()
|
||||||
// Server supports LIST-EXTENDED, we can use selection options
|
// Server supports LIST-EXTENDED, we can use selection options
|
||||||
// #1486225: Some dovecot versions returns wrong result using LIST-EXTENDED
|
// #1486225: Some dovecot versions returns wrong result using LIST-EXTENDED
|
||||||
if (!$this->rc->config->get('imap_force_lsub') && $storage->get_capability('LIST-EXTENDED')) {
|
if (!$this->rc->config->get('imap_force_lsub') && $imap->get_capability('LIST-EXTENDED')) {
|
||||||
// This will also set mailbox options, LSUB doesn't do that
|
// This will also set mailbox options, LSUB doesn't do that
|
||||||
$a_folders = $storage->conn->listMailboxes($root, $name,
|
$a_folders = $storage->conn->listMailboxes($root, $name,
|
||||||
NULL, array('SUBSCRIBED'));
|
NULL, array('SUBSCRIBED'));
|
||||||
|
|
||||||
// remove non-existent folders
|
// remove non-existent folders
|
||||||
if (is_array($a_folders) && $name = '*') {
|
if (is_array($a_folders) && $name = '*' && !empty($storage->conn->data['LIST'])) {
|
||||||
foreach ($a_folders as $idx => $folder) {
|
foreach ($a_folders as $idx => $folder) {
|
||||||
if ($storage->conn->data['LIST'] && ($opts = $storage->conn->data['LIST'][$folder])
|
if (($opts = $storage->conn->data['LIST'][$folder])
|
||||||
&& in_array('\\NonExistent', $opts)
|
&& in_array('\\NonExistent', $opts)
|
||||||
) {
|
) {
|
||||||
$storage->conn->unsubscribe($folder);
|
$storage->conn->unsubscribe($folder);
|
||||||
|
@ -430,10 +437,10 @@ class kolab_folders extends rcube_plugin
|
||||||
$a_folders = $storage->conn->listSubscribed($root, $name);
|
$a_folders = $storage->conn->listSubscribed($root, $name);
|
||||||
|
|
||||||
// unsubscribe non-existent folders, remove from the list
|
// unsubscribe non-existent folders, remove from the list
|
||||||
if (is_array($a_folders) && $name == '*') {
|
if (is_array($a_folders) && $name == '*' && !empty($storage->conn->data['LIST'])) {
|
||||||
foreach ($a_folders as $idx => $folder) {
|
foreach ($a_folders as $idx => $folder) {
|
||||||
if ($storage->conn->data['LIST'] && ($opts = $storage->conn->data['LIST'][$folder])
|
if (!isset($storage->conn->data['LIST'][$folder])
|
||||||
&& in_array('\\Noselect', $opts)
|
|| in_array('\\Noselect', $storage->conn->data['LIST'][$folder])
|
||||||
) {
|
) {
|
||||||
// Some servers returns \Noselect for existing folders
|
// Some servers returns \Noselect for existing folders
|
||||||
if (!$storage->folder_exists($folder)) {
|
if (!$storage->folder_exists($folder)) {
|
||||||
|
|
|
@ -18,6 +18,7 @@ $labels['contact'] = 'Address Books';
|
||||||
$labels['event'] = 'Calendars';
|
$labels['event'] = 'Calendars';
|
||||||
$labels['task'] = 'Tasks';
|
$labels['task'] = 'Tasks';
|
||||||
$labels['note'] = 'Notes';
|
$labels['note'] = 'Notes';
|
||||||
|
$labels['configuration'] = 'Configuration';
|
||||||
$labels['deletedevice'] = 'Delete device';
|
$labels['deletedevice'] = 'Delete device';
|
||||||
$labels['imageformat'] = 'Image format';
|
$labels['imageformat'] = 'Image format';
|
||||||
$labels['laxpiclabel'] = 'Allow PNG and GIF images';
|
$labels['laxpiclabel'] = 'Allow PNG and GIF images';
|
||||||
|
|
|
@ -39,18 +39,13 @@ class owncloud extends rcube_plugin
|
||||||
|
|
||||||
// add taskbar button
|
// add taskbar button
|
||||||
$this->add_button(array(
|
$this->add_button(array(
|
||||||
'name' => 'owncloud',
|
'command' => 'owncloud',
|
||||||
'class' => 'button-owncloud',
|
'class' => 'button-owncloud',
|
||||||
|
'classsel' => 'button-owncloud button-selected',
|
||||||
|
'innerclass' => 'button-inner',
|
||||||
'label' => 'owncloud.owncloud',
|
'label' => 'owncloud.owncloud',
|
||||||
'href' => './?_task=owncloud',
|
|
||||||
'onclick' => sprintf("return %s.command('owncloud')", JS_OBJECT_NAME)
|
|
||||||
), 'taskbar');
|
), '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');
|
$skin = $rcmail->config->get('skin');
|
||||||
if (!file_exists($this->home."/skins/$skin/owncloud.css")) {
|
if (!file_exists($this->home."/skins/$skin/owncloud.css")) {
|
||||||
$skin = 'default';
|
$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