PluginProbe
Friends / 4.3.1
Friends v4.3.1
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 / admin / add-friend.php

add-friend.php in Friends 4.3.1, at templates/admin/add-friend.php

55 lines 2.0 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 Admin Send Friend Request form.
4 *
5 * @version 1.0
6 * @package Friends
7 */
8
9 $quick_subscribe = _x( 'Quick Subscribe', 'button', 'friends' );
10
11 ?><div class="wrap"><form method="post">
12 <?php wp_nonce_field( 'add-friend' ); ?>
13 <p>
14 <?php esc_html_e( 'To follow a friend or to subscribe to any other feed, enter their URL here.', 'friends' ); ?>
15 <?php esc_html_e( 'You can either enter a feed URL directly or the main URL which will contain pointers to the available feeds.', 'friends' ); ?>
16 <?php
17 // translators: %s is a URL.
18 echo wp_kses( sprintf( __( 'For quick adding or following you can also <a href=%s>use a bookmarklet</a>.', 'friends' ), esc_url( self_admin_url( 'tools.php' ) ) ), array( 'a' => array( 'href' => array() ) ) );
19 ?>
20 </p>
21
22 <?php do_action( 'friends_add_friend_form_top', $args ); ?>
23
24 <table class="form-table">
25 <tbody>
26 <tr>
27 <th scope="row"><label for="friend_url"><?php esc_html_e( 'Site', 'friends' ); ?></label></th>
28 <td>
29 <input type="text" autofocus id="friend_url" name="friend_url" value="<?php echo esc_attr( $args['friend_url'] ); ?>" required placeholder="<?php echo esc_attr( $args['add-friends-placeholder'] ); ?>" class="regular-text" />
30 <p class="description" id="friend_url-description">
31 <?php esc_html_e( "In the next step we'll give you a selection of available feeds.", 'friends' ); ?>
32 </p>
33 </td>
34 </tr>
35 <tr>
36 <th></th>
37 <td>
38 <input type="submit" name="step2" class="button button-primary" value="<?php echo esc_attr_x( 'Next ยป', 'button', 'friends' ); ?>" />
39
40 <input type="submit" name="quick-subscribe" class="button" value="<?php echo esc_attr( $quick_subscribe ); ?>" />
41
42 <p class="description" id="quick-subscribe-description">
43 <?php
44 // translators: %s is the text for the Quick Subscribe button.
45 echo wp_kses( sprintf( __( '<em>%s</em> will skip the next step and just subscribe you.', 'friends' ), $quick_subscribe ), array( 'em' => array() ) );
46 ?>
47 </p>
48
49 </td>
50 </tr>
51 </tbody>
52 </table>
53
54 </form>
55