Changeset 1797


Ignore:
Timestamp:
Feb 10, 2007, 6:43:11 PM (17 years ago)
Author:
rub
Message:

Issue 0000598: NBM: Add new informations

Css style including on mail are save on separated files.
Default and local can be defined!

Location:
trunk
Files:
4 added
4 edited
1 moved

Legend:

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

    r1792 r1797  
    207207        ));
    208208
     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
    209235    // what are displayed on the header of each mail ?
    210236    $conf_mail[$email_format]
  • trunk/template-common

    • Property svn:ignore
      •  

        old new  
        22faviconx.mng
        33local-layout.css
         4local-layout-mail-css.tpl
  • trunk/template/yoga/mail/text/html

    • Property svn:ignore set to
      local-layout-mail-css.tpl
  • trunk/template/yoga/mail/text/html/default-layout-mail-css.tpl

    r1796 r1797  
    11/* $Id$ */
     2/* Including like css style on HTML mail */
    23
    3 BODY#theMailPage #content
    4 {
    5   margin: 2em;
    6   text-align: left;
    7 }
    8 
     4body{background-color:#fff;font-family: Univers, Helvetica, Optima;font-size:12px; margin:0px;padding:0px; color:#369;}
     5#the_page {background: #fff url({pwg_root}template/{themeconf:template}/mail/text/html/images/mailbody-bg.jpg) repeat-y scroll left top;
     6margin:0px;padding:0px;text-align: left;}
     7a {text-decoration: none}
     8#content {background: transparent url({pwg_root}template/{themeconf:template}/mail/text/html/images/header-bg.jpg) no-repeat scroll left top;
     9margin:0px;padding:82px 0px 0px 62px;}
     10hr {width:632px;margin-left:0px;}
     11#copyright {background: transparent url({pwg_root}template/{themeconf:template}/mail/text/html/images/footer-bg.jpg) no-repeat scroll left bottom;
     12color: #69c;font-size:10px;margin:0px;padding:98px 0px 62px 62px;}
     13.PWG {font-family: verdana, sans-serif !important; font-size: 0.9em; font-weight: normal; letter-spacing: 0px;}
     14a.PWG { border: 0px; }
     15a.PWG .P { color : #f92; }
     16a.PWG .W { color : #aaa; }
     17a.PWG .G { color : #69c; }
     18a.PWG:hover .P { color : #69c; }
     19a.PWG:hover .G { color : #f92; }
  • trunk/template/yoga/mail/text/html/header.tpl

    r1796 r1797  
    33<html lang="{LANG}" dir="{DIR}">
    44<head>
    5 <title>PhpWebGallery Notication by Mail</title>
     5<title>PhpWebGallery Mail</title>
    66<meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}">
    7 
    8 <!--<link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/mail/text/html/default-layout.css">-->
    9 
    10 <style><!-- /* Notification mini style for mails */
    11 body{background-color:#fff;font-family: Univers, Helvetica, Optima;font-size:12px; margin:0px;padding:0px; color:#369;}
    12 #the_page {background: #fff url({pwg_root}template/{themeconf:template}/mail/text/html/images/mailbody-bg.jpg) repeat-y scroll left top;
    13 margin:0px;padding:0px;text-align: left;}
    14 a {text-decoration: none}
    15 #content {background: transparent url({pwg_root}template/{themeconf:template}/mail/text/html/images/header-bg.jpg) no-repeat scroll left top;
    16 margin:0px;padding:82px 0px 0px 62px;}
    17 hr {width:632px;margin-left:0px;}
    18 #copyright {background: transparent url({pwg_root}template/{themeconf:template}/mail/text/html/images/footer-bg.jpg) no-repeat scroll left bottom;
    19 color: #69c;font-size:10px;margin:0px;padding:98px 0px 62px 62px;}
    20 .PWG {font-family: verdana, sans-serif !important; font-size: 0.9em; font-weight: normal; letter-spacing: 0px;}
    21 a.PWG { border: 0px; }
    22 a.PWG .P { color : #f92; }
    23 a.PWG .W { color : #aaa; }
    24 a.PWG .G { color : #69c; }
    25 a.PWG:hover .P { color : #69c; }
    26 a.PWG:hover .G { color : #f92; }
     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}
    2712--></style>
    2813</head>
Note: See TracChangeset for help on using the changeset viewer.