Ignore:
Timestamp:
Feb 11, 2007, 1:17:41 PM (17 years ago)
Author:
rub
Message:

Issue 0000598: NBM: Add new informations

VDigital structure applied!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r1803 r1807  
    209209    if ($email_format == 'text/html')
    210210    {
    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'))
    212214      {
    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');
    215217      }
    216218
    217       $old_root = $mail_template->root;
    218 
    219219      $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'))
    221221      {
    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');
    224224      }
    225225
    226226      $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'))
    228228      {
    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');
    231231      }
    232232
    233233      $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       }
    239234    }
    240235
Note: See TracChangeset for help on using the changeset viewer.