Seditio Source
Root |
./othercms/b2evolution_7.2.3/skins_email/post_proposed_change.html.php
<?php
/**
 * This is sent to ((Users)) and/or ((Moderators)) to notify them that a change has been proposed on a post.
 *
 * 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;

// Default params:
$params = array_merge( array(
       
'iver_ID'        => NULL,
       
'Item'           => NULL,
       
'recipient_User' => NULL,
       
'proposer_User'  => NULL,
    ),
$params );

$recipient_User = $params['recipient_User'];
$proposer_User = $params['proposer_User'];
$Item = $params['Item'];

echo
'<p'.emailskin_style( '.p' ).'>'.sprintf( T_('%s proposed a change on the post "%s".'),
       
$proposer_User->get_colored_login( array( 'mask' => '$avatar$ $login$', 'protocol' => 'http:', 'login_text' => 'name' ) ),
       
$Item->get_title()
    ).
"</p>\n";

// Buttons:
echo '<div'.emailskin_style( 'div.buttons' ).'>'."\n";

echo
get_link_tag( $admin_url.'?ctrl=items&action=history_compare&p='.$Item->ID.'&r1=c&r2=p'.$params['iver_ID'], T_('View all changes'), 'div.buttons a+a.btn-primary' )."\n";
echo
get_link_tag( $admin_url.'?ctrl=items&action=history&p='.$Item->ID, T_('View change history'), 'div.buttons a+a.btn-default' )."\n";
echo
get_link_tag( $Item->get_permanent_url( '', '', '&' ), T_('View post'), 'div.buttons a+a.btn-default' )."\n";

echo
"</div>\n";

// Footer vars:
$params['unsubscribe_text'] = T_('You are a moderator in this blog, and you are receiving notifications when a post may need moderation.').'<br />'
   
.T_('If you don\'t want to receive any more notifications about moderating proposed changes on posts, click here').': '
   
.get_link_tag( get_htsrv_url().'quick_unsubscribe.php?type=post_proposed_change&user_ID=$user_ID$&key=$unsubscribe_key$', T_('instant unsubscribe'), '.a' ).'.';

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