Changeset 1807
- Timestamp:
- Feb 11, 2007, 1:17:41 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_mail.inc.php
r1803 r1807 209 209 if ($email_format == 'text/html') 210 210 { 211 if (is_file($mail_template->root.'/default-layout-mail-css.tpl')) 211 $old_root = $mail_template->root; 212 213 if (is_file($mail_template->root.'/global-mail-css.tpl')) 212 214 { 213 $mail_template->set_filename(' mail_css_default_template', 'default-layout-mail-css.tpl');214 $mail_template->assign_var_from_handle(' MAIL_CSS_DEFAULT_TEMPLATE', 'mail_css_default_template');215 $mail_template->set_filename('global_mail_css', 'global-mail-css.tpl'); 216 $mail_template->assign_var_from_handle('GLOBAL_MAIL_CSS', 'global_mail_css'); 215 217 } 216 218 217 $old_root = $mail_template->root;218 219 219 $mail_template->root = PHPWG_ROOT_PATH.'template/'.$user['template'].'/theme/'.$user['theme']; 220 if (is_file($mail_template->root.'/ layout-mail-css.tpl'))220 if (is_file($mail_template->root.'/mail-css.tpl')) 221 221 { 222 $mail_template->set_filename('mail_css _theme', 'layout-mail-css.tpl');223 $mail_template->assign_var_from_handle('MAIL_CSS _THEME', 'mail_css_theme');222 $mail_template->set_filename('mail_css', 'mail-css.tpl'); 223 $mail_template->assign_var_from_handle('MAIL_CSS', 'mail_css'); 224 224 } 225 225 226 226 $mail_template->root = PHPWG_ROOT_PATH.'template-common'; 227 if (is_file($mail_template->root.'/local- layout-mail-css.tpl'))227 if (is_file($mail_template->root.'/local-mail-css.tpl')) 228 228 { 229 $mail_template->set_filename(' mail_css_local_template', 'local-layout-mail-css.tpl');230 $mail_template->assign_var_from_handle(' MAIL_CSS_LOCAL_COMMON', 'mail_css_local_template');229 $mail_template->set_filename('local_mail_css', 'local-mail-css.tpl'); 230 $mail_template->assign_var_from_handle('LOCAL_MAIL_CSS', 'local_mail_css'); 231 231 } 232 232 233 233 $mail_template->root = $old_root; 234 if (is_file($mail_template->root.'/local-layout-mail-css.tpl'))235 {236 $mail_template->set_filename('mail_css_local_template', 'local-layout-mail-css.tpl');237 $mail_template->assign_var_from_handle('MAIL_CSS_LOCAL_TEMPLATE', 'mail_css_local_template');238 }239 234 } 240 235 -
trunk/template-common
- Property svn:ignore
-
old new 3 3 local-layout.css 4 4 local-layout-mail-css.tpl 5 local-mail-css.tpl
-
- Property svn:ignore
-
trunk/template/yoga/mail/text/html/global-mail-css.tpl
r1806 r1807 1 1 /* $Id$ */ 2 /* Global mail css */ 2 3 /* Including like css style on HTML mail */ 3 4 -
trunk/template/yoga/mail/text/html/header.tpl
r1797 r1807 6 6 <meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}"> 7 7 <style><!-- /* Mini style for mails */ 8 {MAIL_CSS_DEFAULT_TEMPLATE} 9 {MAIL_CSS_THEME} 10 {MAIL_CSS_LOCAL_TEMPLATE} 11 {MAIL_CSS_LOCAL_COMMON} 8 {GLOBAL_MAIL_CSS} 9 {MAIL_CSS} 10 {LOCAL_MAIL_CSS} 12 11 --></style> 13 12 </head> -
trunk/template/yoga/theme/clear/mail-css.tpl
r1806 r1807 1 1 /* $Id$ */ 2 /* Theme mail css */ 2 3 /* Including like css style on HTML mail */ 3 4 -
trunk/template/yoga/theme/dark/mail-css.tpl
r1806 r1807 1 1 /* $Id$ */ 2 /* Theme mail css */ 2 3 /* Including like css style on HTML mail */ 3 4 -
trunk/template/yoga/theme/p0w0/mail-css.tpl
r1806 r1807 1 1 /* $Id$ */ 2 /* Theme mail css */ 2 3 /* Including like css style on HTML mail */ 3 4 -
trunk/template/yoga/theme/wipi/mail-css.tpl
r1806 r1807 1 1 /* $Id$ */ 2 /* Theme mail css */ 2 3 /* Including like css style on HTML mail */ 3 4
Note: See TracChangeset
for help on using the changeset viewer.