PluginProbe
ActivityPub / 3.2.2
ActivityPub v3.2.2
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
← All changes | templates/settings.php +55 -68 2.1.13.2.2 View file →
@@ -2,11 +2,12 @@
2 2 \load_template(
3 3 __DIR__ . '/admin-header.php',
4 4 true,
5 5 array(
6 - 'settings' => 'active',
7 - 'welcome' => '',
8 - 'followers' => '',
6 + 'settings' => 'active',
7 + 'welcome' => '',
8 + 'followers' => '',
9 + 'blog-profile' => '',
9 10 )
10 11 );
11 12 ?>
12 13
@@ -25,18 +26,21 @@
25 26 <td>
26 27 <p>
27 28 <label>
28 29 <input type="checkbox" name="activitypub_enable_users" id="activitypub_enable_users" value="1" <?php echo \checked( '1', \get_option( 'activitypub_enable_users', '1' ) ); ?> />
29 - <?php \esc_html_e( 'Enable authors', 'activitypub' ); ?>
30 + <?php \esc_html_e( 'Enable Author-Profiles', 'activitypub' ); ?>
30 31 </label>
31 32 </p>
32 33 <p class="description">
33 - <?php echo \wp_kses( \__( 'Every author on this blog (with the <code>publish_posts</code> capability) gets their own ActivityPub profile.', 'activitypub' ), array( 'code' => array() ) ); ?>
34 + <?php echo \wp_kses( \__( 'Every author on this blog (with the <code>activitypub</code> capability) gets their own ActivityPub profile.', 'activitypub' ), array( 'code' => array() ) ); ?>
35 + <?php // translators: %s is a URL. ?>
36 + <strong><?php echo \wp_kses( sprintf( \__( 'You can add/remove the capability in the <a href="%s">user settings.</a>', 'activitypub' ), admin_url( '/users.php' ) ), array( 'a' => array( 'href' => array() ) ) ); ?></strong>
37 + <?php echo \wp_kses( \__( 'Select all the users you want to update, choose the method from the drop-down list and click on the "Apply" button.', 'activitypub' ), array( 'code' => array() ) ); ?>
34 38 </p>
35 39 <p>
36 40 <label>
37 41 <input type="checkbox" name="activitypub_enable_blog_user" id="activitypub_enable_blog_user" value="1" <?php echo \checked( '1', \get_option( 'activitypub_enable_blog_user', '0' ) ); ?> />
38 - <?php \esc_html_e( 'Enable blog', 'activitypub' ); ?>
42 + <?php \esc_html_e( 'Enable Blog-Profile', 'activitypub' ); ?>
39 43 </label>
40 44 </p>
41 45 <p class="description">
42 46 <?php \esc_html_e( 'Your blog becomes an ActivityPub profile.', 'activitypub' ); ?>
@@ -42,27 +46,8 @@
42 46 <?php \esc_html_e( 'Your blog becomes an ActivityPub profile.', 'activitypub' ); ?>
43 47 </p>
44 48 </td>
45 49 </tr>
46 - <tr>
47 - <th scope="row">
48 - <?php \esc_html_e( 'Change blog profile ID', 'activitypub' ); ?>
49 - </th>
50 - <td>
51 - <label for="activitypub_blog_user_identifier">
52 - <input class="blog-user-identifier" name="activitypub_blog_user_identifier" id="activitypub_blog_user_identifier" type="text" value="<?php echo esc_attr( \get_option( 'activitypub_blog_user_identifier', \Activitypub\Model\Blog_User::get_default_username() ) ); ?>" />
53 - @<?php echo esc_html( \wp_parse_url( \home_url(), PHP_URL_HOST ) ); ?>
54 - </label>
55 - <p class="description">
56 - <?php \esc_html_e( 'This profile name will federate all posts written on your blog, regardless of the author who posted it.', 'activitypub' ); ?>
57 - </p>
58 - <p>
59 - <strong>
60 - <?php \esc_html_e( 'Please avoid using an existing author’s name as the blog profile ID. Fediverse platforms might use caching and this could break the functionality completely.', 'activitypub' ); ?>
61 - </strong>
62 - </p>
63 - </td>
64 - </tr>
65 50 </tbody>
66 51 </table>
67 52
68 53 <?php \do_settings_fields( 'activitypub', 'user' ); ?>
@@ -73,11 +58,41 @@
73 58 <table class="form-table">
74 59 <tbody>
75 60 <tr>
76 61 <th scope="row">
62 + <?php \esc_html_e( 'Activity-Object-Type', 'activitypub' ); ?>
63 + </th>
64 + <td>
65 + <p>
66 + <label for="activitypub_object_type_note">
67 + <input type="radio" name="activitypub_object_type" id="activitypub_object_type_note" value="note" <?php echo \checked( 'note', \get_option( 'activitypub_object_type', ACTIVITYPUB_DEFAULT_OBJECT_TYPE ) ); ?> />
68 + <?php \esc_html_e( 'Note (default)', 'activitypub' ); ?>
69 + -
70 + <span class="description">
71 + <?php \esc_html_e( 'Should work with most platforms.', 'activitypub' ); ?>
72 + </span>
73 + </label>
74 + </p>
75 + <p>
76 + <label>
77 + <input type="radio" name="activitypub_object_type" id="activitypub_object_type" value="wordpress-post-format" <?php echo \checked( 'wordpress-post-format', \get_option( 'activitypub_object_type', ACTIVITYPUB_DEFAULT_OBJECT_TYPE ) ); ?> />
78 + <?php \esc_html_e( 'WordPress Post-Format', 'activitypub' ); ?>
79 + -
80 + <span class="description">
81 + <?php \esc_html_e( 'Maps the WordPress Post-Format to the ActivityPub Object Type.', 'activitypub' ); ?>
82 + </span>
83 + </label>
84 + </p>
85 +
86 + </td>
87 + </tr>
88 + <?php // phpcs:ignore Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace ?>
89 + <tr <?php if ( 'wordpress-post-format' === \get_option( 'activitypub_object_type', ACTIVITYPUB_DEFAULT_OBJECT_TYPE ) ) { echo 'style="display: none"'; } ?>>
90 + <th scope="row">
77 91 <?php \esc_html_e( 'Post content', 'activitypub' ); ?>
78 92 </th>
79 93 <td>
94 + <p><strong><?php \esc_html_e( 'These settings only apply if you use the "Note" Object-Type setting above.', 'activitypub' ); ?></strong></p>
80 95 <p>
81 96 <label for="activitypub_post_content_type_title_link">
82 97 <input type="radio" name="activitypub_post_content_type" id="activitypub_post_content_type_title_link" value="title" <?php echo \checked( 'title', \get_option( 'activitypub_post_content_type', 'content' ) ); ?> />
83 98 <?php \esc_html_e( 'Title and link', 'activitypub' ); ?>
@@ -163,46 +178,8 @@
163 178 </p>
164 179 </td>
165 180 </tr>
166 181 <tr>
167 - <th scope="row">
168 - <?php \esc_html_e( 'Activity-Object-Type', 'activitypub' ); ?>
169 - </th>
170 - <td>
171 - <p>
172 - <label for="activitypub_object_type_note">
173 - <input type="radio" name="activitypub_object_type" id="activitypub_object_type_note" value="note" <?php echo \checked( 'note', \get_option( 'activitypub_object_type', 'note' ) ); ?> />
174 - <?php \esc_html_e( 'Note (default)', 'activitypub' ); ?>
175 - -
176 - <span class="description">
177 - <?php \esc_html_e( 'Should work with most platforms.', 'activitypub' ); ?>
178 - </span>
179 - </label>
180 - </p>
181 - <p><strong><?php \esc_html_e( 'Please note that the following "Activity-Object-Type" options may cause your texts to be displayed differently on each platform and/or parts may be completely ignored. Mastodon, for example, displays all content that is not of the "Note" type as links only.', 'activitypub' ); ?></strong></p>
182 - <p>
183 - <label for="activitypub_object_type_article">
184 - <input type="radio" name="activitypub_object_type" id="activitypub_object_type_article" value="article" <?php echo \checked( 'article', \get_option( 'activitypub_object_type', 'note' ) ); ?> />
185 - <?php \esc_html_e( 'Article', 'activitypub' ); ?>
186 - -
187 - <span class="description">
188 - <?php \esc_html_e( 'The presentation of the "Article" might change on different platforms.', 'activitypub' ); ?>
189 - </span>
190 - </label>
191 - </p>
192 - <p>
193 - <label>
194 - <input type="radio" name="activitypub_object_type" id="activitypub_object_type" value="wordpress-post-format" <?php echo \checked( 'wordpress-post-format', \get_option( 'activitypub_object_type', 'note' ) ); ?> />
195 - <?php \esc_html_e( 'WordPress Post-Format', 'activitypub' ); ?>
196 - -
197 - <span class="description">
198 - <?php \esc_html_e( 'Maps the WordPress Post-Format to the ActivityPub Object Type.', 'activitypub' ); ?>
199 - </span>
200 - </label>
201 - </p>
202 - </td>
203 - </tr>
204 - <tr>
205 182 <th scope="row"><?php \esc_html_e( 'Supported post types', 'activitypub' ); ?></th>
206 183 <td>
207 184 <fieldset>
208 185 <?php \esc_html_e( 'Automatically publish items of the selected post types to the fediverse:', 'activitypub' ); ?>
@@ -225,13 +202,13 @@
225 202 </td>
226 203 </tr>
227 204 <tr>
228 205 <th scope="row">
229 - <?php \esc_html_e( 'Hashtags (beta)', 'activitypub' ); ?>
206 + <?php \esc_html_e( 'Hashtags', 'activitypub' ); ?>
230 207 </th>
231 208 <td>
232 209 <p>
233 - <label><input type="checkbox" name="activitypub_use_hashtags" id="activitypub_use_hashtags" value="1" <?php echo \checked( '1', \get_option( 'activitypub_use_hashtags', '1' ) ); ?> /> <?php echo wp_kses( \__( 'Add hashtags in the content as native tags and replace the <code>#tag</code> with the tag link. <strong>This feature is experimental! Please disable it, if you find any HTML or CSS errors.</strong>', 'activitypub' ), 'default' ); ?></label>
210 + <label><input type="checkbox" name="activitypub_use_hashtags" id="activitypub_use_hashtags" value="1" <?php echo \checked( '1', \get_option( 'activitypub_use_hashtags', '1' ) ); ?> /> <?php echo wp_kses( \__( 'Add hashtags in the content as native tags and replace the <code>#tag</code> with the tag link.', 'activitypub' ), 'default' ); ?></label>
234 211 </p>
235 212 </td>
236 213 </tr>
237 214 </tbody>
@@ -240,17 +217,27 @@
240 217 <?php \do_settings_fields( 'activitypub', 'activity' ); ?>
241 218 </div>
242 219
243 220 <div class="box">
244 - <h3><?php \esc_html_e( 'Server', 'activitypub' ); ?></h3>
221 + <h3><?php \esc_html_e( 'General', 'activitypub' ); ?></h3>
245 222 <table class="form-table">
246 223 <tbody>
247 224 <tr>
248 225 <th scope="row">
226 + <?php \esc_html_e( 'OpenGraph', 'activitypub' ); ?>
227 + </th>
228 + <td>
229 + <p>
230 + <label><input type="checkbox" name="activitypub_use_opengraph" id="activitypub_use_opengraph" value="1" <?php echo \checked( '1', \get_option( 'activitypub_use_opengraph', '1' ) ); ?> /> <?php echo wp_kses( \__( 'Automatically add <code>&lt;meta name="fediverse:creator" /&gt;</code> tags for Authors and the Blog-User. You can read more about the feature on the <a href="https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/" target="_blank">Mastodon Blog</a>.', 'activitypub' ), 'post' ); ?></label>
231 + </p>
232 + </td>
233 + </tr>
234 + <tr>
235 + <th scope="row">
249 236 <?php \esc_html_e( 'Blocklist', 'activitypub' ); ?>
250 237 </th>
251 238 <td>
252 - <p class="description">
239 + <p>
253 240 <?php
254 241 echo \wp_kses(
255 242 \sprintf(
256 243 // translators: %s is a URL.
@@ -264,9 +251,9 @@
264 251 </td>
265 252 </tr>
266 253 </tbody>
267 254 </table>
268 -
255 + <?php \do_settings_fields( 'activitypub', 'general' ); ?>
269 256 <?php \do_settings_fields( 'activitypub', 'server' ); ?>
270 257 </div>
271 258 <?php \do_settings_sections( 'activitypub' ); ?>
272 259