wordpress-activitypub-event.../templates/status.php
André Menrath 127df329b6
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 38s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m10s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m12s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m4s
improved settings page layout
2024-10-19 13:06:01 +02:00

32 lines
788 B
PHP

<?php
/**
* Status page for the ActivityPub Event Bridge.
*
* @package ActivityPub_Event_Bridge
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
use ActivityPub_Event_Bridge\Setup;
\load_template(
__DIR__ . '/admin-header.php',
true,
array(
'status' => 'active',
)
);
$active_event_plugins = Setup::get_instance()->get_active_event_plugins();
?>
<div class="activitypub-event-bridge-settings activitypub-event-bridge-settings-page hide-if-no-js">
<div class="box">
<h2><?php \esc_html_e( 'Detected Event Plugins', 'activitypub-event-bridge' ); ?></h2>
<?php foreach ( $active_event_plugins as $active_event_plugin ) { ?>
<h3> <?php echo esc_html( $active_event_plugin->get_plugin_name() ); ?> </h3>
<?php } ?>
</div>
</div>