<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title><?php echo esc_html( JB_App::config( 'app_name' ) ); ?> — Admin</title>
	<?php
	if ( function_exists( 'logistica_print_favicon' ) ) {
		logistica_print_favicon();
	}
	wp_print_styles();
	?>
</head>
<body <?php body_class(); ?>>
	<div id="jb-admin" class="jb-admin-root">
		<header class="jb-admin-header">
			<h1><?php echo esc_html( JB_App::config( 'app_name' ) ); ?></h1>
			<nav>
				<a href="<?php echo esc_url( home_url( '/' ) ); ?>">Panel operaciones</a>
				<a href="<?php echo esc_url( add_query_arg( 'config', '1', home_url( '/' ) ) ); ?>">Configuración</a>
			</nav>
		</header>
		<main class="jb-admin-content">
			<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
		</main>
	</div>
	<?php wp_print_scripts(); ?>
</body>
</html>
