add mail footer for HTML email
This commit is contained in:
@@ -76,6 +76,13 @@ function booking_admin() {
|
|||||||
),
|
),
|
||||||
'#default_value' => variable_get('booking_enable_html_mail', 0),
|
'#default_value' => variable_get('booking_enable_html_mail', 0),
|
||||||
);
|
);
|
||||||
|
$form['emails']['booking_html_mail_footer'] = array(
|
||||||
|
'#title' => t('Footer text for HTML email'),
|
||||||
|
'#description' => t('Enter HTML to go in the footer of the email template (above the social media icons).'),
|
||||||
|
'#default_value' => isset(variable_get('booking_html_mail_footer')['value']) ? variable_get('booking_html_mail_footer')['value'] : variable_get('booking_html_mail_footer', '<p> </p>'),
|
||||||
|
'#type' => 'text_format',
|
||||||
|
'#format' => 'full_html',
|
||||||
|
);
|
||||||
$form['email']['booking_custom_email_count'] = array(
|
$form['email']['booking_custom_email_count'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('Number of custom email definitions'),
|
'#title' => t('Number of custom email definitions'),
|
||||||
|
@@ -855,6 +855,10 @@ function booking_theme($existing, $type, $theme, $path) {
|
|||||||
// if our more heavily customised template exists, use that, otherwise fall back to the generic one
|
// if our more heavily customised template exists, use that, otherwise fall back to the generic one
|
||||||
$template_file = is_file($theme_path . '/mimemail-message-registration_mail.tpl.php') ? '/mimemail-message-registration_mail' : '/mimemail-message';
|
$template_file = is_file($theme_path . '/mimemail-message-registration_mail.tpl.php') ? '/mimemail-message-registration_mail' : '/mimemail-message';
|
||||||
|
|
||||||
|
//get the footer text
|
||||||
|
$message_footer = variable_get('booking_html_mail_footer');
|
||||||
|
$message_footer = isset($message_footer['format']) ? $message_footer['value'] : $message_footer;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'booking_details' => array('arguments' => array('node' => NULL)),
|
'booking_details' => array('arguments' => array('node' => NULL)),
|
||||||
'booking_htmlmail_template' => array(
|
'booking_htmlmail_template' => array(
|
||||||
@@ -863,7 +867,7 @@ function booking_theme($existing, $type, $theme, $path) {
|
|||||||
'template' => 'mimemail-message' // extension of .tpl.php automatically added
|
'template' => 'mimemail-message' // extension of .tpl.php automatically added
|
||||||
),
|
),
|
||||||
'booking_htmlmail_registration_mail' => array(
|
'booking_htmlmail_registration_mail' => array(
|
||||||
'variables' => array('subject' => NULL, 'body' => NULL),
|
'variables' => array('subject' => NULL, 'body' => NULL, 'footer' => $message_footer),
|
||||||
'path' => $theme_path,
|
'path' => $theme_path,
|
||||||
'image_path' => drupal_get_path('module', 'booking'). '/images',
|
'image_path' => drupal_get_path('module', 'booking'). '/images',
|
||||||
'template' => $template_file,
|
'template' => $template_file,
|
||||||
|
@@ -296,7 +296,14 @@ a[x-apple-data-detectors=true] {
|
|||||||
|
|
||||||
<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 25px;"><![endif]-->
|
<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 25px;"><![endif]-->
|
||||||
<div style="font-family:Verdana, Geneva, sans-serif;line-height:120%;color:#C4C4C4; padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 25px;">
|
<div style="font-family:Verdana, Geneva, sans-serif;line-height:120%;color:#C4C4C4; padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 25px;">
|
||||||
<div style="font-size:12px;line-height:14px;font-family:Verdana, Geneva, sans-serif;color:#C4C4C4;text-align:left;"><p style="margin: 0;font-size: 12px;line-height: 14px">Our preferred method of contact is via email.<br><a style="color:#769FBB;text-decoration: underline;" title="info@studyweek.net" href="mailto:info@studyweek.net">info@studyweek.net</a><br></p><p style="margin: 0;font-size: 12px;line-height: 14px"> <br></p><p style="margin: 0;font-size: 12px;line-height: 14px">If you have an enquiry regarding your booking.<br><a style="color:#769FBB;color:#769FBB;color:#769FBB;text-decoration: underline;" title="bookings@studyweek.net" href="mailto:bookings@studyweek.net">bookings@studyweek.net</a><br></p><p style="margin: 0;font-size: 12px;line-height: 14px"> <br></p><p style="margin: 0;font-size: 12px;line-height: 14px">Need to speak to the right person?<br>Speak to our bookings coordinator - <a style="color:#769FBB;color:#769FBB;color:#769FBB;color:#769FBB;color:#769FBB;text-decoration: underline;" title="tel:0423637024" href="tel:0423637024">0423 637 024</a></p></div>
|
<div style="font-size:12px;line-height:14px;font-family:Verdana, Geneva, sans-serif;color:#C4C4C4;text-align:left;">
|
||||||
|
<?php print $footer ?>
|
||||||
|
<!--
|
||||||
|
<p style="margin: 0;font-size: 12px;line-height: 14px">Our preferred method of contact is via email.<br><a style="color:#769FBB;text-decoration: underline;" title="info@studyweek.net" href="mailto:info@studyweek.net">info@studyweek.net</a><br></p>
|
||||||
|
<p style="margin: 0;font-size: 12px;line-height: 14px"> <br></p><p style="margin: 0;font-size: 12px;line-height: 14px">If you have an enquiry regarding your booking.<br><a style="color:#769FBB;color:#769FBB;color:#769FBB;text-decoration: underline;" title="bookings@studyweek.net" href="mailto:bookings@studyweek.net">bookings@studyweek.net</a><br></p>
|
||||||
|
<p style="margin: 0;font-size: 12px;line-height: 14px"> <br></p><p style="margin: 0;font-size: 12px;line-height: 14px">Need to speak to the right person?<br>Speak to our bookings coordinator - <a style="color:#769FBB;color:#769FBB;color:#769FBB;color:#769FBB;color:#769FBB;text-decoration: underline;" title="tel:0423637024" href="tel:0423637024">0423 637 024</a></p>
|
||||||
|
-->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--[if mso]></td></tr></table><![endif]-->
|
<!--[if mso]></td></tr></table><![endif]-->
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user