b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/posts_unmoderated_reminder.txt.php - 46 lines - 2208 bytes - Text - Print

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

   1  <?php
   2  /**

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

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

  24  $params = array_merge( array(
  25          'blogs' => array(),
  26          'posts' => array(),
  27      ), $params );
  28  
  29  echo sprintf( T_('There have been posts awaiting moderation for more than %s in the following blogs:'), seconds_to_period( $post_moderation_reminder_threshold ) );
  30  echo "\n\n";
  31  
  32  foreach( $params['blogs'] as $blog_ID )
  33  {
  34      $moderation_Blog = $BlogCache->get_by_ID( $blog_ID );
  35      echo "\t - ".$moderation_Blog->get( 'shortname' ).' ('.sprintf( T_( '%s posts waiting' ), $params['posts'][$blog_ID] ).') - '.$admin_url.'?ctrl=dashboard&blog='.$blog_ID."\n";
  36  }
  37  
  38  // Footer vars:

  39  $params['unsubscribe_text'] = T_( 'You are a moderator in this blog, and you are receiving notifications when the posts may need moderation.' )."\n".
  40          T_( 'If you don\'t want to receive any more notifications about post moderation, click here' ).': '.
  41          $htsrv_url.'quick_unsubscribe.php?type=post_moderator&user_ID=$user_ID$&key=$unsubscribe_key$';
  42  
  43  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------

  44  emailskin_include( '_email_footer.inc.txt.php', $params );
  45  // ------------------------------- END OF EMAIL FOOTER --------------------------------

  46  ?>

title

Description

title

Description

title

Description

title

title

Body