wordpress-activitypub/templates/user-followers-list.php

22 lines
783 B
PHP
Raw Normal View History

<?php
$follower_count = \Activitypub\Collection\Followers::count_followers( \get_current_user_id() );
// translators: The follower count.
$followers_template = _n( 'Your author profile currently has %s follower.', 'Your author profile currently has %s followers.', $follower_count, 'activitypub' );
?>
2019-08-21 10:38:43 +02:00
<div class="wrap">
<h1><?php \esc_html_e( 'Author Followers', 'activitypub' ); ?></h1>
<p><?php \printf( \esc_html( $followers_template ), \esc_attr( $follower_count ) ); ?></p>
2019-08-21 10:38:43 +02:00
<?php $table = new \Activitypub\Table\Followers(); ?>
2019-08-21 10:38:43 +02:00
<form method="get">
2023-04-21 16:25:15 +02:00
<input type="hidden" name="page" value="activitypub-followers-list" />
2019-08-21 10:38:43 +02:00
<?php
$table->prepare_items();
$table->display();
2019-08-21 10:38:43 +02:00
?>
2023-04-21 16:40:46 +02:00
<?php wp_nonce_field( 'activitypub-followers-list', '_apnonce' ); ?>
2019-08-21 10:38:43 +02:00
</form>
</div>