2023-05-31 11:04:29 +02:00
|
|
|
<?php
|
|
|
|
\load_template(
|
2023-07-21 14:52:18 +02:00
|
|
|
__DIR__ . '/admin-header.php',
|
2023-05-31 11:04:29 +02:00
|
|
|
true,
|
|
|
|
array(
|
|
|
|
'settings' => '',
|
|
|
|
'welcome' => '',
|
|
|
|
'followers' => 'active',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
|
2023-07-21 14:52:18 +02:00
|
|
|
<div class="wrap activitypub-followers-page">
|
2023-05-31 11:04:29 +02:00
|
|
|
<h1><?php \esc_html_e( 'Followers', 'activitypub' ); ?></h1>
|
|
|
|
|
2023-07-07 13:43:12 +02:00
|
|
|
<?php $table = new \Activitypub\Table\Followers(); ?>
|
2023-05-31 11:04:29 +02:00
|
|
|
|
2023-05-31 13:51:23 +02:00
|
|
|
<?php // translators: The follower count. ?>
|
2023-07-07 13:43:12 +02:00
|
|
|
<p><?php \printf( \esc_html__( 'You currently have %s followers.', 'activitypub' ), \esc_attr( $table->get_user_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->display();
|
2023-05-31 11:04:29 +02:00
|
|
|
?>
|
|
|
|
<?php wp_nonce_field( 'activitypub-followers-list', '_apnonce' ); ?>
|
|
|
|
</form>
|
|
|
|
</div>
|