mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-19 17:28:23 +03:00
Доработка лок-ии емэйлов
This commit is contained in:
parent
976898fba4
commit
2a2351fc04
|
@ -1210,7 +1210,7 @@ class ActionBlog extends Action {
|
|||
/**
|
||||
* Отправка уведомления автору топика
|
||||
*/
|
||||
$this->Subscribe_Send('topic_new_comment',$oTopic->getId(),Config::Get('module.notify.prefix').'.comment_new.tpl',$this->Lang_Get('notify_subject_comment_new'),array(
|
||||
$this->Subscribe_Send('topic_new_comment',$oTopic->getId(),Config::Get('module.notify.prefix').'.comment_new.tpl',$this->Lang_Get('emails.comment_new.subject'),array(
|
||||
'oTopic' => $oTopic,
|
||||
'oComment' => $oCommentNew,
|
||||
'oUserComment' => $this->oUserCurrent,
|
||||
|
|
|
@ -1105,7 +1105,7 @@ class ActionProfile extends Action {
|
|||
$oUser=$this->User_GetUserById($oChangemail->getUserId());
|
||||
$this->Notify_Send($oChangemail->getMailTo(),
|
||||
Config::Get('module.notify.prefix').'.user_changemail_to.tpl',
|
||||
$this->Lang_Get('notify_subject_user_changemail'),
|
||||
$this->Lang_Get('emails.user_changemail.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
'oChangemail' => $oChangemail,
|
||||
|
|
|
@ -90,7 +90,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUserTo,
|
||||
$this->sPrefix.'.comment_new.tpl',
|
||||
$this->Lang_Get('notify_subject_comment_new'),
|
||||
$this->Lang_Get('emails.comment_new.subject'),
|
||||
array(
|
||||
'oUserTo' => $oUserTo,
|
||||
'oTopic' => $oTopic,
|
||||
|
@ -119,7 +119,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUserTo,
|
||||
$this->sPrefix.'.comment_reply.tpl',
|
||||
$this->Lang_Get('notify_subject_comment_reply'),
|
||||
$this->Lang_Get('emails.comment_reply.subject'),
|
||||
array(
|
||||
'oUserTo' => $oUserTo,
|
||||
'oTopic' => $oTopic,
|
||||
|
@ -148,7 +148,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUserTo,
|
||||
$this->sPrefix.'.topic_new.tpl',
|
||||
$this->Lang_Get('notify_subject_topic_new').' «'.htmlspecialchars($oBlog->getTitle()).'»',
|
||||
$this->Lang_Get('emails.topic_new.subject').' «'.htmlspecialchars($oBlog->getTitle()).'»',
|
||||
array(
|
||||
'oUserTo' => $oUserTo,
|
||||
'oTopic' => $oTopic,
|
||||
|
@ -167,7 +167,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUser,
|
||||
$this->sPrefix.'.reactivation.tpl',
|
||||
$this->Lang_Get('notify_subject_reactvation'),
|
||||
$this->Lang_Get('emails.reactivation.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
),null,true
|
||||
|
@ -183,7 +183,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUser,
|
||||
$this->sPrefix.'.registration_activate.tpl',
|
||||
$this->Lang_Get('notify_subject_registration_activate'),
|
||||
$this->Lang_Get('emails.registration_activate.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
'sPassword' => $sPassword,
|
||||
|
@ -200,7 +200,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUser,
|
||||
$this->sPrefix.'.registration.tpl',
|
||||
$this->Lang_Get('notify_subject_registration'),
|
||||
$this->Lang_Get('emails.registration.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
'sPassword' => $sPassword,
|
||||
|
@ -218,7 +218,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$sMailTo,
|
||||
$this->sPrefix.'.invite.tpl',
|
||||
$this->Lang_Get('notify_subject_invite'),
|
||||
$this->Lang_Get('emails.invite.subject'),
|
||||
array(
|
||||
'sMailTo' => $sMailTo,
|
||||
'oUserFrom' => $oUserFrom,
|
||||
|
@ -244,7 +244,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUserTo,
|
||||
$this->sPrefix.'.talk_new.tpl',
|
||||
$this->Lang_Get('notify_subject_talk_new'),
|
||||
$this->Lang_Get('emails.talk_new.subject'),
|
||||
array(
|
||||
'oUserTo' => $oUserTo,
|
||||
'oUserFrom' => $oUserFrom,
|
||||
|
@ -272,7 +272,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUserTo,
|
||||
$this->sPrefix.'.talk_comment_new.tpl',
|
||||
$this->Lang_Get('notify_subject_talk_comment_new'),
|
||||
$this->Lang_Get('emails.talk_comment_new.subject'),
|
||||
array(
|
||||
'oUserTo' => $oUserTo,
|
||||
'oUserFrom' => $oUserFrom,
|
||||
|
@ -301,7 +301,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUserTo,
|
||||
$this->sPrefix.'.user_friend_new.tpl',
|
||||
$this->Lang_Get('notify_subject_user_friend_new'),
|
||||
$this->Lang_Get('emails.user_friend_new.subject'),
|
||||
array(
|
||||
'oUserTo' => $oUserTo,
|
||||
'oUserFrom' => $oUserFrom,
|
||||
|
@ -323,7 +323,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUserTo,
|
||||
$this->sPrefix.'.blog_invite_new.tpl',
|
||||
$this->Lang_Get('notify_subject_blog_invite_new'),
|
||||
$this->Lang_Get('emails.blog_invite_new.subject'),
|
||||
array(
|
||||
'oUserTo' => $oUserTo,
|
||||
'oUserFrom' => $oUserFrom,
|
||||
|
@ -342,7 +342,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUser,
|
||||
$this->sPrefix.'.reminder_code.tpl',
|
||||
$this->Lang_Get('notify_subject_reminder_code'),
|
||||
$this->Lang_Get('emails.reminder_code.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
'oReminder' => $oReminder,
|
||||
|
@ -359,7 +359,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oUser,
|
||||
$this->sPrefix.'.reminder_password.tpl',
|
||||
$this->Lang_Get('notify_subject_reminder_password'),
|
||||
$this->Lang_Get('emails.reminder_password.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
'sNewPassword' => $sNewPassword,
|
||||
|
@ -377,7 +377,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oWallParent->getUser(),
|
||||
$this->sPrefix.'.wall.reply.tpl',
|
||||
$this->Lang_Get('notify_subject_wall_reply'),
|
||||
$this->Lang_Get('emails.wall_reply.subject'),
|
||||
array(
|
||||
'oWallParent' => $oWallParent,
|
||||
'oUserTo' => $oWallParent->getUser(),
|
||||
|
@ -397,7 +397,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
$oWall->getWallUser(),
|
||||
$this->sPrefix.'.wall.new.tpl',
|
||||
$this->Lang_Get('notify_subject_wall_new'),
|
||||
$this->Lang_Get('emails.wall_new.subject'),
|
||||
array(
|
||||
'oUserTo' => $oWall->getWallUser(),
|
||||
'oWall' => $oWall,
|
||||
|
@ -415,7 +415,7 @@ class ModuleNotify extends Module {
|
|||
$this->Send(
|
||||
Config::Get('general.admin_mail'),
|
||||
$this->sPrefix.'.user_complaint.tpl',
|
||||
$this->Lang_Get('notify_subject_user_complaint'),
|
||||
$this->Lang_Get('emails.user_complaint.subject'),
|
||||
array(
|
||||
'oUserTarget' => $oComplaint->getTargetUser(),
|
||||
'oUserFrom' => $oComplaint->getUser(),
|
||||
|
|
|
@ -1534,7 +1534,7 @@ class ModuleUser extends Module {
|
|||
*/
|
||||
$this->Notify_Send($oChangemail->getMailTo(),
|
||||
Config::Get('module.notify.prefix').'.user_changemail_to.tpl',
|
||||
$this->Lang_Get('notify_subject_user_changemail'),
|
||||
$this->Lang_Get('emails.user_changemail.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
'oChangemail' => $oChangemail,
|
||||
|
@ -1546,7 +1546,7 @@ class ModuleUser extends Module {
|
|||
*/
|
||||
$this->Notify_Send($oUser,
|
||||
Config::Get('module.notify.prefix').'.user_changemail_from.tpl',
|
||||
$this->Lang_Get('notify_subject_user_changemail'),
|
||||
$this->Lang_Get('emails.user_changemail.subject'),
|
||||
array(
|
||||
'oUser' => $oUser,
|
||||
'oChangemail' => $oChangemail,
|
||||
|
|
|
@ -624,11 +624,13 @@ return array(
|
|||
*/
|
||||
'emails' => array(
|
||||
'common' => array(
|
||||
'comment_text' => 'Текст комментария'
|
||||
'comment_text' => 'Текст комментария',
|
||||
'regards' => 'С уважением, администрация сайта',
|
||||
),
|
||||
|
||||
// Приглашение в закрытый блог
|
||||
'blog_invite_new' => array(
|
||||
'subject' => 'Вас пригласили вступить в блог',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
приглашает вас вступить в блог <a href="%%blog_url%%">%%blog_name%%</a>.
|
||||
|
@ -640,6 +642,7 @@ return array(
|
|||
|
||||
// Оповещение о новом комментарии в топике
|
||||
'comment_new' => array(
|
||||
'subject' => 'Новый комментарий к топику',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
оставил новый комментарий к топику <b>%%topic_name%%</b>,
|
||||
|
@ -652,6 +655,7 @@ return array(
|
|||
|
||||
// Оповещение об ответе на комментарий
|
||||
'comment_reply' => array(
|
||||
'subject' => 'Вам ответили на ваш комментарий',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
ответил на ваш комментарий в топике <b>%%topic_name%%</b>,
|
||||
|
@ -662,6 +666,7 @@ return array(
|
|||
|
||||
// Приглашение на сайт
|
||||
'invite' => array(
|
||||
'subject' => 'Приглашение на регистрацию',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
пригласил вас зарегистрироваться на сайте <a href="%%website_url%%">%%website_name%%</a>
|
||||
|
@ -673,6 +678,7 @@ return array(
|
|||
|
||||
// Повторная активация
|
||||
'reactivation' => array(
|
||||
'subject' => 'Повторный запрос активации',
|
||||
'text' =>
|
||||
'Вы запросили повторную активацию на сайте <a href="%%website_url%%">%%website_name%%</a>
|
||||
<br><br>
|
||||
|
@ -683,6 +689,7 @@ return array(
|
|||
|
||||
// Регистрация
|
||||
'registration' => array(
|
||||
'subject' => 'Регистрация',
|
||||
'text' =>
|
||||
'Вы зарегистрировались на сайте <a href="%%website_url%%">%%website_name%%</a>
|
||||
<br><br>
|
||||
|
@ -694,6 +701,7 @@ return array(
|
|||
|
||||
// Подтверждение регистрации
|
||||
'registration_activate' => array(
|
||||
'subject' => 'Регистрация',
|
||||
'text' =>
|
||||
'Вы зарегистрировались на сайте <a href="%%website_url%%">%%website_name%%</a>
|
||||
<br><br>
|
||||
|
@ -708,6 +716,7 @@ return array(
|
|||
|
||||
// Смена пароля
|
||||
'reminder_code' => array(
|
||||
'subject' => 'Восстановление пароля',
|
||||
'text' =>
|
||||
'Если вы хотите сменить себе пароль на сайте <a href="%%website_url%%">%%website_name%%</a>, то перейдите по ссылке ниже:<br>
|
||||
<a href="%%recover_url%%">%%recover_url%%</a>'
|
||||
|
@ -715,12 +724,14 @@ return array(
|
|||
|
||||
// Новый пароль
|
||||
'reminder_password' => array(
|
||||
'subject' => 'Новый пароль',
|
||||
'text' =>
|
||||
'Вам присвоен новый пароль: <b>%%password%%</b>'
|
||||
),
|
||||
|
||||
// Оповещение о новом сообщении в диалоге
|
||||
'talk_comment_new' => array(
|
||||
'subject' => 'У вас новый комментарий к письму',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
оставил новый комментарий к письму <b>%%talk_name%%</b>,
|
||||
|
@ -733,6 +744,7 @@ return array(
|
|||
|
||||
// Оповещение о новом сообщении
|
||||
'talk_new' => array(
|
||||
'subject' => 'У вас новое письмо',
|
||||
'text' =>
|
||||
'Вам пришло новое письмо от пользователя <a href="%%user_url%%">%%user_name%%</a>,
|
||||
прочитать его можно перейдя по <a href="%%talk_url%%">этой ссылке</a>
|
||||
|
@ -745,6 +757,7 @@ return array(
|
|||
|
||||
// Оповещение о новом топике
|
||||
'topic_new' => array(
|
||||
'subject' => 'Новый топик в блоге',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
опубликовал в блоге <b>%%blog_name%%</b>,
|
||||
|
@ -753,6 +766,7 @@ return array(
|
|||
|
||||
// Смена почты
|
||||
'user_changemail' => array(
|
||||
'subject' => 'Подтверждение смены емайла',
|
||||
'text' =>
|
||||
'Вами отправлен запрос на смену e-mail адреса пользователя <a href="%%user_url%%">%%user_name%%</a>
|
||||
на сайте <a href="%%website_url%%">%%website_name%%</a>.
|
||||
|
@ -766,6 +780,7 @@ return array(
|
|||
|
||||
// Жалоба
|
||||
'user_complaint' => array(
|
||||
'subject' => 'Жалоба на пользователя',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
пожаловался на пользователя <a href="%%user_target_url%%">%%user_target_url%%</a>.
|
||||
|
@ -777,6 +792,7 @@ return array(
|
|||
|
||||
// Заявка в друзья
|
||||
'user_friend_new' => array(
|
||||
'subject' => 'Вас добавили в друзья',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
<br><br>
|
||||
|
@ -789,6 +805,7 @@ return array(
|
|||
|
||||
// Новое сообщение на стене
|
||||
'wall_new' => array(
|
||||
'subject' => 'Новое сообщение на вашей стене',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
оставил сообщение на <a href="%%wall_url%%">вашей стене</a>
|
||||
|
@ -799,6 +816,7 @@ return array(
|
|||
|
||||
// Ответ на сообщение на стене
|
||||
'wall_reply' => array(
|
||||
'subject' => 'Ответ на ваше сообщение на стене',
|
||||
'text' =>
|
||||
'Пользователь <a href="%%user_url%%">%%user_name%%</a>
|
||||
ответил на ваше сообщение на <a href="%%wall_url%%">стене</a>
|
||||
|
@ -1550,27 +1568,6 @@ return array(
|
|||
'uploadimg_link_submit_paste' => 'Вставить как ссылку',
|
||||
'uploadimg_cancel' => 'Отмена',
|
||||
'uploadimg_title' => 'Описание',
|
||||
/**
|
||||
* Уведомления
|
||||
*/
|
||||
'notify_subject_comment_new' => 'Новый комментарий к топику',
|
||||
'notify_subject_comment_reply' => 'Вам ответили на ваш комментарий',
|
||||
'notify_subject_topic_new' => 'Новый топик в блоге',
|
||||
'notify_subject_registration_activate' => 'Регистрация',
|
||||
'notify_subject_registration' => 'Регистрация',
|
||||
'notify_subject_invite' => 'Приглашение на регистрацию',
|
||||
'notify_subject_talk_new' => 'У вас новое письмо',
|
||||
'notify_subject_talk_comment_new' => 'У вас новый комментарий к письму',
|
||||
'notify_subject_user_friend_new' => 'Вас добавили в друзья',
|
||||
'notify_subject_blog_invite_new' => 'Вас пригласили вступить в блог',
|
||||
'notify_subject_reminder_code' => 'Восстановление пароля',
|
||||
'notify_subject_reminder_password' => 'Новый пароль',
|
||||
'notify_subject_wall_reply' => 'Ответ на ваше сообщение на стене',
|
||||
'notify_subject_wall_new' => 'Новое сообщение на вашей стене',
|
||||
'notify_subject_reactvation' => 'Повторный запрос активации',
|
||||
'notify_subject_user_changemail' => 'Подтверждение смены емайла',
|
||||
'notify_subject_user_complaint' => 'Жалоба на пользователя',
|
||||
'notify_regards' => 'С уважением, администрация сайта',
|
||||
/**
|
||||
* Админка
|
||||
*/
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
{$sFooterLinkColor = '949fa3'} {* Цвет ссылки в футере *}
|
||||
|
||||
{* Путь до папки с изображенями *}
|
||||
{$sImagesDir = "{cfg name='path.skin.assets.web'}/images/emails"}
|
||||
{$sImagesDir = "{Config::Get('path.skin.assets.web')}/images/emails"}
|
||||
|
||||
|
||||
{* Фон *}
|
||||
|
@ -35,10 +35,10 @@
|
|||
<td>
|
||||
<table width="100%" bgcolor="#{$sHeaderBackgroundColor}" cellpadding="50" cellspacing="0" style="border-collapse: collapse;">
|
||||
<tr>
|
||||
<td style="font-size: 11px; line-height: 1em;">
|
||||
<span style="font: normal 29px Arial, sans-serif; line-height: 1em; color: #{$sHeaderTitleColor}"><strong>{cfg name='view.name'}</strong></span>
|
||||
<td style="font-size: 11px; line-height: 1em;">
|
||||
<span style="font: normal 29px Arial, sans-serif; line-height: 1em; color: #{$sHeaderTitleColor}"><strong>{Config::Get('view.name')}</strong></span>
|
||||
<div style="line-height: 0; height: 10px;"><img src="{$sImagesDir}/blank.gif" width="10" height="10"/></div>
|
||||
<span style="color: #{$sHeaderDescriptionColor}">{cfg name='view.description'}</span>
|
||||
<span style="color: #{$sHeaderDescriptionColor}">{Config::Get('view.description')}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -68,7 +68,7 @@
|
|||
{block name='content'}{/block}
|
||||
<br>
|
||||
<br>
|
||||
{$aLang.notify_regards} <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>
|
||||
{$aLang.emails.common.regards} <a href="{Router::GetPath('/')}">{Config::Get('view.name')}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -81,7 +81,7 @@
|
|||
<tr>
|
||||
<td valign="center">
|
||||
<img src="{$sImagesDir}/blank.gif" width="27" height="10" style="vertical-align: middle">
|
||||
<a href="{Router::GetPath('/')}" style="color: #{$sFooterLinkColor} !important;">{cfg name='view.name'}</a>
|
||||
<a href="{Router::GetPath('/')}" style="color: #{$sFooterLinkColor} !important;">{Config::Get('view.name')}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue