wordpress-activitypub/templates/settings-page.php
Matthias Pfefferle 4e653f5f75 0.1.0
* added basic WebFinger support
* added basic NodeInfo support
* fully functional "follow" activity
* send new posts to your followers
* receive comments from your followers
2018-12-20 11:33:08 +01:00

64 lines
2.2 KiB
PHP

<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' ); ?>
<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' ); ?>
<?php // submit_button(); ?>
</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>