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