| @@ -1,15 +1,37 @@ | ||
| 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 | - <?php printf( __( 'An administrator from <strong>%s</strong> has subscribed <strong>%s</strong> to <strong>%s</strong>. To confirm your subscription, click Confirm Subscription below.', 'wpdef' ), | |
| 9 | - $site_url, $email, $notification_name ) ?> | |
| 20 | + <?php | |
| 21 | + printf( | |
| 22 | + /* translators: 1. Site url. 2. Email. 3. Notification name. */ | |
| 23 | + esc_html__( | |
| 24 | + 'An administrator from %1$s has subscribed %2$s to %3$s. To confirm your subscription, click Confirm Subscription below.', | |
| 25 | + 'defender-security' | |
| 26 | + ), | |
| 27 | + '<strong>' . esc_url( $site_url ) . '</strong>', | |
| 28 | + '<strong>' . esc_html( $email ) . '</strong>', | |
| 29 | + '<strong>' . esc_html( $notification_name ) . '</strong>' | |
| 30 | + ) | |
| 31 | + ?> | |
| 10 | 32 | </p> |
| 11 | 33 | <p style="margin: 0;padding: 0;text-align: center"> |
| 12 | - <a class="button" | |
| 13 | - style="font-family: Roboto, Arial, sans-serif;font-size: 16px;font-weight: normal;line-height: 20px;text-align: center; margin-bottom:0;" | |
| 14 | - href="<?php echo $url ?>"><?php _e( 'Confirm Subscription', 'wpdef' ) ?></a> | |
| 34 | + <a class="button view-full" | |
| 35 | + style="font-family: Roboto, Arial, sans-serif;font-size: 16px;font-weight: normal;line-height: 20px;text-align: center; margin-bottom:0;" | |
| 36 | + href="<?php echo esc_url( $url ); ?>"><?php esc_attr_e( 'Confirm Subscription', 'defender-security' ); ?></a> | |
| 15 | 37 | </p> |