Changeset 1807 for trunk/include/functions_mail.inc.php
- Timestamp:
- Feb 11, 2007, 1:17:41 PM (17 years ago)
- File:
-
- 1 edited
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
Note: See TracChangeset
for help on using the changeset viewer.