Skip to content

Commit

Permalink
Add notification system
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Aug 12, 2017
1 parent 7e7fffc commit 1f98238
Show file tree
Hide file tree
Showing 24 changed files with 609 additions and 0 deletions.
20 changes: 20 additions & 0 deletions locale/en/mail/answer_question_admin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question admin[/comment]

[format]html[/format]

[subject]%site_name% - Answer question[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %site_name% admin</h3>
<div style="padding: 3px 0; margin: 1px 0;">New answer on <strong>%title%</strong> question on <strong>%time%</strong> by <strong>%user%</strong> submitted on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/answer_question_manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question manager[/comment]

[format]html[/format]

[subject]%site_name% - Answer question[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %user%</h3>
<div style="padding: 3px 0; margin: 1px 0;">New answer on <strong>%title%</strong> question on <strong>%time%</strong> by <strong>%user%</strong> submitted on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/answer_question_questioner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question questioner[/comment]

[format]html[/format]

[subject]%site_name% - Answer question[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %questioner%</h3>
<div style="padding: 3px 0; margin: 1px 0;">New answer on <strong>%title%</strong> question on <strong>%time%</strong> by <strong>%user%</strong> submitted on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/answer_question_user.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question user[/comment]

[format]html[/format]

[subject]%site_name% - Answer question[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %user%</h3>
<div style="padding: 3px 0; margin: 1px 0;">You submit new answer on <strong>%title%</strong> question on <strong>%time%</strong>. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/ask_question_admin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]ask question admin[/comment]

[format]html[/format]

[subject]%site_name% - Ask question[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %site_name% admin</h3>
<div style="padding: 3px 0; margin: 1px 0;">New question by <strong>%title%</strong> title on <strong>%time%</strong> by <strong>%user%</strong> submitted on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/ask_question_manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]ask question manager[/comment]

[format]html[/format]

[subject]%site_name% - Ask question[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %site_name% manager</h3>
<div style="padding: 3px 0; margin: 1px 0;">New question by <strong>%title%</strong> title on <strong>%time%</strong> by <strong>%user%</strong> submitted on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/ask_question_user.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]ask question user[/comment]

[format]html[/format]

[subject]%site_name% - Ask question[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %user%</h3>
<div style="padding: 3px 0; margin: 1px 0;">You submit question by <strong>%title%</strong> title on <strong>%time%</strong> by <strong>%user%</strong>. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/review_question_admin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]review question admin[/comment]

[format]html[/format]

[subject]%site_name% - Review question / answer[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %site_name% admin</h3>
<div style="padding: 3px 0; margin: 1px 0;">Question / answer by <strong>%title%</strong> title on <strong>%time%</strong> by <strong>%user%</strong> reviewed on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/review_question_questioner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]review question questioner[/comment]

[format]html[/format]

[subject]%site_name% - Review question / answer[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %questioner%</h3>
<div style="padding: 3px 0; margin: 1px 0;">Answer on <strong>%title%</strong> question on <strong>%time%</strong> by <strong>%user%</strong> reviewed on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/en/mail/review_question_user.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]review question user[/comment]

[format]html[/format]

[subject]%site_name% - Review question / answer[/subject]

[body]
<div style="padding: 1px; direction: ltr;">
<h3 style="font-size: 1.1em;">Dear %user%</h3>
<div style="padding: 3px 0; margin: 1px 0;">Your submited question / answer by <strong>%title%</strong> title on <strong>%time%</strong> reviewed on website. Status is : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="View">(Just available if status is published) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">Dont reply to this email</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/answer_question_admin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question admin[/comment]

[format]html[/format]

[subject]%site_name% - پاسخ به سوال[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">مدیر وب سایت %site_name%</h3>
<div style="padding: 3px 0; margin: 1px 0;">یک پاسخ جدید به سوال <strong>%title%</strong> در تاریخ <strong>%time%</strong> توسط <strong>%user%</strong> در وب سایت ارسال شد : وضعیت <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/answer_question_manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question manager[/comment]

[format]html[/format]

[subject]%site_name% - پاسخ به سوال[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">مدیر پروژه عزیز در وب سایت %site_name%</h3>
<div style="padding: 3px 0; margin: 1px 0;">یک پاسخ جدید به سوال <strong>%title%</strong> در تاریخ <strong>%time%</strong> توسط <strong>%user%</strong> در وب سایت ارسال شد : وضعیت <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/answer_question_questioner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question questioner[/comment]

[format]html[/format]

[subject]%site_name% - پاسخ به سوال[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">%questioner% عزیز</h3>
<div style="padding: 3px 0; margin: 1px 0;">یک پاسخ جدید به سوال <strong>%title%</strong> در تاریخ <strong>%time%</strong> توسط <strong>%user%</strong> در وب سایت ارسال شد : وضعیت <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/answer_question_user.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]answer question user[/comment]

[format]html[/format]

[subject]%site_name% - پاسخ به سوال[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">%user% عزیز</h3>
<div style="padding: 3px 0; margin: 1px 0;">پاسخ شما به سوال <strong>%title%</strong> در تاریخ <strong>%time%</strong> در وب سایت ارسال شد : وضعیت <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/ask_question_admin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]ask question admin[/comment]

[format]html[/format]

[subject]%site_name% - ارسال سوال[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">مدیر وب سایت %site_name%</h3>
<div style="padding: 3px 0; margin: 1px 0;">یک سوال جدید با عنوان <strong>%title%</strong> در تاریخ <strong>%time%</strong> توسط <strong>%user%</strong> در وب سایت ارسال شد : وضعیت <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/ask_question_manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]ask question manager[/comment]

[format]html[/format]

[subject]%site_name% - ارسال سوال[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">مدیر پروژه عزیز در وب سایت %site_name%</h3>
<div style="padding: 3px 0; margin: 1px 0;">یک سوال جدید با عنوان <strong>%title%</strong> در تاریخ <strong>%time%</strong> توسط <strong>%user%</strong> در وب سایت ارسال شد : وضعیت <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/ask_question_user.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]ask question user[/comment]

[format]html[/format]

[subject]%site_name% - ارسال سوال[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">%user% عزیز</h3>
<div style="padding: 3px 0; margin: 1px 0;">سوال شما با عنوان <strong>%title%</strong> در تاریخ <strong>%time%</strong> در وب سایت ارسال شد : وضعیت <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
20 changes: 20 additions & 0 deletions locale/fa/mail/review_question_admin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[comment]review question admin[/comment]

[format]html[/format]

[subject]%site_name% - بررسی سوال / پاسخ[/subject]

[body]
<div style="padding: 1px; direction: rtl;">
<h3 style="font-size: 1.1em;">مدیر وب سایت %site_name%</h3>
<div style="padding: 3px 0; margin: 1px 0;">سوال / پاسخ با عنوان <strong>%title%</strong> ارسال شده در تاریخ <strong>%time%</strong> توسط <strong>%user%</strong> در وب سایت بررسی شد. نتیجه بررسی : <strong>%status%</strong></div>
<div style="padding: 3px 0; margin: 1px 0;">%description%</div>
<div style="padding: 3px 0; margin: 1px 0;">
<a href="%url%" title="مشاهده">(تنها در صورتی که سوال / پاسخ در وب سایت تایید شده باشد لینک آن در دسترس است) %url%</a>
</div>
<div style="padding: 3px 0; margin: 1px 0;">لطفا به این پیام پاسخی ندهید</div>
<div style="margin-top: 10px">
<a href="%site_url%" title="%site_name%">%site_name%</a>
</div>
</div>
[/body]
Loading

0 comments on commit 1f98238

Please sign in to comment.