wordpress-activitypub/templates/followers-list.php

17 lines
618 B
PHP
Raw Normal View History

2023-05-19 15:21:49 +02:00
<?php $followes_table = new \Activitypub\Table\Followers(); ?>
2019-08-21 10:38:43 +02:00
<div class="wrap">
<h1><?php \esc_html_e( 'Followers', 'activitypub' ); ?></h1>
2019-08-21 10:38:43 +02:00
2022-12-02 20:44:56 +01:00
<?php // translators: ?>
<p><?php \printf( \esc_html__( 'You currently have %s followers.', 'activitypub' ), \esc_attr( \Activitypub\Collection\Followers::count_followers( \get_current_user_id() ) ) ); ?></p>
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
2023-05-19 15:21:49 +02:00
$followes_table->prepare_items();
$followes_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>