Issue 0000598: NBM: Add new informations

VDigital structure applied!

git-svn-id: http://piwigo.org/svn/trunk@1807 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2007-02-11 12:17:41 +00:00
parent 69632928a8
commit f02ef033ad
7 changed files with 21 additions and 22 deletions

View File

@@ -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'))
{
$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');
}
$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.'/global-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('global_mail_css', 'global-mail-css.tpl');
$mail_template->assign_var_from_handle('GLOBAL_MAIL_CSS', 'global_mail_css');
}
$mail_template->root = PHPWG_ROOT_PATH.'template/'.$user['template'].'/theme/'.$user['theme'];
if (is_file($mail_template->root.'/mail-css.tpl'))
{
$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 ?

View File

@@ -1,4 +1,5 @@
/* $Id$ */
/* Global mail css */
/* Including like css style on HTML mail */
body{background-color:#fff;font-family: Univers, Helvetica, Optima;font-size:12px; margin:0px;padding:0px; color:#369;}

View File

@@ -5,10 +5,9 @@
<title>PhpWebGallery Mail</title>
<meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}">
<style><!-- /* Mini style for mails */
{MAIL_CSS_DEFAULT_TEMPLATE}
{MAIL_CSS_THEME}
{MAIL_CSS_LOCAL_TEMPLATE}
{MAIL_CSS_LOCAL_COMMON}
{GLOBAL_MAIL_CSS}
{MAIL_CSS}
{LOCAL_MAIL_CSS}
--></style>
</head>
<body>

View File

@@ -1,4 +1,5 @@
/* $Id$ */
/* Theme mail css */
/* Including like css style on HTML mail */
body{background-color:#fff; color:#696969;}

View File

@@ -1,4 +1,5 @@
/* $Id$ */
/* Theme mail css */
/* Including like css style on HTML mail */
body{background-color:#444; color:#fff;}

View File

@@ -1,4 +1,5 @@
/* $Id$ */
/* Theme mail css */
/* Including like css style on HTML mail */
body{background-color:#cde; color:#369;}

View File

@@ -1,4 +1,5 @@
/* $Id$ */
/* Theme mail css */
/* Including like css style on HTML mail */
body{background-color:#111; color:#69c;}