b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/_email_header.inc.html.php - 50 lines - 1715 bytes - Text - Print

Description: This is included into every email and typically includes the site name/logo as well as a personalized greeting.

   1  <?php
   2  /**
   3   * This is included into every email and typically includes the site name/logo as well as a personalized greeting.
   4   *
   5   * For more info about email skins, see: http://b2evolution.net/man/themes-templates-skins/email-skins/
   6   *
   7   * b2evolution - {@link http://b2evolution.net/}
   8   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
   9   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
  10   *
  11   * @version $Id: _email_header.inc.html.php 6136 2014-03-08 07:59:48Z manuel $
  12   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  global $Settings, $emailskins_path;
  16  ?>
  17  <html>
  18  <head>
  19  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  20  <?php
  21  if( file_exists( $emailskins_path.'_email_style.css' ) )
  22  { // Require the styles for email content
  23  ?>
  24  <style>
  25  <?php readfile( $emailskins_path.'_email_style.css' ); ?>
  26  </style>
  27  <?php } ?>
  28  </head>
  29  <body class="email">
  30  <?php
  31  if( $Settings->get( 'notification_logo' ) != '' || $Settings->get( 'notification_long_name' ) != '' )
  32  { // Display email header if logo or long site name are defined
  33  ?>
  34  <div class="email_header">
  35  <?php
  36  if( $Settings->get( 'notification_logo' ) != '' )
  37  { // Display site logo
  38      $site_name = $Settings->get( 'notification_long_name' ) != '' ? $Settings->get( 'notification_long_name' ) : $Settings->get( 'notification_short_name' );
  39      echo '<img src="'.$Settings->get( 'notification_logo' ).'" alt="'.$site_name.'" />';
  40  }
  41  else
  42  { // No logo, Display only long site name
  43      echo '<p class="sitename">'.$Settings->get( 'notification_long_name' ).'</p>';
  44  }
  45  ?>
  46  </div>
  47  <?php } ?>
  48  
  49  <div class="email_payload">
  50  <p><?php echo T_( 'Hello $login$ !' ); ?></p>

title

Description

title

Description

title

Description

title

title

Body