b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/_email_footer.inc.html.php - 53 lines - 1893 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.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 $admin_url, $htsrv_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  ?>
  25  
  26  </div>
  27  
  28  <div class="email_footer">
  29  
  30  <?php
  31  echo '<p><b>'.T_( 'Please do not reply to this email!' ).'</b><br />'."\n";
  32  echo sprintf( T_( 'This message was automatically generated by %s running on <a %s>%s</a>.' ), $app_name, 'href="'.$baseurl.'"', $Settings->get( 'notification_short_name' ) );
  33  echo "<br />\n";
  34  echo sprintf( T_( 'Your login on %s is: $login$' ), $Settings->get( 'notification_short_name' ) );
  35  echo ' &bull; ';
  36  echo '<a href="'.$htsrv_url.'/login.php?action=lostpassword">'.T_('Lost password?').'</a>';
  37  echo "</p>\n";
  38  
  39  echo '<p><b>'.T_( 'Too many emails?' ).'</b><br />'."\n";
  40  echo sprintf( T_('To configure the emails you receive, click here: <a %s>edit notification preferences</a>.'), 'href="'.$edit_notification_url.'"' );
  41  if( !empty( $params['unsubscribe_text'] ) )
  42  { // Display the unsubscribe message with link
  43      echo "<br />\n";
  44      echo $params['unsubscribe_text'];
  45  }
  46  echo "</p>\n";
  47  
  48  echo '<p class="center"><img class="b2evo" src="'.$rsc_url.'img/powered-by-b2evolution-120t.gif" alt="Powered by b2evolution" /></p>';
  49  ?>
  50  
  51  </div>
  52  </body>
  53  </html>

title

Description

title

Description

title

Description

title

title

Body