| 1 |
<?php |
| 2 |
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable |
| 3 |
$user = \Activitypub\Collection\Users::get_by_id( \get_current_user_id() ); ?> |
| 4 |
<h2 id="activitypub"><?php \esc_html_e( 'ActivityPub', 'activitypub' ); ?></h2> |
| 5 |
|
| 6 |
<table class="form-table"> |
| 7 |
<tbody> |
| 8 |
<tr> |
| 9 |
<th scope="row"> |
| 10 |
<label><?php \esc_html_e( 'Profile URL', 'activitypub' ); ?></label> |
| 11 |
</th> |
| 12 |
<td> |
| 13 |
<p> |
| 14 |
<code><?php echo \esc_html( $user->get_webfinger() ); ?></code> or |
| 15 |
<code><?php echo \esc_url( $user->get_url() ); ?></code> |
| 16 |
</p> |
| 17 |
<?php // translators: the webfinger resource ?> |
| 18 |
<p class="description"><?php \printf( \esc_html__( 'Follow "@%s" by searching for it on Mastodon, Friendica, etc.', 'activitypub' ), \esc_html( $user->get_webfinger() ) ); ?></p> |
| 19 |
</td> |
| 20 |
</tr> |
| 21 |
<tr class="activitypub-user-description-wrap"> |
| 22 |
<th> |
| 23 |
<label for="activitypub-user-description"><?php \esc_html_e( 'Biography', 'activitypub' ); ?></label> |
| 24 |
</th> |
| 25 |
<td> |
| 26 |
<textarea name="activitypub-user-description" id="activitypub-user-description" rows="5" cols="30" placeholder="<?php echo \esc_html( get_user_meta( \get_current_user_id(), 'description', true ) ); ?>"><?php echo \esc_html( $args['description'] ); ?></textarea> |
| 27 |
<p class="description"><?php \esc_html_e( 'If you wish to use different biographical info for the fediverse, enter your alternate bio here.', 'activitypub' ); ?></p> |
| 28 |
</td> |
| 29 |
<?php wp_nonce_field( 'activitypub-user-description', '_apnonce' ); ?> |
| 30 |
</tr> |
| 31 |
</tbody> |
| 32 |
</table> |
| 33 |
|