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

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

75 lines 2.6 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 Friend Post notification e-mail.
4 *
5 * @version 1.0
6 * @package Friends
7 */
8
9 // Documented in templates/frontend/parts/header.php.
10 $override_author_name = apply_filters( 'friends_override_author_name', '', $args['author']->display_name, $args['post']->ID );
11
12 ?>
13 <div class="post-meta">
14 <a href="<?php echo esc_attr( $args['author']->get_local_friends_page_url() ); ?>" class="author">
15 <strong><?php echo esc_html( $args['author']->display_name ); ?></strong>
16 <?php if ( $override_author_name && trim( str_replace( $override_author_name, '', $args['author']->display_name ) ) === $args['author']->display_name ) : ?>
17 <?php echo esc_html( $override_author_name ); ?>
18 <?php endif; ?>
19 </a>
20 <?php if ( '' !== trim( $args['post']->post_title ) ) : ?>
21 <h2><a href="<?php the_permalink( $args['post'] ); ?>"><?php echo esc_html( $args['post']->post_title ); ?></a></h2>
22 <?php endif; ?>
23 </div>
24
25 <div class="post-content">
26 <?php
27 echo wp_kses_post( apply_filters( 'friends_rewrite_mail_html', $args['post']->post_content, $args ) );
28 ?>
29 </div>
30
31 <div class="post-footer">
32 <a href="<?php echo esc_url( $args['author']->get_local_friends_page_url( $args['post']->ID ) ); ?>#respond" class="btn">
33 <?php
34 esc_html_e( 'Reply', 'friends' );
35 ?>
36 </a>
37 <a href="<?php echo esc_url( $args['author']->get_local_friends_page_url( $args['post']->ID ) ); ?>" class="btn noborder">
38 <?php
39 esc_html_e( 'View on your friends page', 'friends' );
40 ?>
41 </a>
42 <p class="permalink">
43 <?php
44 echo wp_kses(
45 sprintf(
46 // translators: %s is a URL.
47 __( 'Published at %s', 'friends' ),
48 '<a href="' . esc_url( get_permalink( $args['post'] ) ) . '">' . esc_html( get_permalink( $args['post'] ) ) . '</a></strong>'
49 ),
50 array( 'a' => array( 'href' => array() ) )
51 );
52 ?>
53 </p>
54 </div>
55
56 <div class="subscription-settings">
57 <hr>
58 <?php
59 echo wp_kses(
60 sprintf(
61 // translators: %1$s is a URL, %2$s is a URL, %3$s is a username, %4$s is a URL.
62 __( 'Manage your <a href=%1$s>global notification settings</a>, <a href=%2$s>change notifications for %3$s</a>, or <a href=%4$s>muffle posts like these</a>.', 'friends' ),
63 '"' . esc_url( self_admin_url( 'admin.php?page=friends-settings' ) ) . '"',
64 '"' . esc_url( self_admin_url( 'admin.php?page=edit-friend&user=' . $args['author']->user_login ) ) . '"',
65 '<em>' . esc_html( $args['author']->display_name ) . '</em>',
66 '"' . esc_url( self_admin_url( 'admin.php?page=edit-friend-rules&user=' . $args['author']->user_login . '&post=' . $args['post']->ID ) ) . '"'
67 ),
68 array(
69 'em' => array(),
70 'a' => array( 'href' => true ),
71 )
72 );
73 ?>
74 </div>
75