2023-10-22 22:20:53 +00:00
|
|
|
<?php
|
2024-10-09 12:44:17 +00:00
|
|
|
/**
|
|
|
|
* Admin header template.
|
|
|
|
*
|
|
|
|
* @package Activitypub
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* @var array $args Template arguments. */
|
|
|
|
$args = wp_parse_args(
|
|
|
|
$args,
|
|
|
|
array(
|
|
|
|
'welcome' => '',
|
|
|
|
'settings' => '',
|
|
|
|
'blog-profile' => '',
|
|
|
|
'followers' => '',
|
|
|
|
)
|
|
|
|
);
|
2023-10-22 22:20:53 +00:00
|
|
|
?>
|
2022-12-19 23:08:11 +00:00
|
|
|
<div class="activitypub-settings-header">
|
|
|
|
<div class="activitypub-settings-title-section">
|
|
|
|
<h1><?php \esc_html_e( 'ActivityPub', 'activitypub' ); ?></h1>
|
|
|
|
</div>
|
|
|
|
|
2023-10-22 22:20:53 +00:00
|
|
|
<nav class="activitypub-settings-tabs-wrapper" aria-label="<?php \esc_attr_e( 'Secondary menu', 'activitypub' ); ?>">
|
2024-10-09 12:44:17 +00:00
|
|
|
<a href="<?php echo \esc_url( admin_url( 'options-general.php?page=activitypub' ) ); ?>" class="activitypub-settings-tab <?php echo \esc_attr( $args['welcome'] ); ?>">
|
2022-12-19 23:08:11 +00:00
|
|
|
<?php \esc_html_e( 'Welcome', 'activitypub' ); ?>
|
|
|
|
</a>
|
|
|
|
|
2024-10-09 12:44:17 +00:00
|
|
|
<a href="<?php echo \esc_url( admin_url( 'options-general.php?page=activitypub&tab=settings' ) ); ?>" class="activitypub-settings-tab <?php echo \esc_attr( $args['settings'] ); ?>">
|
2022-12-19 23:08:11 +00:00
|
|
|
<?php \esc_html_e( 'Settings', 'activitypub' ); ?>
|
|
|
|
</a>
|
2023-10-22 22:20:53 +00:00
|
|
|
|
|
|
|
<?php if ( ! \Activitypub\is_user_disabled( \Activitypub\Collection\Users::BLOG_USER_ID ) ) : ?>
|
|
|
|
|
2024-10-09 12:44:17 +00:00
|
|
|
<a href="<?php echo \esc_url( admin_url( 'options-general.php?page=activitypub&tab=blog-profile' ) ); ?>" class="activitypub-settings-tab <?php echo \esc_attr( $args['blog-profile'] ); ?>">
|
|
|
|
<?php \esc_html_e( 'Blog-Profile', 'activitypub' ); ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href="<?php echo \esc_url( admin_url( 'options-general.php?page=activitypub&tab=followers' ) ); ?>" class="activitypub-settings-tab <?php echo \esc_attr( $args['followers'] ); ?>">
|
2023-10-22 22:20:53 +00:00
|
|
|
<?php \esc_html_e( 'Followers', 'activitypub' ); ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<?php endif; ?>
|
2022-12-19 23:08:11 +00:00
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<hr class="wp-header-end">
|