aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-02-11 12:17:41 +0000
committerrub <rub@piwigo.org>2007-02-11 12:17:41 +0000
commitf02ef033adf044e22cc142123da640a9ec9bc67d (patch)
treeb3dc725b4624e5fb63c445edbef5170151536ad0 /include
parent69632928a86237c0649451b22bbf21dbc594ed24 (diff)
Issue 0000598: NBM: Add new informations
VDigital structure applied! git-svn-id: http://piwigo.org/svn/trunk@1807 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_mail.inc.php27
1 files changed, 11 insertions, 16 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index 68df98e10..81559ac80 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -208,34 +208,29 @@ function pwg_mail($to, $from = '', $subject = 'PhpWebGallery', $infos = '', $for
if ($email_format == 'text/html')
{
- if (is_file($mail_template->root.'/default-layout-mail-css.tpl'))
+ $old_root = $mail_template->root;
+
+ if (is_file($mail_template->root.'/global-mail-css.tpl'))
{
- $mail_template->set_filename('mail_css_default_template', 'default-layout-mail-css.tpl');
- $mail_template->assign_var_from_handle('MAIL_CSS_DEFAULT_TEMPLATE', 'mail_css_default_template');
+ $mail_template->set_filename('global_mail_css', 'global-mail-css.tpl');
+ $mail_template->assign_var_from_handle('GLOBAL_MAIL_CSS', 'global_mail_css');
}
- $old_root = $mail_template->root;
-
$mail_template->root = PHPWG_ROOT_PATH.'template/'.$user['template'].'/theme/'.$user['theme'];
- if (is_file($mail_template->root.'/layout-mail-css.tpl'))
+ if (is_file($mail_template->root.'/mail-css.tpl'))
{
- $mail_template->set_filename('mail_css_theme', 'layout-mail-css.tpl');
- $mail_template->assign_var_from_handle('MAIL_CSS_THEME', 'mail_css_theme');
+ $mail_template->set_filename('mail_css', 'mail-css.tpl');
+ $mail_template->assign_var_from_handle('MAIL_CSS', 'mail_css');
}
$mail_template->root = PHPWG_ROOT_PATH.'template-common';
- if (is_file($mail_template->root.'/local-layout-mail-css.tpl'))
+ if (is_file($mail_template->root.'/local-mail-css.tpl'))
{
- $mail_template->set_filename('mail_css_local_template', 'local-layout-mail-css.tpl');
- $mail_template->assign_var_from_handle('MAIL_CSS_LOCAL_COMMON', 'mail_css_local_template');
+ $mail_template->set_filename('local_mail_css', 'local-mail-css.tpl');
+ $mail_template->assign_var_from_handle('LOCAL_MAIL_CSS', 'local_mail_css');
}
$mail_template->root = $old_root;
- if (is_file($mail_template->root.'/local-layout-mail-css.tpl'))
- {
- $mail_template->set_filename('mail_css_local_template', 'local-layout-mail-css.tpl');
- $mail_template->assign_var_from_handle('MAIL_CSS_LOCAL_TEMPLATE', 'mail_css_local_template');
- }
}
// what are displayed on the header of each mail ?