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.php

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

62 lines 2.1 KB
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 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( 'You have a new 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 if ( $args['following'] ) {
48 esc_html_e( 'You are already following them!', 'friends' );
49 echo ' ';
50 // translators: %s is a URL.
51 echo wp_kses( sprintf( __( 'Go to their <a href="%s">friends page</a> to see what they recently posted about.', 'friends' ), esc_url( $args['following']->get_local_friends_page_url() ) ), array( 'a' => array( 'href' => array() ) ) );
52 } else {
53 // translators: %s is a URL.
54 echo wp_kses( sprintf( __( 'You can view their profile at %s', 'friends' ), '<a href="' . esc_url( $args['follower']->get_url() ) . '">' . esc_url( $args['follower']->get_url() ) . '</a>' ), array( 'a' => array( 'href' => array() ) ) );
55 echo '</p>';
56 echo '<p>';
57 // translators: %s is a URL.
58 echo wp_kses( sprintf( __( 'Maybe you want to <a href="%s">follow them back</a>?', 'friends' ), esc_url( add_query_arg( 'url', $args['url'], admin_url( 'admin.php?page=add-friend' ) ) ) ), array( 'a' => array( 'href' => array() ) ) );
59 }
60 ?>
61 </p>
62