|
|
@ -57,7 +57,7 @@ class swipe extends rcube_plugin
|
|
|
|
'contactlist' => array(
|
|
|
|
'contactlist' => array(
|
|
|
|
'vertical' => array(),
|
|
|
|
'vertical' => array(),
|
|
|
|
'horizontal' => array(
|
|
|
|
'horizontal' => array(
|
|
|
|
'attvcard' => 'vcard_attachments.forwardvcard',
|
|
|
|
'vcard_attachments' => 'vcard_attachments.forwardvcard',
|
|
|
|
'compose' => 'compose',
|
|
|
|
'compose' => 'compose',
|
|
|
|
'delete' => 'delete',
|
|
|
|
'delete' => 'delete',
|
|
|
|
'swipe-select' => 'select'
|
|
|
|
'swipe-select' => 'select'
|
|
|
@ -211,16 +211,12 @@ class swipe extends rcube_plugin
|
|
|
|
else if (in_array($action, $this->disabled_actions) || in_array($this->rcube->task . $action, $this->disabled_actions)) {
|
|
|
|
else if (in_array($action, $this->disabled_actions) || in_array($this->rcube->task . $action, $this->disabled_actions)) {
|
|
|
|
$result = false;
|
|
|
|
$result = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ($action == 'archive' && !$this->rcube->output->env['archive_folder']) {
|
|
|
|
else if (in_array($action, array('markasjunk', 'vcard_attachments')) && !in_array($action, $this->laoded_plugins)) {
|
|
|
|
// archive plugin
|
|
|
|
// check plugin is enabled
|
|
|
|
$result = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if ($action == 'markasjunk' && !in_array('markasjunk', $this->laoded_plugins)) {
|
|
|
|
|
|
|
|
// markasjunk plugin
|
|
|
|
|
|
|
|
$result = false;
|
|
|
|
$result = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ($action == 'attvcard' && !in_array('vcard_attachments', $this->laoded_plugins)) {
|
|
|
|
else if ($action == 'archive' && !$this->rcube->output->env['archive_folder']) {
|
|
|
|
// vcard_attachments plugin
|
|
|
|
// archive plugin
|
|
|
|
$result = false;
|
|
|
|
$result = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|