wordpress-event-bridge-for-.../templates/admin-header.php

22 lines
997 B
PHP
Raw Permalink Normal View History

2024-07-17 16:17:54 +02:00
<!-- TODO css classes?
currently reusing activitypub classes which is kinda nice, because it has a consistent theme then, but also it cloud break if activitypub changes something
-->
<div class="activitypub-settings-header">
<div class="activitypub-settings-title-section">
2024-07-18 16:23:34 +02:00
<h1><?php \esc_html_e( 'Activitypub Events Plugin', $args['slug'] ); ?></h1>
2024-07-17 16:17:54 +02:00
</div>
2024-07-18 16:23:34 +02:00
<nav class="activitypub-settings-tabs-wrapper" aria-label="<?php \esc_attr_e( 'Secondary menu', $args['slug'] ); ?>">
2024-07-17 16:17:54 +02:00
<!-- todo loop through settings pages of Extractors -->
2024-07-18 16:23:34 +02:00
<?php foreach ( $args['options'] as $tabslug => $plugin ) { ?>
<a href="<?php echo \esc_url_raw( admin_url( 'options-general.php?page='. $args['slug'] .'&tab=' . $tabslug ) ); ?>" class="activitypub-settings-tab <?php echo \esc_attr( $plugin['active'] ? 'active' : '' ); ?>">
<?php \esc_html_e( $plugin['name'], $args['slug'] ); ?> <!-- Todo better name handling -->
2024-07-17 16:17:54 +02:00
</a>
<?php } ?>
</nav>
</div>
<hr class="wp-header-end">