# friends/2.7.5/templates/admin/settings-header.php

Friends, version 2.7.5. 69 lines.

- Page: https://pluginprobe.com/plugins/friends/2.7.5/code/templates/admin/settings-header.php
- Raw: https://pluginprobe.com/plugins/friends/2.7.5/raw/templates/admin/settings-header.php
- Modified: 2023-01-04T13:24:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/friends/2.7.5/code/templates/admin/settings-header.php#L10-L20`.

```php
<?php
/**
 * This template contains the Friends Settings Header.
 *
 * @package Friends
 */

if ( empty( $args['menu'] ) ) {
	$args['menu'] = apply_filters(
		'friends_admin_tabs',
		array(
			__( 'Welcome', 'friends' )              => 'friends',
			__( 'Settings' )                        => 'friends-settings',  // phpcs:ignore WordPress.WP.I18n.MissingArgDomain
			__( 'Notification Manager', 'friends' ) => 'friends-notification-manager',
		)
	);
}

if ( empty( $args['active'] ) ) {
	$args['active'] = false;
}

?>
<div class="wrap">
	<div class="friends-header">
		<div class="friends-title-section">
			<h1>
				<?php echo esc_html( $args['title'] ); ?>
			</h1>
		</div>
		<?php
		if ( ! empty( $args['menu'] ) ) {
			?>
			<nav class="friends-tabs-wrapper hide-if-no-js" aria-label="<?php /* phpcs:ignore WordPress.WP.I18n.MissingArgDomain */ esc_html_e( 'Secondary menu' ); ?>">
			<?php

			foreach ( $args['menu'] as $label => $page ) {
				if ( ! $page ) {
					?>
					<span class="friends-tab">
					<?php echo esc_html( $label ); ?>
					</span>
					<?php
					continue;
				}
				$url = admin_url( 'admin.php?page=' . $page );
				if ( $page === $args['active'] ) {
					?>
					<span class="friends-tab active" aria-current="true">
					<?php echo esc_html( $label ); ?>
					</span>
					<?php
				} else {
					?>
					<a href="<?php echo esc_attr( $url ); ?>" class="friends-tab">
					<?php echo esc_html( $label ); ?>
					</a>
					<?php
				}
			}
			?>
		</nav>
			<?php
		}
		?>
	</div>
	<div class="wp-header-end"></div>
	<div class="friends-body <?php echo esc_attr( strtok( $args['active'], '&' ) ); ?>">

```
