| 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 |
<?php |
| 14 |
echo wp_kses( |
| 15 |
// translators: %s is a keyword string specified by the user. |
| 16 |
sprintf( __( 'Keyword matched: %s', 'friends' ), '<strong>' . esc_html( $args['keyword'] ) . '</strong>' ), |
| 17 |
array( 'strong' => array() ) |
| 18 |
); |
| 19 |
?> |
| 20 |
<br/><br/> |
| 21 |
<div class="post-meta"> |
| 22 |
<a href="<?php echo esc_attr( $args['author']->get_local_friends_page_url() ); ?>" class="author"> |
| 23 |
<strong><?php echo esc_html( $args['author']->display_name ); ?></strong> |
| 24 |
<?php if ( $override_author_name && trim( str_replace( $override_author_name, '', $args['author']->display_name ) ) === $args['author']->display_name ) : ?> |
| 25 |
– <?php echo esc_html( $override_author_name ); ?> |
| 26 |
<?php endif; ?> |
| 27 |
</a> |
| 28 |
<?php if ( '' !== trim( $args['post']->post_title ) ) : ?> |
| 29 |
<h2><a href="<?php the_permalink( $args['post'] ); ?>"><?php echo esc_html( $args['post']->post_title ); ?></a></h2> |
| 30 |
<?php endif; ?> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="post-content"> |
| 34 |
<?php |
| 35 |
echo wp_kses_post( apply_filters( 'friends_rewrite_mail_html', $args['post']->post_content, $args ) ); |
| 36 |
?> |
| 37 |
</div> |
| 38 |
|
| 39 |
<div class="post-footer"> |
| 40 |
<a href="<?php echo esc_url( $args['author']->get_local_friends_page_url( $args['post']->ID ) ); ?>#respond" class="btn"> |
| 41 |
<?php |
| 42 |
esc_html_e( 'Reply', 'friends' ); |
| 43 |
?> |
| 44 |
</a> |
| 45 |
<a href="<?php echo esc_url( $args['author']->get_local_friends_page_url( $args['post']->ID ) ); ?>" class="btn noborder"> |
| 46 |
<?php |
| 47 |
esc_html_e( 'View on your friends page', 'friends' ); |
| 48 |
?> |
| 49 |
</a> |
| 50 |
<p class="permalink"> |
| 51 |
<?php |
| 52 |
echo wp_kses( |
| 53 |
sprintf( |
| 54 |
// translators: %s is a URL. |
| 55 |
__( 'Published at %s', 'friends' ), |
| 56 |
'<a href="' . esc_url( get_permalink( $args['post'] ) ) . '">' . esc_html( get_permalink( $args['post'] ) ) . '</a></strong>' |
| 57 |
), |
| 58 |
array( 'a' => array( 'href' => array() ) ) |
| 59 |
); |
| 60 |
?> |
| 61 |
</p> |
| 62 |
</div> |
| 63 |
|
| 64 |
<div class="subscription-settings"> |
| 65 |
<hr> |
| 66 |
<?php |
| 67 |
echo wp_kses( |
| 68 |
sprintf( |
| 69 |
// translators: %1$s is a URL, %2$s is a URL, %3$s is a username, %4$s is a URL. |
| 70 |
__( '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' ), |
| 71 |
'"' . esc_url( self_admin_url( 'admin.php?page=friends-settings' ) ) . '"', |
| 72 |
'"' . esc_url( self_admin_url( 'admin.php?page=edit-friend&user=' . $args['author']->ID ) ) . '"', |
| 73 |
'<em>' . esc_html( $args['author']->display_name ) . '</em>', |
| 74 |
'"' . esc_url( self_admin_url( 'admin.php?page=edit-friend-rules&user=' . $args['author']->ID . '&post=' . $args['post']->ID ) ) . '"' |
| 75 |
), |
| 76 |
array( |
| 77 |
'em' => array(), |
| 78 |
'a' => array( 'href' => true ), |
| 79 |
) |
| 80 |
); |
| 81 |
|
| 82 |
?> |
| 83 |
</div> |
| 84 |
|