| 1 |
<?php |
| 2 |
/** |
| 3 |
* This template contains the HTML for the New Follower notification e-mail. |
| 4 |
* |
| 5 |
* @version 1.0 |
| 6 |
* @package Friends |
| 7 |
*/ |
| 8 |
|
| 9 |
?> |
| 10 |
<p> |
| 11 |
<?php |
| 12 |
// translators: %s is a user display name. |
| 13 |
echo esc_html( sprintf( __( 'Hi %s!', 'friends' ), $args['user']->display_name ) ); |
| 14 |
?> |
| 15 |
</p> |
| 16 |
|
| 17 |
<p> |
| 18 |
<?php |
| 19 |
esc_html_e( 'Sorry to inform you that you lost a follower:', 'friends' ); |
| 20 |
?> |
| 21 |
</p> |
| 22 |
|
| 23 |
<table> |
| 24 |
<tr> |
| 25 |
<td style="vertical-align: top"> |
| 26 |
<a href="<?php echo esc_url( $args['follower']->get_url() ); ?>" style="float: left; margin-right: 1em;"> |
| 27 |
<img src="<?php echo esc_url( $args['icon_url'] ); /* phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage */ ?>" alt="<?php echo esc_attr( $args['follower']->get_name() ); ?>" width="64" height="64"> |
| 28 |
</a> |
| 29 |
</td> |
| 30 |
<td> |
| 31 |
|
| 32 |
<a href="<?php echo esc_url( $args['follower']->get_url() ); ?>"> |
| 33 |
<strong><?php echo esc_html( $args['follower']->get_name() ); ?></strong> (<?php echo esc_html( $args['follower']->get_preferred_username() . '@' . $args['server'] ); ?>) |
| 34 |
</a> |
| 35 |
<br> |
| 36 |
<?php |
| 37 |
if ( $args['follower']->get_summary() ) { |
| 38 |
echo wp_kses_post( nl2br( $args['follower']->get_summary() ) ); |
| 39 |
} |
| 40 |
?> |
| 41 |
</td> |
| 42 |
</tr> |
| 43 |
</table> |
| 44 |
|
| 45 |
<p> |
| 46 |
<?php |
| 47 |
// translators: %s is a time duration. |
| 48 |
echo esc_html( sprintf( __( 'They have been following you for: %s', 'friends' ), $args['duration'] ) ); |
| 49 |
?> |
| 50 |
</p> |
| 51 |
|
| 52 |
|
| 53 |
|