template-canvas.php 592 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Template canvas file to render the current 'wp_template'.
  4. *
  5. * @package WordPress
  6. */
  7. /*
  8. * Get the template HTML.
  9. * This needs to run before <head> so that blocks can add scripts and styles in wp_head().
  10. */
  11. $template_html = get_the_block_template_html();
  12. ?><!DOCTYPE html>
  13. <html <?php language_attributes(); ?>>
  14. <head>
  15. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  16. <?php wp_head(); ?>
  17. </head>
  18. <body <?php body_class(); ?>>
  19. <?php wp_body_open(); ?>
  20. <?php echo $template_html; // phpcs:ignore WordPress.Security.EscapeOutput ?>
  21. <?php wp_footer(); ?>
  22. </body>
  23. </html>