2023-07-18 22:02:27 +02:00
< ? php
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
$user = \Activitypub\Collection\Users :: get_by_id ( \get_current_user_id () ); ?>
2023-04-28 15:12:30 +02:00
< h2 id = " activitypub " >< ? php \esc_html_e ( 'ActivityPub' , 'activitypub' ); ?> </h2>
< table class = " form-table " >
< tbody >
< tr >
< th scope = " row " >
2023-08-28 14:12:10 +02:00
< label >< ? php \esc_html_e ( 'Profile URL' , 'activitypub' ); ?> </label>
2023-04-28 15:12:30 +02:00
</ th >
< td >
< p >
2023-07-10 14:08:51 +02:00
< code >< ? php echo \esc_html ( $user -> get_resource () ); ?> </code> or
< code >< ? php echo \esc_url ( $user -> get_url () ); ?> </code>
2023-04-28 15:12:30 +02:00
</ p >
< ? php // translators: the webfinger resource ?>
2023-08-28 14:12:10 +02:00
< p class = " description " >< ? php \printf ( \esc_html__ ( 'Follow "@%s" by searching for it on Mastodon, Friendica, etc.' , 'activitypub' ), \esc_html ( $user -> get_resource () ) ); ?> </p>
2023-04-28 15:12:30 +02:00
</ td >
</ tr >
< tr class = " activitypub-user-description-wrap " >
< th >
< label for = " activitypub-user-description " >< ? php \esc_html_e ( 'Biography' , 'activitypub' ); ?> </label>
</ th >
< td >
< 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>
< 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>
</ td >
< ? php wp_nonce_field ( 'activitypub-user-description' , '_apnonce' ); ?>
</ tr >
</ tbody >
</ table >