| 1 |
<?php |
| 2 |
/** |
| 3 |
* This template contains the Friends Settings. |
| 4 |
* |
| 5 |
* @package Friends |
| 6 |
*/ |
| 7 |
|
| 8 |
?> |
| 9 |
<form method="post"> |
| 10 |
<?php wp_nonce_field( 'friends-activitypub-settings' ); ?> |
| 11 |
<table class="form-table"> |
| 12 |
<tbody> |
| 13 |
<tr> |
| 14 |
<th scope="row"><?php esc_html_e( 'Boosts', 'friends' ); ?></th> |
| 15 |
<td> |
| 16 |
<fieldset> |
| 17 |
<label for="activitypub_reblog"> |
| 18 |
<input name="activitypub_reblog" type="checkbox" id="activitypub_reblog" value="1" <?php checked( $args['reblog'] ); ?> /> |
| 19 |
<span><?php esc_html_e( 'When you boost a status, also reblog it.', 'friends' ); ?></span> |
| 20 |
</label> |
| 21 |
</fieldset> |
| 22 |
<p class="description"><?php esc_html_e( 'If unchecked, the boosting will only happen via ActivityPub.', 'friends' ); ?></p> |
| 23 |
</td> |
| 24 |
</tr> |
| 25 |
</tbody> |
| 26 |
</table> |
| 27 |
|
| 28 |
<p class="submit"> |
| 29 |
<input type="submit" id="submit" class="button button-primary" value="<?php /* phpcs:ignore WordPress.WP.I18n.MissingArgDomain */ esc_html_e( 'Save Changes' ); ?>"> |
| 30 |
</p> |
| 31 |
|
| 32 |
<p class="description"> |
| 33 |
<?php |
| 34 |
echo wp_kses( |
| 35 |
sprintf( |
| 36 |
// translators: %s is the URL of the Friends admin menu. |
| 37 |
__( 'Find further settings around ActivityPub in the <a href=%s>ActivityPub plugin settings</a>.', 'friends' ), |
| 38 |
'"' . admin_url( 'options-general.php?page=activitypub&tab=settings' ) . '"' |
| 39 |
), |
| 40 |
array( |
| 41 |
'a' => array( 'href' => array() ), |
| 42 |
) |
| 43 |
); |
| 44 |
?> |
| 45 |
</p> |
| 46 |
</form> |
| 47 |
<?php |
| 48 |
|