PluginProbe
ActivityPub / 5.7.0
ActivityPub v5.7.0
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / templates / admin-header.php

admin-header.php in ActivityPub 5.7.0, at templates/admin-header.php

35 lines 893 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin header template.
4 *
5 * @package Activitypub
6 */
7
8 /* @var array $args Template arguments. */
9 $args = wp_parse_args( $args ?? array() );
10 ?>
11 <div class="activitypub-settings-header">
12 <div class="activitypub-settings-title-section">
13 <h1><?php \esc_html_e( 'ActivityPub', 'activitypub' ); ?></h1>
14 </div>
15
16 <nav class="activitypub-settings-tabs-wrapper" aria-label="<?php \esc_attr_e( 'Secondary menu', 'activitypub' ); ?>">
17 <?php
18 foreach ( $args['tabs'] as $slug => $label ) :
19 $url = add_query_arg(
20 array( 'tab' => 'welcome' !== $slug ? $slug : false ),
21 \admin_url( 'options-general.php?page=activitypub' )
22 );
23 ?>
24
25 <a href="<?php echo \esc_url( $url ); ?>" class="activitypub-settings-tab <?php echo \esc_attr( $args[ $slug ] ); ?>">
26 <?php echo \esc_html( $label ); ?>
27 </a>
28
29 <?php
30 endforeach;
31 ?>
32 </nav>
33 </div>
34 <hr class="wp-header-end">
35