39 lines
968 B
PHP
39 lines
968 B
PHP
<?php
|
|
/**
|
|
* Custom header for the test1 main page template.
|
|
*
|
|
* @package Twenty_Twenty_Four
|
|
*/
|
|
|
|
$args = wp_parse_args(
|
|
is_array( $args ) ? $args : array(),
|
|
array(
|
|
'body_class' => 'test1-landing-page',
|
|
'header_mode' => 'cart',
|
|
'header_action_url' => '',
|
|
'header_action_label' => '',
|
|
)
|
|
);
|
|
|
|
$body_class = $args['body_class'];
|
|
|
|
if ( is_string( $body_class ) ) {
|
|
$body_class = trim( $body_class );
|
|
}
|
|
|
|
?><!DOCTYPE html>
|
|
<html <?php language_attributes(); ?>>
|
|
<head>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<?php wp_head(); ?>
|
|
</head>
|
|
<body <?php body_class( $body_class ); ?>>
|
|
<?php wp_body_open(); ?>
|
|
<?php
|
|
$test1_header_mode = $args['header_mode'];
|
|
$test1_header_action_url = $args['header_action_url'];
|
|
$test1_header_action_label = $args['header_action_label'];
|
|
require get_theme_file_path( 'template-parts/test1-shared-header.php' );
|
|
?>
|