| @@ -33,12 +33,14 @@ | ||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Get email header. |
| 36 | 36 | * |
| 37 | + * @param string $title Document title; defaults to the notification title. Since 1.6.1. | |
| 37 | 38 | * @since 0.0.1 |
| 38 | 39 | * @return string |
| 39 | 40 | */ |
| 40 | - public function get_header() { | |
| 41 | + public function get_header( $title = '' ) { | |
| 42 | + $title = is_string( $title ) && '' !== $title ? $title : __( 'Donation Notification', 'suredonation' ); | |
| 41 | 43 | ob_start(); |
| 42 | 44 | ?> |
| 43 | 45 | <!DOCTYPE html> |
| 44 | 46 | <html> |
| @@ -44,9 +46,9 @@ | ||
| 44 | 46 | <html> |
| 45 | 47 | <head> |
| 46 | 48 | <meta charset="UTF-8"> |
| 47 | 49 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 48 | - <title><?php echo esc_html__( 'Donation Notification', 'suredonation' ); ?></title> | |
| 50 | + <title><?php echo esc_html( $title ); ?></title> | |
| 49 | 51 | </head> |
| 50 | 52 | <body style="margin: 0; padding: 0;"> |
| 51 | 53 | <div id="sd_wrapper" dir="ltr" style="margin: 0; background-color: #F8F8FC; padding: 40px 0 0 0; width: 100%;"> |
| 52 | 54 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> |