暫無描述

template-canvas.php 594B

1234567891011121314151617181920212223242526272829
  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. ?>
  13. <!DOCTYPE html>
  14. <html <?php language_attributes(); ?>>
  15. <head>
  16. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  17. <?php wp_head(); ?>
  18. </head>
  19. <body <?php body_class(); ?>>
  20. <?php wp_body_open(); ?>
  21. <?php echo $template_html; // phpcs:ignore WordPress.Security.EscapeOutput ?>
  22. <?php wp_footer(); ?>
  23. </body>
  24. </html>