| 1 |
<?php |
| 2 |
/** |
| 3 |
* This template contains the text for the New Follower notification e-mail. |
| 4 |
* |
| 5 |
* @version 1.0 |
| 6 |
* @package Friends |
| 7 |
*/ |
| 8 |
|
| 9 |
// This is a text e-mail, not a place for HTML escaping. |
| 10 |
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 11 |
|
| 12 |
// translators: %s is a user display name. |
| 13 |
printf( __( 'Hi %s!', 'friends' ), esc_html( $args['user']->display_name ) ); |
| 14 |
echo PHP_EOL; |
| 15 |
echo PHP_EOL; |
| 16 |
// translators: %s is a username. |
| 17 |
printf( __( 'You have a new follower %s.', 'friends' ), $args['follower']->get_name() ); |
| 18 |
echo PHP_EOL; |
| 19 |
echo PHP_EOL; |
| 20 |
echo '> ' . wp_strip_all_tags( $args['follower']->get_summary() ); |
| 21 |
echo PHP_EOL; |
| 22 |
// translators: %s is a URL. |
| 23 |
printf( __( 'You can view their profile at %s', 'friends' ), esc_url( $args['url'] ) ); |
| 24 |
echo PHP_EOL; |
| 25 |
echo PHP_EOL; |
| 26 |
echo __( 'Maybe you want to follow them back?', 'friends' ), ' ', esc_url( add_query_arg( 'url', $args['url'], admin_url( 'admin.php?page=add-friend' ) ) ); |
| 27 |
echo PHP_EOL; |
| 28 |
|