
* Blockbase: Change references to gutenberg_block_template_part, to block_template_part * use an if statement to determine which function to call
22 lines
595 B
PHP
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>
|