| @@ -1,10 +1,30 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * This template is used to unsubscribe from notifications. | |
| 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 | + ?> | |
| 6 | 17 | </p> |
| 7 | 18 | <p style="font-family: inherit; font-size: 16px; margin: 0 0 30px"> |
| 8 | - <?php printf( __( 'You are now unsubscribed from %s. If you made a mistake and wish to continue receiving these emails, you can <a style="text-decoration: none;" href="%s">resubscribe</a>.', 'wpdef' ), | |
| 9 | - $notification_name, $url ) ?> | |
| 19 | + <?php | |
| 20 | + printf( | |
| 21 | + /* translators: 1. Notification name. 2. Resubscribe-action. */ | |
| 22 | + esc_html__( | |
| 23 | + 'You are now unsubscribed from %1$s. If you made a mistake and wish to continue receiving these emails, you can %2$s.', | |
| 24 | + 'defender-security' | |
| 25 | + ), | |
| 26 | + esc_html( $notification_name ), | |
| 27 | + '<a style="text-decoration: none;" href="' . esc_url( $url ) . '">' . esc_html__( 'resubscribe', 'defender-security' ) . '</a>' | |
| 28 | + ); | |
| 29 | + ?> | |
| 10 | 30 | </p> |