1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub-skin.git synced 2024-06-26 03:50:46 +03:00

Новый стиль email-уведомлений

This commit is contained in:
Alexander Yakovlev 2018-03-05 18:38:09 +07:00
parent 4571a60631
commit 28103974db
19 changed files with 130 additions and 19 deletions

View file

@ -2,7 +2,7 @@
* Приглашение в закрытый блог
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.blog_invite_new.text' params=[
@ -12,4 +12,4 @@
'blog_name' => $oBlog->getTitle()|escape,
'invite_url' => $sPath
]}
{/block}
{/block}

View file

@ -2,7 +2,7 @@
* Оповещение о новом комментарии в топике
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.comment_new.text' params=[

View file

@ -2,7 +2,7 @@
* Оповещение об ответе на комментарий
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.comment_reply.text' params=[

View file

@ -2,7 +2,7 @@
* Приглашение на сайт
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.invite.text' params=[

View file

@ -2,7 +2,7 @@
* Повторная активация
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.reactivation.text' params=[

View file

@ -2,7 +2,7 @@
* Регистрация
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.registration.text' params=[

View file

@ -2,7 +2,7 @@
* Подтверждение регистрации
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.registration_activate.text' params=[

View file

@ -2,7 +2,7 @@
* Смена пароля
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.reminder_code.text' params=[

View file

@ -2,7 +2,7 @@
* Новый пароль
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.reminder_password.text' params=[

View file

@ -2,7 +2,7 @@
* Оповещение о новом сообщении в диалоге
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.talk_comment_new.text' params=[

View file

@ -2,7 +2,7 @@
* Оповещение о новом сообщении
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.talk_new.text' params=[

View file

@ -2,7 +2,7 @@
* Оповещение о новом топике
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.topic_new.text' params=[

111
emails/email.tpl Normal file
View file

@ -0,0 +1,111 @@
{**
* Базовый шаблона e-mail'а
*}
{$backgroundColor = 'F4F4F4'} {* Цвет фона *}
{$containerBorderColor = 'D0D6E8'} {* Цвет границ основного контейнера *}
{$headerBackgroundColor = '222222'} {* Цвет фона шапки *}
{$headerTitleColor = 'FFFFFF'} {* Цвет заголовка в шапке *}
{$headerDescriptionColor = 'dddddd'} {* Цвет описания в шапке *}
{$contentBackgroundColor = 'FFFFFF'} {* Цвет фона содержимого письма *}
{$contentTitleColor = '000000'} {* Цвет заголовка *}
{$contentTextColor = '4f4f4f'} {* Цвет текста *}
{$footerBackgroundColor = 'fafafa'} {* Цвет фона футера *}
{$footerTextColor = '949fa3'} {* Цвет текста в футере *}
{$footerLinkColor = '949fa3'} {* Цвет ссылки в футере *}
{* Путь до папки с изображенями *}
{$imagesDir = "{$LS->Component_GetWebPath('email')}/images"}
{component_define_params params=[ 'title', 'content' ]}
{* Фон *}
<style>
@font-face {
font-family: 'Racing Sans One';
font-style: normal;
font-weight: 400;
src: local('Racing Sans One'), local('RacingSansOne-Regular'), url(https://fonts.gstatic.com/s/racingsansone/v5/sykr-yRtm7EvTrXNxkv5jfKKyDCAKHDi.ttf) format('truetype'), url(https://fonts.gstatic.com/s/racingsansone/v5/sykr-yRtm7EvTrXNxkv5jfKKyDCAKHDn.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style>
<table width="100%" align="center" bgcolor="#{$backgroundColor}" cellpadding="0" cellspacing="0" style="border-collapse: collapse;">
<tr><td>
<br />
<br />
{* Основной контейнер *}
<table width="573" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-style: normal; font-weight: normal; font-size: 13px/1.4em; font-family: Verdana, Arial; color: #4f4f4f; border: 1px solid #{$containerBorderColor};">
{* Шапка *}
<tr>
<td>
<table width="100%" bgcolor="#{$headerBackgroundColor}" cellpadding="50" cellspacing="0" style="border-collapse: collapse;">
<tr>
<td style="font-size: 11px; line-height: 1em;">
<span style="font-weight: normal; font-style: normal; font-size: 29px; font-family: 'Racing Sans One', Arial, sans-serif; line-height: 1em; color: #{$headerTitleColor}"><strong><span style="background-color: #cd1713">&nbsp;IF&nbsp;</span>Hub<span style="color: #b3b3b3">.club</span></strong></span>
<div style="line-height: 0; height: 10px;"><img src="{$imagesDir}/blank.gif" width="10" height="10"/></div>
<span style="color: #{$headerDescriptionColor}">{Config::Get('view.description')}</span>
</td>
</tr>
</table>
</td>
</tr>
{* Контент *}
<tr>
<td>
<table width="100%" cellpadding="50" cellspacing="0" bgcolor="#{$contentBackgroundColor}" style="border-collapse: collapse;">
<tr>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0" style="border-collapse: collapse; font: normal 13px/1.4em Verdana, Arial; color: #{$contentTextColor};">
{* Заголовок *}
{if $sTitle}
<tr>
<td valign="top">
<span style="font: normal 19px Arial; line-height: 1.3em; color: #{$contentTitleColor}">{$title}</span>
</td>
</tr>
<tr><td height="10"><div style="line-height: 0;"><img src="{$imagesDir}/blank.gif" width="15" height="15"/></div></td></tr>
{/if}
{* Текст *}
<tr>
<td valign="top">
{block 'content'}{/block}
{$content}
<br>
<br>
{$aLangemails.common.regards} <a href="{Router::GetPath('/')}">{Config::Get('view.name')}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
{* Подвал *}
<table width="100%" bgcolor="#{$footerBackgroundColor}" cellpadding="20" cellspacing="0" style="border-collapse: collapse; font: normal 11px Verdana, Arial; line-height: 1.3em; color: #{$footerTextColor};">
<tr>
<td valign="center">
<img src="{$imagesDir}/blank.gif" width="27" height="10" style="vertical-align: middle">
<a href="{Router::GetPath('/')}" style="color: #{$footerLinkColor} !important;">{Config::Get('view.name')}</a>
{if isset($oUserTo) }
<br>
<img src="{$imagesDir}/blank.gif" width="27" height="10" style="vertical-align: middle">
Чтобы отписаться от уведомлений, снимите галочки <a href="{Router::getPath('/')}settings/tuning">в вашем профиле.</a>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<br />
</td></tr>
</table>

View file

@ -2,7 +2,7 @@
* Смена почты
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.user_changemail.text' params=[

View file

@ -2,7 +2,7 @@
* Смена почты
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.user_changemail.text' params=[

View file

@ -2,7 +2,7 @@
* Жалоба
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.user_complaint.text' params=[

View file

@ -2,7 +2,7 @@
* Заявка в друзья
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.user_friend_new.text' params=[

View file

@ -2,7 +2,7 @@
* Новое сообщение на стене
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.wall_new.text' params=[

View file

@ -2,7 +2,7 @@
* Ответ на сообщение на стене
*}
{extends 'Component@email.email'}
{extends 'email'}
{block 'content'}
{lang name='emails.wall_reply.text' params=[