b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/_email_footer.inc.txt.php - 38 lines - 1479 bytes - Text - Print

Description: This is included into every email to provide footer text, including a quick unsubscribe link.

   1  <?php
   2  /**
   3   * This is included into every email to provide footer text, including a quick unsubscribe link.
   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_footer.inc.txt.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 $admin_url, $baseurl, $app_name, $Settings;
  16  
  17  // Default params:
  18  $params = array_merge( array(
  19          'unsubscribe_text' => '',
  20      ), $params );
  21  
  22  $edit_notification_url = $admin_url.'?ctrl=user&user_tab=subs';
  23  
  24  echo "\n\n-- \n";
  25  
  26  echo T_( 'Please do not reply to this email!' )."\n";
  27  echo sprintf( T_( 'This message was automatically generated by %s running on %s: %s.' ), $app_name, $Settings->get( 'notification_short_name' ), $baseurl )."\n";
  28  echo sprintf( T_( 'Your login on %s is: $login$' ), $Settings->get( 'notification_short_name' ) );
  29  echo "\n\n";
  30  
  31  echo T_( 'Too many emails?' )."\n";
  32  echo sprintf( T_('To edit your email notification preferences, click here: %s'), $edit_notification_url );
  33  if( !empty( $params['unsubscribe_text'] ) )
  34  { // Display the unsubscribe message with link
  35      echo "\n".$params['unsubscribe_text'];
  36  }
  37  echo "\n\n".'Powered by b2evolution'."\n";
  38  ?>

title

Description

title

Description

title

Description

title

title

Body