summaryrefslogtreecommitdiff
path: root/plugins/kolab_files/lib/kolab_files_engine.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-02-19 14:29:43 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-02-19 14:29:43 (GMT)
commit2850592d9c898642f8bb4d7c9f1c0b9ce2961ded (patch)
treead6ef3feddac49055fb1679c496143b9f9c92de2 /plugins/kolab_files/lib/kolab_files_engine.php
parentfab095205e8fcb55c343b379e889bee59a8667ce (diff)
downloadroundcubemail-plugins-kolab-2850592d9c898642f8bb4d7c9f1c0b9ce2961ded.tar.gz
Use templates engine for plugin dialogs content
Diffstat (limited to 'plugins/kolab_files/lib/kolab_files_engine.php')
-rw-r--r--plugins/kolab_files/lib/kolab_files_engine.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/kolab_files/lib/kolab_files_engine.php b/plugins/kolab_files/lib/kolab_files_engine.php
index 220d440..893077d 100644
--- a/plugins/kolab_files/lib/kolab_files_engine.php
+++ b/plugins/kolab_files/lib/kolab_files_engine.php
@@ -51,6 +51,21 @@ class kolab_files_engine
$this->plugin->include_stylesheet($this->url . '/skins/default/images/mimetypes/style.css');
$this->plugin->include_script($this->url . '/js/files_api.js');
$this->plugin->include_script('kolab_files.js');
+
+ // add dialogs
+ if ($this->rc->task = 'mail') {
+ if ($this->rc->action == 'compose') {
+ $template = 'compose_plugin';
+ }
+ else if ($this->rc->action == 'show' || $this->rc->action == 'preview') {
+ $template = 'message_plugin';
+ }
+ }
+
+ if (!empty($template)) {
+ $this->rc->output->add_footer(
+ $this->rc->output->parse('kolab_files.' . $template, false, false));
+ }
}
/**