PluginProbe
ActivityPub / 1.0.8
ActivityPub v1.0.8
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / templates / user-settings.php

user-settings.php in ActivityPub 1.0.8, at templates/user-settings.php

33 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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_resource() ); ?></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_resource() ) ); ?></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