2018-12-20 11:33:08 +01:00
< div class = " wrap " >
< h1 >< ? php esc_html_e ( 'ActivityPub Settings' , 'activitypub' ); ?> </h1>
< p >< ? php esc_html_e ( 'ActivityPub turns your blog into a federated social network. This means you can share and talk to everyone using the ActivityPub protocol, including users of Friendi.ca, Pleroma and Mastodon.' , 'activitypub' ); ?> </p>
< form method = " post " action = " options.php " >
< ? php settings_fields ( 'activitypub' ); ?>
2018-12-28 22:40:57 +01:00
< h2 >< ? php esc_html_e ( 'Activities' , 'activitypub' ); ?> </h2>
< p >< ? php esc_html_e ( 'All activity related settings.' , 'activitypub' ); ?> </p>
< table class = " form-table " >
< tbody >
< tr >
< th scope = " row " >
2019-01-04 19:57:33 +01:00
< ? php esc_html_e ( 'Post-Content' , 'activitypub' ); ?>
2018-12-28 22:40:57 +01:00
</ th >
< td >
2019-01-04 19:57:33 +01:00
< p >
< label >< input type = " radio " name = " activitypub_post_content_type " id = " activitypub_post_content_type_excerpt " value = " excerpt " < ? php echo checked ( 'excerpt' , get_option ( 'activitypub_post_content_type' , 'excerpt' ) ); ?> /> <?php esc_html_e( 'Excerpt (default)', 'activitypub' ); ?> - <span class="description"><?php esc_html_e( 'A content summary, shortened to 400 characters and without markup.', 'activitypub' ); ?></span>
</ p >
< p >
< label >< input type = " radio " name = " activitypub_post_content_type " id = " activitypub_post_content_type_content " value = " content " < ? php echo checked ( 'content' , get_option ( 'activitypub_post_content_type' , 'excerpt' ) ); ?> /> <?php esc_html_e( 'Content', 'activitypub' ); ?> - <span class="description"><?php esc_html_e( 'The full content.', 'activitypub' ); ?></span>
</ p >
2018-12-28 22:40:57 +01:00
</ td >
</ tr >
< tr >
< th scope = " row " >
< ? php esc_html_e ( 'Activtity-Object-Type' , 'activitypub' ); ?>
</ th >
< td >
< p >
2019-01-04 19:57:33 +01:00
< label >< input type = " radio " name = " activitypub_object_type " id = " activitypub_object_type_note " 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 most plattforms.', 'activitypub' ); ?></span>
2018-12-28 22:40:57 +01:00
</ p >
< p >
2019-01-04 19:57:33 +01:00
< label >< input type = " radio " name = " activitypub_object_type " id = " activitypub_object_type_article " 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>
2018-12-28 22:40:57 +01:00
</ p >
< p >
< 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>
</ p >
</ td >
</ tr >
</ tbody >
</ table >
< ? php do_settings_fields ( 'activitypub' , 'activity' ); ?>
2018-12-20 11:33:08 +01:00
< h2 >< ? php esc_html_e ( 'Profile' , 'activitypub' ); ?> </h2>
< p >< ? php esc_html_e ( 'All profile related settings.' , 'activitypub' ); ?> </p>
< table class = " form-table " >
< tbody >
< tr >
< th scope = " row " >
< label >< ? php esc_html_e ( 'Profile identifier' , 'activitypub' ); ?> </label>
</ th >
< td >
< p >< code >< ? php echo activitypub_get_webfinger_resource ( get_current_user_id () ); ?> </code> or <code><?php echo get_author_posts_url( get_current_user_id() ); ?></code></p>
< p class = " description " >< ? php printf ( __ ( 'Try to follow "@%s" in the mastodon/friendi.ca search field.' , 'activitypub' ), activitypub_get_webfinger_resource ( get_current_user_id () ) ); ?> </p>
</ td >
</ tr >
</ tbody >
</ table >
< ? php do_settings_fields ( 'activitypub' , 'profile' ); ?>
< h2 >< ? php esc_html_e ( 'Followers' , 'activitypub' ); ?> </h2>
< p >< ? php esc_html_e ( 'All follower related settings.' , 'activitypub' ); ?> </p>
< table class = " form-table " >
< tbody >
< tr >
< th scope = " row " >
< label >< ? php esc_html_e ( 'List of followers' , 'activitypub' ); ?> </label>
</ th >
< td >
< ? php if ( Db_Activitypub_Followers :: get_followers ( get_current_user_id () ) ) { ?>
< ul >
< ? php foreach ( Db_Activitypub_Followers :: get_followers ( get_current_user_id () ) as $follower ) { ?>
< li >< ? php echo esc_attr ( $follower ); ?> </li>
< ? php } ?>
</ ul >
< ? php } else { ?>
< p >< ? php esc_html_e ( 'No followers yet' , 'activitypub' ); ?> </p>
< ? php } ?>
</ td >
</ tr >
</ tbody >
</ table >
< ? php do_settings_fields ( 'activitypub' , 'followers' ); ?>
< ? php do_settings_sections ( 'activitypub' ); ?>
2018-12-28 22:40:57 +01:00
< ? php submit_button (); ?>
2018-12-20 11:33:08 +01:00
</ form >
< p >
< small >< ? php _e ( 'If you like this plugin, what about a small <a href="https://notiz.blog/donate">donation</a>?' , 'activitypub' ); ?> </small>
</ p >
</ div >