b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/private_messages_unread_reminder.html.php - 53 lines - 1978 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.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  // ---------------------------- EMAIL HEADER INCLUDED HERE ----------------------------
  16  emailskin_include( '_email_header.inc.html.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 '<p>'.T_( 'You have unread messages in the following conversations:' )."</p>\n";
  29  
  30  if( count( $params['unread_threads'] ) > 0 )
  31  {
  32      echo '<ul>';
  33      foreach( $params['unread_threads'] as $unread_thread )
  34      {
  35          echo '<li>'.$unread_thread.'</li>';
  36      }
  37      echo "</ul>\n";
  38  }
  39  
  40  // Buttons:
  41  echo '<div class="buttons">'."\n";
  42  echo get_link_tag( $params['threads_link'], T_('Read your messages'), 'button_green' )."\n";
  43  echo "</div>\n";
  44  
  45  // Footer vars:
  46  $params['unsubscribe_text'] = T_( 'If you don\'t want to receive notifications for unread messages any more, click here:' )
  47              .' <a href="'.$htsrv_url.'quick_unsubscribe.php?type=unread_msg&user_ID=$user_ID$&key=$unsubscribe_key$">'
  48              .T_('instant unsubscribe').'</a>.';
  49  
  50  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
  51  emailskin_include( '_email_footer.inc.html.php', $params );
  52  // ------------------------------- END OF EMAIL FOOTER --------------------------------
  53  ?>

title

Description

title

Description

title

Description

title

title

Body