<?php
/**
 * Full-page HTML template used by the Render_Pattern ability.
 *
 * Available variables (injected by the calling execute_callback before require):
 *
 * @var array<string, mixed> $args {
 *     @type string $html Rendered block HTML from do_blocks().
 * }
 * @package rtCamp\Publishio\Modules\MCP\Abilities\Patterns
 */

declare(strict_types = 1);

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>

<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
	<?php
	echo $args['html']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- sanitised by do_blocks()
	?>
	<?php wp_footer(); ?>
</body>

</html>
