From 28103974dbefb8c7dbc6f0412539dbd25e16ce7b Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Mon, 5 Mar 2018 18:38:09 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20=D1=81=D1=82?= =?UTF-8?q?=D0=B8=D0=BB=D1=8C=20email-=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- emails/email.blog_invite_new.tpl | 4 +- emails/email.comment_new.tpl | 2 +- emails/email.comment_reply.tpl | 2 +- emails/email.invite.tpl | 2 +- emails/email.reactivation.tpl | 2 +- emails/email.registration.tpl | 2 +- emails/email.registration_activate.tpl | 2 +- emails/email.reminder_code.tpl | 2 +- emails/email.reminder_password.tpl | 2 +- emails/email.talk_comment_new.tpl | 2 +- emails/email.talk_new.tpl | 2 +- emails/email.topic_new.tpl | 2 +- emails/email.tpl | 111 +++++++++++++++++++++++++ emails/email.user_changemail_from.tpl | 2 +- emails/email.user_changemail_to.tpl | 2 +- emails/email.user_complaint.tpl | 2 +- emails/email.user_friend_new.tpl | 2 +- emails/email.wall.new.tpl | 2 +- emails/email.wall.reply.tpl | 2 +- 19 files changed, 130 insertions(+), 19 deletions(-) create mode 100644 emails/email.tpl diff --git a/emails/email.blog_invite_new.tpl b/emails/email.blog_invite_new.tpl index 5ff27db..3dc4f5a 100644 --- a/emails/email.blog_invite_new.tpl +++ b/emails/email.blog_invite_new.tpl @@ -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} \ No newline at end of file +{/block} diff --git a/emails/email.comment_new.tpl b/emails/email.comment_new.tpl index a7d2d14..297b084 100644 --- a/emails/email.comment_new.tpl +++ b/emails/email.comment_new.tpl @@ -2,7 +2,7 @@ * Оповещение о новом комментарии в топике *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.comment_new.text' params=[ diff --git a/emails/email.comment_reply.tpl b/emails/email.comment_reply.tpl index 02a7c52..fec3352 100644 --- a/emails/email.comment_reply.tpl +++ b/emails/email.comment_reply.tpl @@ -2,7 +2,7 @@ * Оповещение об ответе на комментарий *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.comment_reply.text' params=[ diff --git a/emails/email.invite.tpl b/emails/email.invite.tpl index efd942c..ff9f402 100644 --- a/emails/email.invite.tpl +++ b/emails/email.invite.tpl @@ -2,7 +2,7 @@ * Приглашение на сайт *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.invite.text' params=[ diff --git a/emails/email.reactivation.tpl b/emails/email.reactivation.tpl index 226e1fe..a7ccf67 100644 --- a/emails/email.reactivation.tpl +++ b/emails/email.reactivation.tpl @@ -2,7 +2,7 @@ * Повторная активация *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.reactivation.text' params=[ diff --git a/emails/email.registration.tpl b/emails/email.registration.tpl index 41bd10a..1a3c362 100644 --- a/emails/email.registration.tpl +++ b/emails/email.registration.tpl @@ -2,7 +2,7 @@ * Регистрация *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.registration.text' params=[ diff --git a/emails/email.registration_activate.tpl b/emails/email.registration_activate.tpl index 3b1280c..8d645e2 100644 --- a/emails/email.registration_activate.tpl +++ b/emails/email.registration_activate.tpl @@ -2,7 +2,7 @@ * Подтверждение регистрации *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.registration_activate.text' params=[ diff --git a/emails/email.reminder_code.tpl b/emails/email.reminder_code.tpl index 627a7f5..10d9217 100644 --- a/emails/email.reminder_code.tpl +++ b/emails/email.reminder_code.tpl @@ -2,7 +2,7 @@ * Смена пароля *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.reminder_code.text' params=[ diff --git a/emails/email.reminder_password.tpl b/emails/email.reminder_password.tpl index a773444..c3b7caf 100644 --- a/emails/email.reminder_password.tpl +++ b/emails/email.reminder_password.tpl @@ -2,7 +2,7 @@ * Новый пароль *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.reminder_password.text' params=[ diff --git a/emails/email.talk_comment_new.tpl b/emails/email.talk_comment_new.tpl index 39dfebf..704eb1c 100644 --- a/emails/email.talk_comment_new.tpl +++ b/emails/email.talk_comment_new.tpl @@ -2,7 +2,7 @@ * Оповещение о новом сообщении в диалоге *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.talk_comment_new.text' params=[ diff --git a/emails/email.talk_new.tpl b/emails/email.talk_new.tpl index 626df9d..5a7e368 100644 --- a/emails/email.talk_new.tpl +++ b/emails/email.talk_new.tpl @@ -2,7 +2,7 @@ * Оповещение о новом сообщении *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.talk_new.text' params=[ diff --git a/emails/email.topic_new.tpl b/emails/email.topic_new.tpl index 8839b71..b3db6eb 100644 --- a/emails/email.topic_new.tpl +++ b/emails/email.topic_new.tpl @@ -2,7 +2,7 @@ * Оповещение о новом топике *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.topic_new.text' params=[ diff --git a/emails/email.tpl b/emails/email.tpl new file mode 100644 index 0000000..b23552a --- /dev/null +++ b/emails/email.tpl @@ -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' ]} + +{* Фон *} + + + +
+
+
+ + {* Основной контейнер *} + + {* Шапка *} + + + + + {* Контент *} + + + +
+ + + + +
+  IF Hub.club +
+ {Config::Get('view.description')} +
+
+ + + + +
+ + {* Заголовок *} + {if $sTitle} + + + + + {/if} + + {* Текст *} + + + +
+ {$title} +
+ {block 'content'}{/block} + {$content} +
+
+ {$aLangemails.common.regards} {Config::Get('view.name')} +
+
+ + {* Подвал *} + + + + +
+ + {Config::Get('view.name')} + {if isset($oUserTo) } +
+ + Чтобы отписаться от уведомлений, снимите галочки в вашем профиле. + {/if} +
+
+ +
+
+
diff --git a/emails/email.user_changemail_from.tpl b/emails/email.user_changemail_from.tpl index 99fba2b..6cfbf03 100644 --- a/emails/email.user_changemail_from.tpl +++ b/emails/email.user_changemail_from.tpl @@ -2,7 +2,7 @@ * Смена почты *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.user_changemail.text' params=[ diff --git a/emails/email.user_changemail_to.tpl b/emails/email.user_changemail_to.tpl index 2ee2565..3ce2094 100644 --- a/emails/email.user_changemail_to.tpl +++ b/emails/email.user_changemail_to.tpl @@ -2,7 +2,7 @@ * Смена почты *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.user_changemail.text' params=[ diff --git a/emails/email.user_complaint.tpl b/emails/email.user_complaint.tpl index bf2d7e2..de33d80 100644 --- a/emails/email.user_complaint.tpl +++ b/emails/email.user_complaint.tpl @@ -2,7 +2,7 @@ * Жалоба *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.user_complaint.text' params=[ diff --git a/emails/email.user_friend_new.tpl b/emails/email.user_friend_new.tpl index 7b88bcc..5960a30 100644 --- a/emails/email.user_friend_new.tpl +++ b/emails/email.user_friend_new.tpl @@ -2,7 +2,7 @@ * Заявка в друзья *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.user_friend_new.text' params=[ diff --git a/emails/email.wall.new.tpl b/emails/email.wall.new.tpl index 7d8176e..aca2080 100644 --- a/emails/email.wall.new.tpl +++ b/emails/email.wall.new.tpl @@ -2,7 +2,7 @@ * Новое сообщение на стене *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.wall_new.text' params=[ diff --git a/emails/email.wall.reply.tpl b/emails/email.wall.reply.tpl index d5339a9..c4825ab 100644 --- a/emails/email.wall.reply.tpl +++ b/emails/email.wall.reply.tpl @@ -2,7 +2,7 @@ * Ответ на сообщение на стене *} -{extends 'Component@email.email'} +{extends 'email'} {block 'content'} {lang name='emails.wall_reply.text' params=[