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

29 lines
821 B
PHP
Raw Normal View History

2023-05-31 11:04:29 +02:00
<?php
\load_template(
__DIR__ . '/admin-header.php',
2023-05-31 11:04:29 +02:00
true,
array(
'settings' => '',
'welcome' => '',
'followers' => 'active',
)
);
$table = new \Activitypub\Table\Followers();
$follower_count = $table->get_user_count();
// translators: The follower count.
$followers_template = _n( 'Your blog profile currently has %s follower.', 'Your blog profile currently has %s followers.', $follower_count, 'activitypub' );
2023-05-31 11:04:29 +02:00
?>
<div class="wrap activitypub-followers-page">
<p><?php \printf( \esc_html( $followers_template ), \esc_attr( $follower_count ) ); ?></p>
2023-05-31 11:04:29 +02:00
<form method="get">
<input type="hidden" name="page" value="activitypub" />
<input type="hidden" name="tab" value="followers" />
<?php
2023-07-07 13:43:12 +02:00
$table->prepare_items();
$table->search_box( 'Search', 'search' );
2023-07-07 13:43:12 +02:00
$table->display();
2023-05-31 11:04:29 +02:00
?>
</form>
</div>