| 1 |
<?php |
| 2 |
/** |
| 3 |
* This template contains the Friends Settings. |
| 4 |
* |
| 5 |
* @package Friends |
| 6 |
*/ |
| 7 |
|
| 8 |
do_action( 'friends_settings_before_form' ); |
| 9 |
|
| 10 |
?> |
| 11 |
<form method="post" enctype="multipart/form-data"> |
| 12 |
<?php wp_nonce_field( 'friends-settings' ); ?> |
| 13 |
<table class="form-table"> |
| 14 |
<tbody> |
| 15 |
<tr> |
| 16 |
<th scope="row" rowspan="2"><?php esc_html_e( 'Feed Reader', 'friends' ); ?></th> |
| 17 |
<td> |
| 18 |
<span> |
| 19 |
<?php |
| 20 |
// translators: %s is a URL. |
| 21 |
echo wp_kses( sprintf( __( 'Download the <a href=%s>Private OPML file (contains private urls!)</a> and import it to your feed reader.', 'friends' ), esc_url( home_url( '/friends/opml/?auth=' . $args['private_rss_key'] ) ) ), array( 'a' => array( 'href' => array() ) ) ); |
| 22 |
?> |
| 23 |
</span> |
| 24 |
<span> |
| 25 |
<?php |
| 26 |
// translators: %s is a URL. |
| 27 |
echo wp_kses( sprintf( __( 'Alternative: <a href=%s>Public OPML file (only public urls)</a>.', 'friends' ), esc_url( home_url( '/friends/opml/?public' ) ) ), array( 'a' => array( 'href' => array() ) ) ); |
| 28 |
?> |
| 29 |
</span> |
| 30 |
<p class="description"> |
| 31 |
<?php |
| 32 |
esc_html_e( 'If your feed reader supports it, you can also subscribe to this URL as the OPML file gets updated as you add or remove friends.', 'friends' ); |
| 33 |
?> |
| 34 |
</p> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
<tr> |
| 38 |
<td> |
| 39 |
<span> |
| 40 |
<?php |
| 41 |
// translators: %s is a URL. |
| 42 |
echo wp_kses( sprintf( __( 'You can also subscribe to a <a href=%s>compiled RSS feed of friend posts</a>.', 'friends' ), esc_url( home_url( '/friends/feed/?auth=' . $args['private_rss_key'] ) ) ), array( 'a' => array( 'href' => array() ) ) ); |
| 43 |
?> |
| 44 |
</span> |
| 45 |
<p class="description"> |
| 46 |
<?php |
| 47 |
esc_html_e( 'Please be careful what you do with these feeds as they might contain private posts of your friends.', 'friends' ); |
| 48 |
?> |
| 49 |
</p> |
| 50 |
|
| 51 |
</td> |
| 52 |
</tr> |
| 53 |
|
| 54 |
<tr> |
| 55 |
<th>Import OPML</th> |
| 56 |
<td> |
| 57 |
<input type="file" name="opml" id="opml" accept=".opml" /> |
| 58 |
<p class="description"> |
| 59 |
<?php |
| 60 |
esc_html_e( 'Import an OPML file to import feeds.', 'friends' ); |
| 61 |
?> |
| 62 |
</p> |
| 63 |
</td> |
| 64 |
</tr> |
| 65 |
</tbody> |
| 66 |
</table> |
| 67 |
<?php do_action( 'friends_settings_form_bottom' ); ?> |
| 68 |
<p class="submit"> |
| 69 |
<input type="submit" id="submit" class="button button-primary" value="<?php /* phpcs:ignore WordPress.WP.I18n.MissingArgDomain */ esc_html_e( 'Save Changes' ); ?>"> |
| 70 |
</p> |
| 71 |
</form> |
| 72 |
<?php |
| 73 |
do_action( 'friends_settings_after_form' ); |
| 74 |
|