PluginProbe
Friends / 4.3.2
Friends v4.3.2
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
← All changes | templates/admin/settings.php +59 -0 4.2.14.3.2 View file →
@@ -11,8 +11,49 @@
11 11 <form method="post">
12 12 <?php wp_nonce_field( 'friends-settings' ); ?>
13 13 <table class="form-table">
14 14 <tbody>
15 + <?php if ( $args['potential_main_users']->get_total() > 1 ) : ?>
16 + <tr>
17 + <th scope="row"><?php esc_html_e( 'Main Friend User', 'friends' ); ?></th>
18 + <td>
19 + <?php if ( current_user_can( 'manage_options' ) ) : ?>
20 + <select name="main_user_id" id="main_user_id">
21 + <?php foreach ( $args['potential_main_users']->get_results() as $potential_main_user ) : ?>
22 + <option value="<?php echo esc_attr( $potential_main_user->ID ); ?>" <?php selected( $args['main_user_id'], $potential_main_user->ID ); ?>>
23 + <?php echo esc_html( $potential_main_user->display_name ); ?>
24 + </option>
25 + <?php endforeach; ?>
26 + </select>
27 + <p class="description"><?php esc_html_e( 'Since there are multiple users on this site, we need to know which one should be considered the main one.', 'friends' ); ?> <?php esc_html_e( 'They can edit friends-related settings.', 'friends' ); ?> <?php esc_html_e( 'Whenever a friends-related action needs to be associated with a user, this one will be chosen.', 'friends' ); ?></p>
28 + <?php else : ?>
29 + <?php
30 + $count = 0;
31 + foreach ( $args['potential_main_users']->get_results() as $potential_main_user ) {
32 + ++$count;
33 + if ( $potential_main_user->ID === $args['main_user_id'] ) {
34 + ?>
35 + <span id="main_user_id"><?php echo esc_html( $potential_main_user->display_name ); ?></span>
36 + <?php
37 + }
38 + }
39 + ?>
40 + <span class="description">
41 + <?php
42 + echo esc_html(
43 + sprintf(
44 + /* translators: %s is a number of users. */
45 + _n( '%s potential user', '%s potential users', $count, 'friends' ),
46 + number_format_i18n( $count )
47 + )
48 + );
49 + ?>
50 + </span>
51 + <p class="description"><?php esc_html_e( 'An administrator can change this.', 'friends' ); ?></p>
52 + <?php endif; ?>
53 + </td>
54 + </tr>
55 + <?php endif; ?>
15 56 <tr>
16 57 <th><?php esc_html_e( 'Retention', 'friends' ); ?></th>
17 58 <td>
18 59 <fieldset>
@@ -224,8 +265,26 @@
224 265 echo ' ';
225 266 esc_html_e( 'These tags are separate from the tags you use for your own posts.', 'friends' );
226 267 echo '<br>';
227 268 esc_html_e( 'If you like to avoid an increased number of taxonomy terms in your database, you can disable this, although tags indicating a mention for local users will always be applied.', 'friends' );
269 + ?>
270 + </p>
271 + </fieldset>
272 + </td>
273 + </tr>
274 + <tr>
275 + <th scope="row"><?php esc_html_e( 'Link Previews', 'friends' ); ?></th>
276 + <td>
277 + <fieldset>
278 + <label for="disable_link_previews">
279 + <input name="disable_link_previews" type="checkbox" id="disable_link_previews" value="1" <?php checked( '1', $args['disable_link_previews'] ); ?> />
280 + <span><?php esc_html_e( 'Disable link previews for incoming posts.', 'friends' ); ?></span>
281 + </label>
282 + <p class="description">
283 + <?php
284 + esc_html_e( 'When a status contains a link but no image or video of its own, a preview card with the linked page\'s title, description and image can be shown below the post.', 'friends' );
285 + echo '<br>';
286 + esc_html_e( 'To do so, your site downloads the linked page in the background, so disable this if you\'d rather not have your site contact the linked websites.', 'friends' );
228 287 ?>
229 288 </p>
230 289 </fieldset>
231 290 </td>