b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/comments_unmoderated_reminder.html.php - 52 lines - 2419 bytes - Text - Print

Description: This is sent to ((Moderators)) to remind them that some comments are still awaiting moderation 24 hours after they have been posted.

   1  <?php
   2  /**

   3   * This is sent to ((Moderators)) to remind them that some comments are still awaiting moderation 24 hours after they have been posted.

   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: comments_unmoderated_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 $admin_url, $baseurl, $htsrv_url, $comment_moderation_reminder_threshold;
  20  
  21  $BlogCache = & get_BlogCache();
  22  
  23  // Default params:

  24  $params = array_merge( array(
  25          'blogs'    => array(),
  26          'comments' => array(),
  27      ), $params );
  28  
  29  echo '<p>'.sprintf( T_('There have been comments awaiting moderation for more than %s in the following blogs:'), seconds_to_period( $comment_moderation_reminder_threshold ) ).'</p>';
  30  
  31  echo '<ul>';
  32  foreach( $params['blogs'] as $blog_ID )
  33  {
  34      $moderation_Blog = $BlogCache->get_by_ID( $blog_ID );
  35      echo '<li>'.
  36              $moderation_Blog->get( 'shortname' ).
  37              ' ('.sprintf( T_( '%s comments waiting' ), $params['comments'][$blog_ID] ).') - '.
  38              get_link_tag( $admin_url.'?ctrl=dashboard&blog='.$blog_ID, T_('Click here to moderate &raquo;') ).
  39          '</li>';
  40  }
  41  echo '</ul>';
  42  
  43  // Footer vars:

  44  $params['unsubscribe_text'] = T_( 'You are a moderator in this blog, and you are receiving notifications when a comments may need moderation.' ).'<br />'."\n"
  45              .T_( 'If you don\'t want to receive any more notifications about comment moderation, click here' ).': '
  46              .'<a href="'.$htsrv_url.'quick_unsubscribe.php?type=cmt_moderation_reminder&user_ID=$user_ID$&key=$unsubscribe_key$">'
  47              .T_('instant unsubscribe').'</a>.';
  48  
  49  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------

  50  emailskin_include( '_email_footer.inc.html.php', $params );
  51  // ------------------------------- END OF EMAIL FOOTER --------------------------------

  52  ?>

title

Description

title

Description

title

Description

title

title

Body