Changeset 1797 for trunk/include/functions_mail.inc.php
- Timestamp:
- Feb 10, 2007, 6:43:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_mail.inc.php
r1792 r1797 207 207 )); 208 208 209 $mail_template->set_filename('mail_css_default_template', 'default-layout-mail-css.tpl'); 210 $mail_template->assign_var_from_handle('MAIL_CSS_DEFAULT_TEMPLATE', 'mail_css_default_template'); 211 212 $old_root = $mail_template->root; 213 214 $mail_template->root = PHPWG_ROOT_PATH.'template/'.$user['template'].'/theme/'.$user['theme']; 215 if (is_file($mail_template->root.'/layout-mail-css.tpl')) 216 { 217 $mail_template->set_filename('mail_css_theme', 'layout-mail-css.tpl'); 218 $mail_template->assign_var_from_handle('MAIL_CSS_THEME', 'mail_css_theme'); 219 } 220 221 $mail_template->root = PHPWG_ROOT_PATH.'template-common'; 222 if (is_file($mail_template->root.'/local-layout-mail-css.tpl')) 223 { 224 $mail_template->set_filename('mail_css_local_template', 'local-layout-mail-css.tpl'); 225 $mail_template->assign_var_from_handle('MAIL_CSS_LOCAL_COMMON', 'mail_css_local_template'); 226 } 227 228 $mail_template->root = $old_root; 229 if (is_file($mail_template->root.'/local-layout-mail-css.tpl')) 230 { 231 $mail_template->set_filename('mail_css_local_template', 'local-layout-mail-css.tpl'); 232 $mail_template->assign_var_from_handle('MAIL_CSS_LOCAL_TEMPLATE', 'mail_css_local_template'); 233 } 234 209 235 // what are displayed on the header of each mail ? 210 236 $conf_mail[$email_format]
Note: See TracChangeset
for help on using the changeset viewer.