themes-wordpress/blockbase/header.php
Ben Dwyer 2bd5b5ecc8
Blockbase: Change references to gutenberg_block_template_part, to block_template_part (#5031)
* Blockbase: Change references to gutenberg_block_template_part, to block_template_part

* use an if statement to determine which function to call
2021-11-17 11:29:22 +00:00

22 lines
595 B
PHP

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="profile" href="https://gmpg.org/xfn/11" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div class="wp-site-blocks">
<header class="wp-block-template-part">
<?php
if ( function_exists( 'block_template_part' ) ) {
echo block_template_part( 'header' );
} else {
echo gutenberg_block_template_part( 'header' );
}
?>
</header>