|
186 | 186 | </tbody>
|
187 | 187 | </table>
|
188 | 188 | </div>
|
189 |
| - |
| 189 | + <div class="box"> |
| 190 | + <h3><?php \esc_html_e( 'Notifications', 'activitypub' ); ?></h3> |
| 191 | + <p><?php \esc_html_e( 'Choose which notifications you want to receive. The plugin currently only supports e-mail notifications, but we will add more options in the future.', 'activitypub' ); ?></p> |
| 192 | + <table class="form-table"> |
| 193 | + <tbody> |
| 194 | + <tr> |
| 195 | + <th scope="row"> |
| 196 | + <?php \esc_html_e( 'Type', 'activitypub' ); ?> |
| 197 | + </th> |
| 198 | + <th> |
| 199 | + <?php \esc_html_e( 'E-Mail', 'activitypub' ); ?> |
| 200 | + </th> |
| 201 | + </tr> |
| 202 | + <tr> |
| 203 | + <td scope="row"> |
| 204 | + <?php \esc_html_e( 'New followers', 'activitypub' ); ?> |
| 205 | + </td> |
| 206 | + <td> |
| 207 | + <label> |
| 208 | + <input type="checkbox" name="activitypub_mailer_new_follower" id="activitypub_mailer_new_follower" value="1" <?php \checked( '1', \get_option( 'activitypub_mailer_new_follower', '0' ) ); ?> /> |
| 209 | + </label> |
| 210 | + </td> |
| 211 | + </tr> |
| 212 | + <tr> |
| 213 | + <td scope="row"> |
| 214 | + <?php \esc_html_e( 'Direct Messages', 'activitypub' ); ?> |
| 215 | + </td> |
| 216 | + <td> |
| 217 | + <label> |
| 218 | + <input type="checkbox" name="activitypub_mailer_new_dm" id="activitypub_mailer_new_dm" value="1" <?php \checked( '1', \get_option( 'activitypub_mailer_new_dm', '0' ) ); ?> /> |
| 219 | + </label> |
| 220 | + </td> |
| 221 | + </tr> |
| 222 | + <?php \do_settings_fields( 'activitypub', 'security' ); ?> |
| 223 | + </tbody> |
| 224 | + </table> |
| 225 | + </div> |
190 | 226 | <div class="box">
|
191 | 227 | <h3><?php \esc_html_e( 'General', 'activitypub' ); ?></h3>
|
192 | 228 | <table class="form-table">
|
|
211 | 247 | </p>
|
212 | 248 | </td>
|
213 | 249 | </tr>
|
214 |
| - <tr> |
215 |
| - <th scope="row"> |
216 |
| - <?php \esc_html_e( 'Blocklist', 'activitypub' ); ?> |
217 |
| - </th> |
218 |
| - <td> |
219 |
| - <p> |
220 |
| - <?php |
221 |
| - echo \wp_kses( |
222 |
| - \sprintf( |
223 |
| - // translators: %s is a URL. |
224 |
| - \__( 'To block servers, add the host of the server to the "<a href="%s">Disallowed Comment Keys</a>" list.', 'activitypub' ), |
225 |
| - \esc_url( \admin_url( 'options-discussion.php#disallowed_keys' ) ) |
226 |
| - ), |
227 |
| - 'default' |
228 |
| - ); |
229 |
| - ?> |
230 |
| - </p> |
231 |
| - </td> |
232 |
| - </tr> |
233 | 250 | <?php \do_settings_fields( 'activitypub', 'general' ); ?>
|
234 | 251 | <?php \do_settings_fields( 'activitypub', 'server' ); ?>
|
235 | 252 | </tbody>
|
|
260 | 277 | </td>
|
261 | 278 | </tr>
|
262 | 279 | <?php endif; ?>
|
| 280 | + <tr> |
| 281 | + <th scope="row"> |
| 282 | + <?php \esc_html_e( 'Blocklist', 'activitypub' ); ?> |
| 283 | + </th> |
| 284 | + <td> |
| 285 | + <p> |
| 286 | + <?php |
| 287 | + echo \wp_kses( |
| 288 | + \sprintf( |
| 289 | + // translators: %s is a URL. |
| 290 | + \__( 'To block servers, add the host of the server to the "<a href="%s">Disallowed Comment Keys</a>" list.', 'activitypub' ), |
| 291 | + \esc_url( \admin_url( 'options-discussion.php#disallowed_keys' ) ) |
| 292 | + ), |
| 293 | + 'default' |
| 294 | + ); |
| 295 | + ?> |
| 296 | + </p> |
| 297 | + </td> |
| 298 | + </tr> |
263 | 299 | <?php \do_settings_fields( 'activitypub', 'security' ); ?>
|
264 | 300 | </tbody>
|
265 | 301 | </table>
|
|
0 commit comments