PluginProbe
Friends / 4.3.0
Friends v4.3.0
4.3.2 4.3.1 4.3.0 4.2.2 4.2.1 4.2.0 4.1.0 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.0 2.9.1 All 88 releases
friends / templates / email / new-follower-text.php

new-follower-text.php in Friends 4.3.0, at templates/email/new-follower-text.php

28 lines 952 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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