b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/private_messages_unread_reminder.txt.php - 48 lines - 1827 bytes - Text - Print

Description: This is sent to a ((User)) to notify them when they have had private messages waiting to be read on the site for several days.

   1  <?php
   2  /**
   3   * This is sent to a ((User)) to notify them when they have had private messages waiting to be read on the site for several days.
   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: private_messages_unread_reminder.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  // ---------------------------- EMAIL HEADER INCLUDED HERE ----------------------------
  16  emailskin_include( '_email_header.inc.txt.php', $params );
  17  // ------------------------------- END OF EMAIL HEADER --------------------------------
  18  
  19  global $htsrv_url;
  20  
  21  // Default params:
  22  $params = array_merge( array(
  23          'unread_threads' => '',
  24          'threads_link'   => '',
  25      ), $params );
  26  
  27  
  28  echo T_( 'You have unread messages in the following conversations:' )."\n";
  29  
  30  if( count( $params['unread_threads'] ) > 0 )
  31  {
  32      foreach( $params['unread_threads'] as $unread_thread )
  33      {
  34          echo "\t - ".strip_tags( $unread_thread )."\n";
  35      }
  36      echo "\n";
  37  }
  38  echo T_( 'Click here to read your messages:' ).' '.$params['threads_link'];
  39  
  40  
  41  // Footer vars:
  42  $params['unsubscribe_text'] = T_( 'If you don\'t want to receive notifications for unread messages any more, click here:' ).' '.
  43          $htsrv_url.'quick_unsubscribe.php?type=unread_msg&user_ID=$user_ID$&key=$unsubscribe_key$';
  44  
  45  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
  46  emailskin_include( '_email_footer.inc.txt.php', $params );
  47  // ------------------------------- END OF EMAIL FOOTER --------------------------------
  48  ?>

title

Description

title

Description

title

Description

title

title

Body