diff --git a/booking.emails_admin.inc b/booking.emails_admin.inc index bd171c5..9bad9ee 100644 --- a/booking.emails_admin.inc +++ b/booking.emails_admin.inc @@ -507,8 +507,6 @@ function booking_manual_email_form($form, &$form_state) */ function _booking_email_get_preview_callback($form, $form_state) { global $event; - $markup_pre = "

Email Preview

";
-  $markup_post = "


"; $text = ""; $emailtype = $form_state['values']['email-type']; @@ -549,7 +547,16 @@ function _booking_email_get_preview_callback($form, $form_state) { //use the html value if it is set, otherwise use the plaintext input which is just a string $text = isset($text['format']) ? $text['value'] : $text; //watchdog('booking_debug', "
Email generation:\n@info
", array('@info' => print_r( $text, true))); - + + if(variable_get('booking_enable_html_mail', 0) == 1) { + $markup_pre = "

Email Preview

"; + $markup_post = "

"; + } + else { + $markup_pre = "

Email Preview

";
+    $markup_post = "


"; + } + //generate html that will be used to update div booking_email_preview_wrapper return $markup_pre . $text . $markup_post; } diff --git a/theme/mimemail-message-registration_mail.tpl.php b/theme/mimemail-message-registration_mail.tpl.php index 4525f1a..9dbe405 100644 --- a/theme/mimemail-message-registration_mail.tpl.php +++ b/theme/mimemail-message-registration_mail.tpl.php @@ -199,8 +199,6 @@ a[x-apple-data-detectors=true] {
- -
 
Image @@ -292,7 +290,7 @@ a[x-apple-data-detectors=true] {
-

+