summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-21 07:14:05 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-21 07:14:05 +0000
commit5c1a7db9dc6430a169cc814316384b03f5dae86a (patch)
treedcfac37960308c5526e7c937a6bdc0f8f38ef626 /roundcubemail/program
parentadad23c9074ebc7a78ee615c7836534a503e0f67 (diff)
- support plugin templates
git-svn-id: https://svn.roundcube.net/trunk@2509 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rwxr-xr-xroundcubemail/program/include/rcube_template.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index 6ceb9ce2d..a9de54d76 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/program/include/rcube_template.php
@@ -332,7 +332,12 @@ class rcube_template extends rcube_html_page
private function parse($name = 'main', $exit = true)
{
$skin_path = $this->config['skin_path'];
- $path = "$skin_path/templates/$name.html";
+
+ $temp = explode(".", $name, 2);
+ if (count($temp) > 1) {
+ $path = $this->config['plugins_dir'] . '/' . $temp[0] . '/skins/' . $this->config['skin'] . '/templates/' . $temp[1] . '.html';
+ } else
+ $path = "$skin_path/templates/$name.html";
// read template file
if (($templ = @file_get_contents($path)) === false) {