} else {
    echo sprintf(T_('%s just replied to the %s conversation.'), $from_User->get_colored_login(array('mask' => '$avatar$ $login$')), '<b>' . $Message->Thread->title . '</b>');
}
echo "</p>\n";
if ($recipient_User->check_perm('pm_notif', 'full')) {
    echo '<div class="email_ugc"' . emailskin_style('div.email_ugc') . '>' . "\n";
    echo '<p' . emailskin_style('.p') . '>' . nl2br(htmlentities($Message->get('text'), ENT_COMPAT, $evo_charset)) . '</p>';
    echo "</div>\n";
    // Buttons:
    echo '<div' . emailskin_style('div.buttons') . '>' . "\n";
    echo get_link_tag($params['message_link'], T_('Read full conversation'), 'div.buttons a+a.button_green') . "\n";
    echo "</div>\n";
} else {
    // Buttons:
    echo '<div' . emailskin_style('div.buttons') . '>' . "\n";
    echo get_link_tag($params['message_link'], T_('Read full message'), 'div.buttons a+a.button_green') . "\n";
    echo "</div>\n";
}
if (count($params['other_unread_threads']) > 0) {
    // Display other unread threads
    echo '<p' . emailskin_style('.p') . '>' . T_('In addition to this new message, you also have unread messages in the following conversations') . ":</p>\n";
    echo '<ul>';
    foreach ($params['other_unread_threads'] as $unread_thread) {
        echo '<li>' . $unread_thread . '</li>';
    }
    echo "</ul>\n";
}
// Footer vars:
$params['unsubscribe_text'] = T_('If you don\'t want to receive any more notifications about new private messages, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=new_msg&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);
Пример #2
0
        $duplicated_files_message = $new_File->get_duplicated_files_message(array('message' => '<p' . emailskin_style('.p') . '><b' . emailskin_style('.important') . '>' . T_('WARNING: the same profile picture is used by these other users: %s.') . '</b></p>' . "\n", 'use_style' => true));
    }
    if ($params['avatar_changed']) {
        // If profile pictre has been changed
        echo '<p' . emailskin_style('.p') . '>' . T_('The main profile picture was changed to:') . '</p>' . "\n";
        echo '<p' . emailskin_style('.p') . '>' . $User->get_avatar_File()->get_tag('', '', '', '', 'fit-320x320', 'original', '', '', '', '', '', '#', '', 1, 'none') . '</p>' . "\n";
    } elseif ($params['new_avatar_upload']) {
        // Display the newly uploaded file only if it was not set as main profile picture
        echo '<p' . emailskin_style('.p') . '>' . T_('A new profile picture file was uploaded:') . '</p>' . "\n";
        echo '<p' . emailskin_style('.p') . '>' . $new_File->get_tag('', '', '', '', 'fit-320x320', 'original', '', '', '', '', '', '#', '', 1, 'none') . '</p>' . "\n";
    }
    // Display warning message about duplicated files
    echo $duplicated_files_message;
    // User's pictures:
    echo '<p' . emailskin_style('.p') . '>' . T_('The current profile pictures for this account are:') . '</p>' . "\n";
    $user_pictures = '';
    $user_avatars = $User->get_avatar_Links(false);
    foreach ($user_avatars as $user_Link) {
        $user_pictures .= $user_Link->get_tag(array('before_image' => '', 'before_image_legend' => '', 'after_image_legend' => '', 'after_image' => ' ', 'image_size' => 'crop-top-160x160'));
    }
    echo empty($user_pictures) ? '<p' . emailskin_style('.p') . '><b>' . T_('No pictures.') . '</b></p>' : $user_pictures;
}
// Buttons:
echo '<div' . emailskin_style('div.buttons') . '>' . "\n";
echo get_link_tag($admin_url . '?ctrl=user&user_tab=profile&user_ID=' . $params['user_ID'], T_('Edit User'), 'div.buttons a+a.button_yellow') . "\n";
echo "</div>\n";
// Footer vars:
$params['unsubscribe_text'] = T_('If you don\'t want to receive any more notifications about user changes, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=account_changed&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 --------------------------------
Пример #3
0
if ($Settings->get('registration_ask_locale') && $activated_User->locale != '') {
    // Locale field is defined
    global $locales;
    echo '<tr><th>' . T_('Locale') . ':</th><td>' . $locales[$activated_User->locale]['name'] . '</td></tr>' . "\n";
}
if (!empty($activated_User->source)) {
    // Source is defined
    echo '<tr><th>' . T_('Registration Source') . ':</th><td>' . $activated_User->source . '</td></tr>' . "\n";
}
$registration_trigger_url = $UserSettings->get('registration_trigger_url', $activated_User->ID);
if (!empty($registration_trigger_url)) {
    // Trigger page
    echo '<tr><th>' . T_('Registration Trigger Page') . ':</th><td>' . get_link_tag($registration_trigger_url) . '</td></tr>' . "\n";
}
$initial_blog_ID = $UserSettings->get('initial_blog_ID', $activated_User->ID);
if (!empty($initial_blog_ID)) {
    // Hit info
    echo '<tr><th>' . T_('Initial page') . ':</th><td>' . T_('Blog') . " " . $UserSettings->get('initial_blog_ID', $activated_User->ID) . " - " . $UserSettings->get('initial_URI', $activated_User->ID) . '</td></tr>' . "\n";
    echo '<tr><th>' . T_('Initial referer') . ':</th><td>' . get_link_tag($UserSettings->get('initial_referer', $activated_User->ID)) . '</td></tr>' . "\n";
}
echo '</table>' . "\n";
// Buttons:
echo '<div class="buttons">' . "\n";
echo get_link_tag($admin_url . '?ctrl=user&user_tab=profile&user_ID=' . $activated_User->ID, T_('Edit User'), 'button_yellow') . "\n";
echo get_link_tag($admin_url . '?ctrl=users&action=show_recent', T_('View recent registrations'), 'button_gray') . "\n";
echo "</div>\n";
// Footer vars:
$params['unsubscribe_text'] = T_('If you don\'t want to receive any more notification when an account was activated by email, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=account_activated&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 --------------------------------
<?php

/**
 * This is the HTML template of email message for post by email report
 *
 * 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-2015 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 --------------------------------
// Default params:
$params = array_merge(array('Items' => NULL), $params);
$Items = $params['Items'];
echo '<p' . emailskin_style('.p') . '>' . T_('You just created the following posts:') . '</p>';
foreach ($Items as $Item) {
    echo format_to_output($Item->title);
    echo '<p' . emailskin_style('.p') . '>' . get_link_tag($Item->get_permanent_url('', '', '&'), '', '.a') . '</p>';
}
// ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
emailskin_include('_email_footer.inc.html.php', $params);
// ------------------------------- END OF EMAIL FOOTER --------------------------------
 *
 * 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/license.html}
 * @copyright (c)2003-2013 by Francois Planque - {@link http://fplanque.com/}
 *
 * @version $Id: posts_unmoderated_reminder.html.php 3669 2013-05-06 06:59:42Z attila $
 */
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, $htsrv_url, $post_moderation_reminder_threshold;
$BlogCache =& get_BlogCache();
// Default params:
$params = array_merge(array('blogs' => array(), 'posts' => array()), $params);
echo '<p>' . sprintf(T_('There have been posts awaiting moderation for more than %s in the following blogs:'), seconds_to_period($post_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 posts waiting'), $params['posts'][$blog_ID]) . ') - ' . get_link_tag($admin_url . '?ctrl=dashboard&blog=' . $blog_ID, T_('Click here to moderate &raquo;')) . '</li>';
}
echo '</ul>';
// Footer vars:
$params['unsubscribe_text'] = T_('You are a moderator in this blog, and you are receiving notifications when the posts may need moderation.') . '<br />' . "\n" . T_('If you don\'t want to receive any more notifications about post moderation, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=post_moderator&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 --------------------------------
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2013 by Francois Planque - {@link http://fplanque.com/}
 *
 * @version $Id: scheduled_task_error_report.html.php 3183 2013-03-10 21:59:41Z fplanque $
 */
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 $htsrv_url, $admin_url, $baseurl;
// Default params:
$params = array_merge(array('tasks' => array()), $params);
echo '<p>' . T_('The following scheduled tasks have ended with error:') . "</p>\n";
if (is_array($params['tasks']) && count($params['tasks'])) {
    echo '<p><ul>';
    foreach ($params['tasks'] as $task) {
        echo '<li>' . $task['name'] . ': ' . $task['message'] . '</li>';
    }
    echo "</ul></p>\n";
}
// Buttons:
echo '<div class="buttons">' . "\n";
echo get_link_tag($admin_url . '?ctrl=crontab&ctst_timeout=1&ctst_error=1', T_('Review tasks with errors'), 'button_yellow') . "\n";
echo "</div>\n";
// Footer vars:
$params['unsubscribe_text'] = T_('You are a scheduled task admin, and you are receiving notifications when a scheduled tasks ends with error or timeout.') . "<br />\n" . T_('If you don\'t want to receive any more notifications about scheduled task errors, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=cronjob_error&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 --------------------------------
Пример #7
0
        echo '<p' . emailskin_style('.p') . '>' . sprintf(T_('Someone -- presumably you -- has registered an account on %s with your email address.'), $baseurl_link) . '</p>';
        echo '<p' . emailskin_style('.p') . '><b' . emailskin_style('.important') . '>' . T_('You must activate this account by clicking below in order to be able to use all the site features.') . '</b></p>';
        $activation_text = T_('Activate NOW');
        break;
}
echo "\n";
echo '<p' . emailskin_style('.p') . '>' . T_('Your login is: $login$') . "</p>\n";
echo '<p' . emailskin_style('.p') . '>' . T_('Your email is: $email$') . "</p>\n";
if ($Settings->get('validation_process') == 'easy') {
    // ---- EASY activation ---- //
    $activation_url = $htsrv_url . 'login.php?action=activateaccount' . '&userID=$user_ID$' . '&reminderKey=' . $params['reminder_key'];
    echo '<div' . emailskin_style('div.buttons') . '>' . "\n" . get_link_tag($activation_url, $activation_text, 'div.buttons a+a.button_green') . "</div>\n";
    if (!empty($params['already_received_messages'])) {
        // add already received message list to email body
        echo '<p' . emailskin_style('.p') . '>' . T_('You have received private messages in the following conversations, but your account must be activated before you can read them:') . "</p>\n";
        echo '<p' . emailskin_style('.p') . '>' . $params['already_received_messages'] . "</p>\n";
    }
} else {
    // ---- SECURE activation ---- //
    $activation_url = $secure_htsrv_url . 'login.php?action=validatemail' . $params['blog_param'] . '&reqID=' . $params['request_id'] . '&sessID=' . $Session->ID;
    // used to detect cookie problems
    echo '<div' . emailskin_style('div.buttons') . '>' . "\n" . get_link_tag($activation_url, $activation_text, 'div.buttons a+a.button_green') . "\n</div>\n";
    echo '<p' . emailskin_style('.p') . '>' . T_('If this does not work, please copy/paste that link into the address bar of your browser.') . "</p>\n";
    echo '<p' . emailskin_style('.p') . '>' . sprintf(T_('We also recommend that you add %s to your contacts in order to make sure you will receive future notifications, especially when someone sends you a private message.'), $Settings->get('notification_sender_email')) . "</p>\n";
    echo '<p' . emailskin_style('.p+.note') . '>' . T_('Please note:') . ' ' . T_('For security reasons the link is only valid for your current session (by means of your session cookie).') . "</p>\n";
}
// Footer vars:
$params['unsubscribe_text'] = T_('If you don\'t want to receive notifications to activate your account any more, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=account_activation&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 --------------------------------
<?php

/**
 * This is the HTML template of email message for post by email report
 *
 * 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/license.html}
 * @copyright (c)2003-2013 by Francois Planque - {@link http://fplanque.com/}
 *
 * @version $Id: post_by_email_report.html.php 849 2012-02-16 09:09:09Z yura $
 */
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 --------------------------------
// Default params:
$params = array_merge(array('Items' => NULL), $params);
$Items = $params['Items'];
echo '<p>' . T_('You just created the following posts:') . '</p>';
foreach ($Items as $Item) {
    echo format_to_output($Item->title);
    echo '<p>' . get_link_tag($Item->get_permanent_url()) . '</p>';
}
// ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
emailskin_include('_email_footer.inc.html.php', $params);
// ------------------------------- END OF EMAIL FOOTER --------------------------------
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2013 by Francois Planque - {@link http://fplanque.com/}
 *
 * @version $Id: private_messages_unread_reminder.html.php 3183 2013-03-10 21:59:41Z fplanque $
 */
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 $htsrv_url;
// Default params:
$params = array_merge(array('unread_threads' => '', 'threads_link' => ''), $params);
echo '<p>' . T_('You have unread messages in the following conversations:') . "</p>\n";
if (count($params['unread_threads']) > 0) {
    echo '<ul>';
    foreach ($params['unread_threads'] as $unread_thread) {
        echo '<li>' . $unread_thread . '</li>';
    }
    echo "</ul>\n";
}
// Buttons:
echo '<div class="buttons">' . "\n";
echo get_link_tag($params['threads_link'], T_('Read your messages'), 'button_green') . "\n";
echo "</div>\n";
// Footer vars:
$params['unsubscribe_text'] = T_('If you don\'t want to receive notifications for unread messages any more, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=unread_msg&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 --------------------------------
Пример #10
0
        echo '<p>' . sprintf(T_('Someone -- presumably you -- has registered an account on %s with your email address.'), $baseurl_link) . '</p>';
        echo '<p><b class="important">' . T_('You must activate this account by clicking below in order to be able to use all the site features.') . '</b></p>';
        $activation_text = T_('Activate NOW');
        break;
}
echo "\n";
echo '<p>' . T_('Your login is: $login$') . "</p>\n";
echo '<p>' . T_('Your email is: $email$') . "</p>\n";
if ($Settings->get('validation_process') == 'easy') {
    // ---- EASY activation ---- //
    $activation_url = $htsrv_url . 'login.php?action=activateaccount' . '&userID=$user_ID$' . '&reminderKey=' . $params['reminder_key'];
    echo '<div class="buttons">' . "\n" . get_link_tag($activation_url, $activation_text, 'button_green') . "</div>\n";
    if (!empty($params['already_received_messages'])) {
        // add already received message list to email body
        echo '<p>' . T_('You have received private messages in the following conversations, but your account must be activated before you can read them:') . "</p>\n";
        echo '<p>' . $params['already_received_messages'] . "</p>\n";
    }
} else {
    // ---- SECURE activation ---- //
    $activation_url = $secure_htsrv_url . 'login.php?action=validatemail' . $params['blog_param'] . '&reqID=' . $params['request_id'] . '&sessID=' . $Session->ID;
    // used to detect cookie problems
    echo '<div class="buttons">' . "\n" . get_link_tag($activation_url, $activation_text, 'button_green') . "\n</div>\n";
    echo '<p>' . T_('If this does not work, please copy/paste that link into the address bar of your browser.') . "</p>\n";
    echo '<p>' . sprintf(T_('We also recommend that you add %s to your contacts in order to make sure you will receive future notifications, especially when someone sends you a private message.'), $Settings->get('notification_sender_email')) . "</p>\n";
    echo '<p class="note">' . T_('Please note:') . ' ' . T_('For security reasons the link is only valid for your current session (by means of your session cookie).') . "</p>\n";
}
// Footer vars:
$params['unsubscribe_text'] = T_('If you don\'t want to receive notifications to activate your account any more, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=account_activation&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 --------------------------------
        $user_lastseen_ts = $iterator_User->get('lastseen_ts');
        if (empty($user_lastseen_ts)) {
            // user has never logged in
            $message_content .= T_('Never used.') . "\n";
        } else {
            $message_content .= T_('Last used on') . ': <b>' . format_to_output(mysql2localedatetime($user_lastseen_ts)) . "</b>\n";
        }
    } else {
        $message_content .= '<p' . emailskin_style('.p') . '>' . T_('Login:'******' ' . $iterator_User->get_colored_login(array('mask' => '$login$')) . "</p>\n";
    }
    $url_change_password = $secure_htsrv_url . 'login.php?action=changepwd' . '&' . $dummy_fields['login'] . '=' . rawurlencode($iterator_User->login) . '&reqID=' . $params['request_id'] . '&sessID=' . $Session->ID . $params['blog_param'];
    // Restrict the password change url to be saved in the email logs
    $url_change_password = '******' . $url_change_password . '$secret_content_end$';
    // Buttons:
    $message_content .= '<div' . emailskin_style('div.buttons') . '>' . "\n";
    $message_content .= get_link_tag($url_change_password, T_('Change your password NOW'), 'div.buttons a+a.button_yellow') . "\n";
    $message_content .= "</div>\n";
    if ($params['user_count'] > 1) {
        // Several accounts with the given email address, display last used date for each
        $message_content .= '</div>';
    }
}
if ($params['user_count'] > 1) {
    // exists more account with the given email address
    $message_content = '<p' . emailskin_style('.p') . '>' . T_('It seems you have multiple accounts associated to this email address. Choose the one you want to use below:') . '</p>' . $message_content;
    $message_note = T_('For security reasons the links are only valid for your current session (by means of your session cookie).');
} else {
    $message_note = T_('For security reasons the link is only valid for your current session (by means of your session cookie).');
}
echo '<p' . emailskin_style('.p') . '>' . T_('Somebody (presumably you) has requested a password change for your account.') . "</p>\n";
echo $message_content;
Пример #12
0
}
echo "</div>\n";
// add unsubscribe and edit links
$params['unsubscribe_text'] = '';
switch ($params['notify_type']) {
    case 'moderator':
        // moderation email
        $params['unsubscribe_text'] = T_('You are a moderator of this blog and you are receiving notifications when a comment may need moderation.') . '<br />' . T_('If you don\'t want to receive any more notifications about comment moderation, click here') . ': ' . get_link_tag($htsrv_url . 'quick_unsubscribe.php?type=comment_moderator&user_ID=$user_ID$&key=$unsubscribe_key$', T_('instant unsubscribe'), '.a');
        break;
    case 'blog_subscription':
        // blog subscription
        $params['unsubscribe_text'] = T_('You are receiving notifications when anyone comments on any post.') . '<br />' . T_('If you don\'t want to receive any more notifications on this blog, click here') . ': ' . get_link_tag($htsrv_url . 'quick_unsubscribe.php?type=coll_comment&coll_ID=' . $Blog->ID . '&user_ID=$user_ID$&key=$unsubscribe_key$', T_('instant unsubscribe'), '.a');
        // subscribers are not allowed to see comment author email
        break;
    case 'item_subscription':
        // item subscription
        $params['unsubscribe_text'] = T_('You are receiving notifications when anyone comments on this post.') . '<br />' . T_('If you don\'t want to receive any more notifications on this post, click here') . ': ' . get_link_tag($htsrv_url . 'quick_unsubscribe.php?type=post&post_ID=' . $Item->ID . '&user_ID=$user_ID$&key=$unsubscribe_key$', T_('instant unsubscribe'), '.a');
        // subscribers are not allowed to see comment author email
        break;
    case 'creator':
        // user is the creator of the post
        $params['unsubscribe_text'] = T_('This is your post. You are receiving notifications when anyone comments on your posts.') . '<br />' . T_('If you don\'t want to receive any more notifications on your posts, click here') . ':' . get_link_tag($htsrv_url . 'quick_unsubscribe.php?type=creator&user_ID=$user_ID$&key=$unsubscribe_key$', T_('instant unsubscribe'), '.a');
        break;
    case 'meta_comment':
        // meta comment subscription
        $params['unsubscribe_text'] = T_('You are receiving notifications when meta comment is added on this post.') . '<br />' . T_('If you don\'t want to receive any more notifications about meta comments, click here') . ': ' . get_link_tag($htsrv_url . 'quick_unsubscribe.php?type=meta_comment&user_ID=$user_ID$&key=$unsubscribe_key$', T_('instant unsubscribe'), '.a');
        break;
}
// ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
emailskin_include('_email_footer.inc.html.php', $params);
// ------------------------------- END OF EMAIL FOOTER --------------------------------
Пример #13
0
    echo "</div>\n";
} else {
    /* Short notification */
    echo '<p>' . sprintf(T_('%s created a new post on %s with title %s.'), $Item->creator_User->get_colored_login(array('mask' => '$avatar$ $login$')), '<b>' . $Blog->get('shortname') . '</b>', '<b>' . $Item->get('title') . '</b>') . "</p>\n";
    if ($params['notify_type'] == 'moderator') {
        echo '<p>' . T_('Status') . ': ' . $Item->get('t_status') . "</p>\n";
        echo '<div class="email_ugc">' . "\n";
        echo '<p><i class="note">' . T_('This is a short form moderation message. To make these emails more useful for quick moderation, ask the administrator to send you long form moderation messages instead.') . '</i></p>';
        echo "</div>\n";
    }
}
// Buttons:
echo '<div class="buttons">' . "\n";
echo get_link_tag($Item->get_permanent_url('', '', '&'), T_('View post'), 'button_green') . "\n";
if ($recipient_User->check_perm('item_post!CURSTATUS', 'edit', false, $Item)) {
    // User has permission to edit this post
    echo get_link_tag($admin_url . '?ctrl=items&blog=' . $Item->get_blog_ID() . '&p=' . $Item->ID, T_('Edit post'), 'button_yellow') . "\n";
}
echo "</div>\n";
// Footer vars:
if ($params['notify_type'] == 'moderator') {
    // moderation email
    $params['unsubscribe_text'] = T_('You are a moderator in this blog, and you are receiving notifications when a post may need moderation.') . '<br />';
    $params['unsubscribe_text'] .= T_('If you don\'t want to receive any more notifications about post moderation, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=post_moderator&user_ID=$user_ID$&key=$unsubscribe_key$">' . T_('instant unsubscribe') . '</a>.';
} else {
    // subscription email
    $params['unsubscribe_text'] = T_('If you don\'t want to receive any more notifications about new posts on this blog, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=coll_post&user_ID=$user_ID$&coll_ID=' . $Blog->ID . '&key=$unsubscribe_key$">' . T_('instant unsubscribe') . '</a>.';
}
// ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
emailskin_include('_email_footer.inc.html.php', $params);
// ------------------------------- END OF EMAIL FOOTER --------------------------------
Пример #14
0
 * 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/license.html}
 * @copyright (c)2003-2013 by Francois Planque - {@link http://fplanque.com/}
 *
 * @version $Id: account_reported.html.php 3183 2013-03-10 21:59:41Z fplanque $
 */
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, $htsrv_url;
// Default params:
$params = array_merge(array('login' => '', 'email' => '', 'report_status' => '', 'report_info' => '', 'user_ID' => '', 'reported_by' => ''), $params);
echo '<p>' . sprintf(T_('A user account was reported by %s'), get_user_colored_login($params['reported_by'])) . "</p>\n";
echo '<p>' . T_('Login') . ": " . get_user_colored_login($params['login']) . "</p>\n";
echo '<p>' . T_('Email') . ": " . $params['email'] . "</p>\n";
echo '<p>' . T_('Reported as') . ": " . $params['report_status'] . "</p>\n";
echo '<p>' . T_('Extra info') . ": " . nl2br($params['report_info']) . "</p>\n";
// Buttons:
echo '<div class="buttons">' . "\n";
echo get_link_tag($admin_url . '?ctrl=user&user_tab=admin&user_ID=' . $params['user_ID'], T_('Edit User account'), 'button_yellow') . "\n";
echo "</div>\n";
// Footer vars:
$params['unsubscribe_text'] = T_('If you don\'t want to receive any more notification when an account was reported, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=account_reported&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 --------------------------------
Пример #15
0
        $notify_message .= '<div class="email_ugc">' . "\n";
        $notify_message .= '<p><i class="note">' . T_('This is a short form moderation message. To make these emails more useful for quick moderation, ask the administrator to send you long form moderation messages instead.') . '</i></p>';
        $notify_message .= "</div>\n";
    }
}
echo $notify_message;
// Buttons:
echo '<div class="buttons">' . "\n";
echo get_link_tag($Comment->get_permanent_url(), T_('Read full comment'), 'button_green') . "\n";
if ($params['notify_type'] == 'moderator') {
    // moderation email
    if ($Blog->get_setting('comment_quick_moderation') != 'never' && !empty($Comment->secret)) {
        // quick moderation is permitted, and comment secret was set
        echo get_link_tag($htsrv_url . 'comment_review.php?cmt_ID=' . $Comment->ID . '&secret=' . $Comment->secret, T_('Quick moderation'), 'button_yellow') . "\n";
    }
    echo get_link_tag($admin_url . '?ctrl=comments&action=edit&comment_ID=' . $Comment->ID, T_('Edit comment'), 'button_gray') . "\n";
}
echo "</div>\n";
// add unsubscribe and edit links
$params['unsubscribe_text'] = '';
if ($params['notify_type'] == 'moderator') {
    // moderation email
    $params['unsubscribe_text'] = T_('You are a moderator in this blog, and you are receiving notifications when a comments may need moderation.') . '<br />';
    $params['unsubscribe_text'] .= T_('If you don\'t want to receive any more notifications about comment moderation, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=comment_moderator&user_ID=$user_ID$&key=$unsubscribe_key$">' . T_('instant unsubscribe') . '</a>.';
} else {
    if ($params['notify_type'] == 'blog_subscription') {
        // blog subscription
        $params['unsubscribe_text'] = T_('You are receiving notifications when anyone comments on any post.') . '<br />';
        $params['unsubscribe_text'] .= T_('If you don\'t want to receive any more notifications on this blog, click here:') . ' <a href="' . $htsrv_url . 'quick_unsubscribe.php?type=coll_comment&coll_ID=' . $Blog->ID . '&user_ID=$user_ID$&key=$unsubscribe_key$">' . T_('instant unsubscribe') . '</a>.';
        // subscribers are not allowed to see comment author email
    } else {