Changeset 1807

Show
Ignore:
Timestamp:
02/11/07 13:17:41 (6 years ago)
Author:
rub
Message:

Issue 0000598: NBM: Add new informations

VDigital structure applied!

Location:
trunk
Files:
3 modified
5 moved

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 
  • trunk/template-common

    • Property svn:ignore
      •  

        old new  
        33local-layout.css 
        44local-layout-mail-css.tpl 
         5local-mail-css.tpl 
  • trunk/template/yoga/mail/text/html/global-mail-css.tpl

    r1805 r1807  
    11/* $Id$ */ 
     2/* Global mail css */ 
    23/* Including like css style on HTML mail */ 
    34 
  • trunk/template/yoga/mail/text/html/header.tpl

    r1797 r1807  
    66<meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}"> 
    77<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} 
    1211--></style> 
    1312</head> 
  • trunk/template/yoga/theme/clear/mail-css.tpl

    r1805 r1807  
    11/* $Id$ */ 
     2/* Theme mail css */ 
    23/* Including like css style on HTML mail */ 
    34 
  • trunk/template/yoga/theme/dark/mail-css.tpl

    r1805 r1807  
    11/* $Id$ */ 
     2/* Theme mail css */ 
    23/* Including like css style on HTML mail */ 
    34 
  • trunk/template/yoga/theme/p0w0/mail-css.tpl

    r1805 r1807  
    11/* $Id$ */ 
     2/* Theme mail css */ 
    23/* Including like css style on HTML mail */ 
    34 
  • trunk/template/yoga/theme/wipi/mail-css.tpl

    r1805 r1807  
    11/* $Id$ */ 
     2/* Theme mail css */ 
    23/* Including like css style on HTML mail */ 
    34