PluginProbe
ActivityPub / 2.6.0
ActivityPub v2.6.0
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 +37 -42 2.1.1 → 2.6.0 View file →
@@ -29,9 +29,12 @@
29 29 <?php \esc_html_e( 'Enable authors', 'activitypub' ); ?>
30 30 </label>
31 31 </p>
32 32 <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() ) ); ?>
33 + <?php echo \wp_kses( \__( 'Every author on this blog (with the <code>activitypub</code> capability) gets their own ActivityPub profile.', 'activitypub' ), array( 'code' => array() ) ); ?>
34 + <?php // translators: %s is a URL. ?>
35 + <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>
36 + <?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 37 </p>
35 38 <p>
36 39 <label>
37 40 <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' ) ); ?> />
@@ -48,9 +51,9 @@
48 51 <?php \esc_html_e( 'Change blog profile ID', 'activitypub' ); ?>
49 52 </th>
50 53 <td>
51 54 <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() ) ); ?>" />
55 + <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::get_default_username() ) ); ?>" />
53 56 @<?php echo esc_html( \wp_parse_url( \home_url(), PHP_URL_HOST ) ); ?>
54 57 </label>
55 58 <p class="description">
56 59 <?php \esc_html_e( 'This profile name will federate all posts written on your blog, regardless of the author who posted it.', 'activitypub' ); ?>
@@ -73,11 +76,41 @@
73 76 <table class="form-table">
74 77 <tbody>
75 78 <tr>
76 79 <th scope="row">
80 + <?php \esc_html_e( 'Activity-Object-Type', 'activitypub' ); ?>
81 + </th>
82 + <td>
83 + <p>
84 + <label for="activitypub_object_type_note">
85 + <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 ) ); ?> />
86 + <?php \esc_html_e( 'Note (default)', 'activitypub' ); ?>
87 + -
88 + <span class="description">
89 + <?php \esc_html_e( 'Should work with most platforms.', 'activitypub' ); ?>
90 + </span>
91 + </label>
92 + </p>
93 + <p>
94 + <label>
95 + <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 ) ); ?> />
96 + <?php \esc_html_e( 'WordPress Post-Format', 'activitypub' ); ?>
97 + -
98 + <span class="description">
99 + <?php \esc_html_e( 'Maps the WordPress Post-Format to the ActivityPub Object Type.', 'activitypub' ); ?>
100 + </span>
101 + </label>
102 + </p>
103 +
104 + </td>
105 + </tr>
106 + <?php // phpcs:ignore Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace ?>
107 + <tr <?php if ( 'wordpress-post-format' === \get_option( 'activitypub_object_type', ACTIVITYPUB_DEFAULT_OBJECT_TYPE ) ) { echo 'style="display: none"'; } ?>>
108 + <th scope="row">
77 109 <?php \esc_html_e( 'Post content', 'activitypub' ); ?>
78 110 </th>
79 111 <td>
112 + <p><strong><?php \esc_html_e( 'These settings only apply if you use the "Note" Object-Type setting above.', 'activitypub' ); ?></strong></p>
80 113 <p>
81 114 <label for="activitypub_post_content_type_title_link">
82 115 <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 116 <?php \esc_html_e( 'Title and link', 'activitypub' ); ?>
@@ -163,46 +196,8 @@
163 196 </p>
164 197 </td>
165 198 </tr>
166 199 <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 200 <th scope="row"><?php \esc_html_e( 'Supported post types', 'activitypub' ); ?></th>
206 201 <td>
207 202 <fieldset>
208 203 <?php \esc_html_e( 'Automatically publish items of the selected post types to the fediverse:', 'activitypub' ); ?>
@@ -225,13 +220,13 @@
225 220 </td>
226 221 </tr>
227 222 <tr>
228 223 <th scope="row">
229 - <?php \esc_html_e( 'Hashtags (beta)', 'activitypub' ); ?>
224 + <?php \esc_html_e( 'Hashtags', 'activitypub' ); ?>
230 225 </th>
231 226 <td>
232 227 <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>
228 + <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 229 </p>
235 230 </td>
236 231 </tr>
237 232 </tbody>