| @@ -1,16 +1,42 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * This template is used to send email when a user subscribes to a notification. | |
| 4 | + * | |
| 5 | + * @package WP_Defender | |
| 6 | + */ | |
| 7 | + | |
| 8 | +?> | |
| 1 | 9 | <h1 style="font-family:inherit;font-size: 25px;line-height:30px;color:inherit;margin-top:10px;margin-bottom: 30px"> |
| 2 | - <?php echo $subject ?> | |
| 10 | + <?php echo esc_html( $subject ); ?> | |
| 3 | 11 | </h1> |
| 4 | 12 | <p style="color: #1A1A1A; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 24px; margin: 0; padding: 0 0 28px; text-align: left; word-wrap: normal;"> |
| 5 | - <?php printf( __( "Hi %s", 'wpdef' ), $name ) ?>, | |
| 13 | + <?php | |
| 14 | + /* translators: %s: Name. */ | |
| 15 | + printf( esc_html__( 'Hi %s', 'defender-security' ), esc_html( $name ) ); | |
| 16 | + ?> | |
| 17 | + , | |
| 6 | 18 | </p> |
| 7 | 19 | <p style="font-family: inherit; font-size: 16px; margin: 0 0 30px"> |
| 8 | 20 | <?php |
| 21 | + $unsubscribe = '<a style="text-decoration: none;color:#0059FF;" href="' . esc_url( $url ) . '">'; | |
| 22 | + $unsubscribe .= esc_html__( 'unsubscribe', 'defender-security' ); | |
| 23 | + $unsubscribe .= '</a>'; | |
| 9 | 24 | printf( |
| 10 | - /* translators: %s - notification_name, %s - url */ | |
| 11 | - __('You are now subscribed to %s. If you no longer wish to receive these emails, you can <a style="text-decoration: none;color:#286EFA" href="%s">unsubscribe</a>.', 'wpdef' ), | |
| 12 | - $notification_name, | |
| 13 | - $url | |
| 25 | + /* translators: 1. Notification name. 2. Unsubscribe-action. */ | |
| 26 | + esc_html__( | |
| 27 | + 'You are now subscribed to %1$s. If you no longer wish to receive these emails, you can %2$s.', | |
| 28 | + 'defender-security' | |
| 29 | + ), | |
| 30 | + esc_html( $notification_name ), | |
| 31 | + wp_kses( | |
| 32 | + $unsubscribe, | |
| 33 | + array( | |
| 34 | + 'a' => array( | |
| 35 | + 'href' => array(), | |
| 36 | + 'style' => array(), | |
| 37 | + ), | |
| 38 | + ) | |
| 39 | + ) | |
| 14 | 40 | ); |
| 15 | 41 | ?> |
| 16 | 42 | </p> |