2024-10-19 16:46:50 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Template for the header and navigation of the admin pages.
|
|
|
|
*
|
2024-12-05 16:16:30 +01:00
|
|
|
* @package Event_Bridge_For_ActivityPub
|
2024-10-19 16:46:50 +02:00
|
|
|
*/
|
|
|
|
|
2024-11-16 19:38:28 +01:00
|
|
|
// Exit if accessed directly.
|
|
|
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
|
|
|
|
2024-10-19 16:46:50 +02:00
|
|
|
/* @var array $args Template arguments. */
|
|
|
|
$args = wp_parse_args(
|
|
|
|
$args,
|
|
|
|
array(
|
|
|
|
'welcome' => '',
|
|
|
|
'settings' => '',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
|
2024-12-05 16:16:30 +01:00
|
|
|
<div class="event-bridge-for-activitypub-settings-header">
|
|
|
|
<div class="event-bridge-for-activitypub-settings-title-section">
|
|
|
|
<h1><?php \esc_html_e( 'Event Bridge for ActivityPub', 'event-bridge-for-activitypub' ); ?></h1>
|
2024-10-19 16:46:50 +02:00
|
|
|
</div>
|
|
|
|
|
2024-12-05 16:16:30 +01:00
|
|
|
<nav class="event-bridge-for-activitypub-settings-tabs-wrapper" aria-label="<?php \esc_attr_e( 'Secondary menu', 'event-bridge-for-activitypub' ); ?>">
|
|
|
|
<a href="<?php echo \esc_url( admin_url( 'options-general.php?page=event-bridge-for-activitypub' ) ); ?>" class="event-bridge-for-activitypub-settings-tab <?php echo \esc_attr( $args['welcome'] ); ?>">
|
|
|
|
<?php \esc_html_e( 'Welcome', 'event-bridge-for-activitypub' ); ?>
|
2024-10-19 16:46:50 +02:00
|
|
|
</a>
|
|
|
|
|
2024-12-05 16:16:30 +01:00
|
|
|
<a href="<?php echo \esc_url( admin_url( 'options-general.php?page=event-bridge-for-activitypub&tab=settings' ) ); ?>" class="event-bridge-for-activitypub-settings-tab <?php echo \esc_attr( $args['settings'] ); ?>">
|
|
|
|
<?php \esc_html_e( 'Settings', 'event-bridge-for-activitypub' ); ?>
|
2024-10-19 16:46:50 +02:00
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<hr class="wp-header-end">
|