|
6 | 6 | <form method="post" action="options.php"> |
7 | 7 | <?php settings_fields( 'activitypub' ); ?> |
8 | 8 |
|
| 9 | + <h2><?php esc_html_e( 'Activities', 'activitypub' ); ?></h2> |
| 10 | + |
| 11 | + <p><?php esc_html_e( 'All activity related settings.', 'activitypub' ); ?></p> |
| 12 | + |
| 13 | + <table class="form-table"> |
| 14 | + <tbody> |
| 15 | + <tr> |
| 16 | + <th scope="row"> |
| 17 | + <label for="activitypub_add_summary"><?php esc_html_e( 'Add the Post-Summary', 'activitypub' ); ?></label> |
| 18 | + </th> |
| 19 | + <td> |
| 20 | + <input type="checkbox" name="activitypub_add_summary" id="activitypub_add_summary" value="1" <?php echo checked( true, get_option( 'activitypub_add_summary', false ) ); ?> /> |
| 21 | + <?php printf( __( 'Adds the Post-Summary to the activity. Be aware, that Mastodon seems to use the "summary" as the "content warning" label.', 'activitypub' ) ); ?> |
| 22 | + </td> |
| 23 | + </tr> |
| 24 | + <tr> |
| 25 | + <th scope="row"> |
| 26 | + <?php esc_html_e( 'Activtity-Object-Type', 'activitypub' ); ?> |
| 27 | + </th> |
| 28 | + <td> |
| 29 | + <p> |
| 30 | + <label><input type="radio" name="activitypub_object_type" id="activitypub_object_type" value="note" <?php echo checked( 'note', get_option( 'activitypub_object_type', 'note' ) ); ?> /> <?php esc_html_e( 'Note (default)', 'activitypub' ); ?> - <span class="description"><?php esc_html_e( 'Should work with the most plattforms.', 'activitypub' ); ?></span> |
| 31 | + </p> |
| 32 | + <p> |
| 33 | + <label><input type="radio" name="activitypub_object_type" id="activitypub_object_type" value="article" <?php echo checked( 'article', get_option( 'activitypub_object_type', 'note' ) ); ?> /> <?php esc_html_e( 'Article', 'activitypub' ); ?> - <span class="description"><?php esc_html_e( 'The presentation of the "Article" might change on different plattforms. Mastodon for example shows the "Article" type as a simple link.', 'activitypub' ); ?></span> |
| 34 | + </p> |
| 35 | + <p> |
| 36 | + <label><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' ) ); ?> /> <?php esc_html_e( 'WordPress Post-Format', 'activitypub' ); ?> - <span class="description"><?php esc_html_e( 'Maps the WordPress Post-Format to the ActivityPub Object Type.', 'activitypub' ); ?></span> |
| 37 | + </p> |
| 38 | + </td> |
| 39 | + </tr> |
| 40 | + </tbody> |
| 41 | + </table> |
| 42 | + |
| 43 | + <?php do_settings_fields( 'activitypub', 'activity' ); ?> |
| 44 | + |
9 | 45 | <h2><?php esc_html_e( 'Profile', 'activitypub' ); ?></h2> |
10 | 46 |
|
11 | 47 | <p><?php esc_html_e( 'All profile related settings.', 'activitypub' ); ?></p> |
|
55 | 91 |
|
56 | 92 | <?php do_settings_sections( 'activitypub' ); ?> |
57 | 93 |
|
58 | | - <?php // submit_button(); ?> |
| 94 | + <?php submit_button(); ?> |
59 | 95 | </form> |
60 | 96 |
|
61 | 97 | <p> |
|
0 commit comments