function subscriptions_mail_template_raw in Subscriptions 5.2
Same name and namespace in other branches
- 6 subscriptions_mail.templates.inc \subscriptions_mail_template_raw()
- 7 subscriptions_mail.templates.inc \subscriptions_mail_template_raw()
- 2.0.x subscriptions_mail/subscriptions_mail.templates.inc \subscriptions_mail_template_raw()
1 call to subscriptions_mail_template_raw()
File
- ./
subscriptions_mail.templates.inc, line 11 - Subscriptions module mail templates constants.
Code
function subscriptions_mail_template_raw($key) {
switch ($key) {
case 'SEP':
return t('| --------------------------------------------------------------------
');
case 'SUBJ':
return t('[!site] !subs_type subscription for !name: !title');
case 'FOOT':
return t('| This is an automated message. Please do NOT reply to the sender address!
| To manage your subscriptions go to
| !manage_url
');
case 'BODY':
return t('| Greetings, !name.
|
| Your subscription on !site
| notifies you of {{!is_new==0?:a new post:
}}{{!is_updated==0?:an updated post:
}}{{!is_old==0?:new comments:
}}|
{{!is_published==1?:| ***** This post is unpublished! *****
}}{{!term_name==!term_name?:| Category: !term_name
}}{{!sender_name==!sender_name?:| Author: !sender_name
}}{{!sender_has_contact_page==0?:| Contact: !sender_contact_page
}}| Title: !title
{{!is_old==1?:
!teaser
}}| Link: !url
| Direct unsubscribe link (!subs_type):
| !unsubscribe_url
{{!has_new_comments==1?!SEPARATOR!comments:}}!SEPARATOR!FOOTER', array(
'!SEPARATOR' => subscriptions_mail_template_raw('SEP'),
'!FOOTER' => subscriptions_mail_template_raw('FOOT'),
));
case 'CITEM':
return t('| {{!comment_is_new==1?New:Updated}} {{!comment_is_published==1?:UNPUBLISHED }}comment:
| Author: !comment_name
| Title: !comment_title
!comment_text
| Link: !comment_url
');
case 'DSUBJ':
return t('[!site] Subscription Digest for !name');
case 'DBODY':
return t('| Greetings, !name.
|
| Your subscriptions on !site
| notify you of the following changes since the previous digest:
|
!bodies!SEPARATOR!FOOTER', array(
'!SEPARATOR' => subscriptions_mail_template_raw('SEP'),
'!FOOTER' => subscriptions_mail_template_raw('FOOT'),
));
case 'DITEM':
return t('{{!sender_name==!sender_name?:| Author: !sender_name
}}| Title: !title
{{!is_new==0?:!teaser
}}| Link: !url
| Direct unsubscribe link (!subs_type):
| !unsubscribe_url
{{!has_new_comments!=1?:!comments}}');
case 'DITEMCMT':
return t('| Comment: !comment_title
');
}
}