Seditio Source
Root |
./othercms/b2evolution_7.2.3/skins_email/comments_unmoderated_reminder.html.php
<?php
/**
 * This is sent to ((Moderators)) to remind them that some comments are still awaiting moderation 24 hours after they have been posted.
 *
 * For more info about email skins, see: http://b2evolution.net/man/themes-templates-skins/email-skins/
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2020 by Francois Planque - {@link http://fplanque.com/}
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

// ---------------------------- EMAIL HEADER INCLUDED HERE ----------------------------
emailskin_include( '_email_header.inc.html.php', $params );
// ------------------------------- END OF EMAIL HEADER --------------------------------

global $admin_url, $baseurl, $Settings;

$BlogCache = & get_BlogCache();

// Default params:
$params = array_merge( array(
       
'blogs'    => array(),
       
'comments' => array(),
    ),
$params );

echo
'<p'.emailskin_style( '.p' ).'>'.sprintf( T_('There have been comments awaiting moderation for more than %s in the following blogs:'), seconds_to_period( $Settings->get( 'comment_moderation_reminder_threshold' ) ) ).'</p>';

echo
'<ul>';
foreach(
$params['blogs'] as $blog_ID )
{
   
$moderation_Blog = $BlogCache->get_by_ID( $blog_ID );
    echo
'<li>'.
           
$moderation_Blog->get( 'shortname' ).
           
' ('.sprintf( T_( '%s comments waiting' ), $params['comments'][$blog_ID] ).') - '.
           
get_link_tag( $admin_url.'?ctrl=coll_settings&tab=dashboard&blog='.$blog_ID, T_('Click here to moderate').' &raquo;', '.a' ).
       
'</li>';
}
echo
'</ul>';

// Footer vars:
$params['unsubscribe_text'] = T_( 'You are a moderator of this blog and you are receiving notifications when a comment may need moderation.' ).'<br />'."\n"
           
.T_( 'If you don\'t want to receive any more notifications about comment moderation, click here' ).': '
           
.'<a href="'.get_htsrv_url().'quick_unsubscribe.php?type=cmt_moderation_reminder&user_ID=$user_ID$&key=$unsubscribe_key$"'.emailskin_style( '.a' ).'>'
           
.T_('instant unsubscribe').'</a>.';

// ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
emailskin_include( '_email_footer.inc.html.php', $params );
// ------------------------------- END OF EMAIL FOOTER --------------------------------
?>