/[drupal]/contributions/modules/mail/mail.module
ViewVC logotype

Diff of /contributions/modules/mail/mail.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.21, Mon Oct 16 20:15:32 2006 UTC revision 1.22, Tue Oct 17 02:23:58 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  // $Id: mail.module,v 1.20 2006/10/16 16:59:40 nedjo Exp $  // $Id: mail.module,v 1.21 2006/10/16 20:15:32 nedjo Exp $
4    
5  /**  /**
6   * Provide online user help   * Provide online user help
# Line 285  function mail_user($type, $edit, &$user, Line 285  function mail_user($type, $edit, &$user,
285   *   A string containing the entire HTML page.   *   A string containing the entire HTML page.
286   */   */
287  function theme_mail_message($node) {  function theme_mail_message($node) {
288    global $user;    global $user, $base_url;
289    $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";    $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
290    $output .= '<html xmlns="http://www.w3.org/1999/xhtml">';    $output .= '<html xmlns="http://www.w3.org/1999/xhtml">';
291    $output .= '<head>';    $output .= '<head>';
292    $output .= ' <title>'. $node->title .'</title>';    $output .= ' <title>'. $node->title .'</title>';
293    $output .= drupal_get_html_head();    $output .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
294    $output .= theme_get_styles();    /*
295      $output .= '<style type="text/css" src="'. base_path() .'/misc/drupal.css" />';
296      foreach (theme_add_style() as $style) {
297        $style->path = $base_url .'/'. substr($style->path, strlen(base_path()), strlen($style->path));
298        $output .= '<style type="text/css" src="'. $style->path .'" />';
299      }
300      */
301    $output .= '</head>';    $output .= '</head>';
302    $output .= '<body style="background-color: #fff; color: #000;"'. theme('onload_attribute'). '">';    $output .= '<body style="background-color: #fff; color: #000;">';
303    $output .= '<table border="0" cellspacing="4" cellpadding="4"><tr><td style="vertical-align: top;">';    $output .= '<table border="0" cellspacing="4" cellpadding="4"><tr><td style="vertical-align: top;">';
304    
305    $output .= "\n<!-- begin content -->\n";    $output .= "\n<!-- begin content -->\n";
# Line 304  function theme_mail_message($node) { Line 309  function theme_mail_message($node) {
309    $output .= "\n<!-- end content -->\n";    $output .= "\n<!-- end content -->\n";
310    
311    $output .= '</td></tr></table>';    $output .= '</td></tr></table>';
   $output .= theme_closure();  
312    $output .= '</body></html>';    $output .= '</body></html>';
313    
314    return $output;    return $output;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.2