refactor
This commit is contained in:
@@ -39,16 +39,16 @@ if ( ! $blog_url ) {
|
||||
}
|
||||
|
||||
$test1_header_action_label = __( 'Корзина', 'twentytwentyfour' );
|
||||
?><!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( 'test1-shared-shell test1-shared-blog-single-page' ); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<?php require get_theme_file_path( 'template-parts/test1-shared-header.php' ); ?>
|
||||
|
||||
$test1_header_args = array(
|
||||
'body_class' => 'test1-shared-shell test1-shared-blog-single-page',
|
||||
'header_action_url' => $test1_header_action_url,
|
||||
'header_action_label' => $test1_header_action_label,
|
||||
'header_mode' => $test1_header_mode,
|
||||
);
|
||||
|
||||
get_header( 'test1', $test1_header_args );
|
||||
?>
|
||||
|
||||
<main class="site-main" role="main">
|
||||
<div class="container">
|
||||
@@ -97,7 +97,5 @@ $test1_header_action_label = __( 'Корзина', 'twentytwentyfour' );
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php require get_theme_file_path( 'template-parts/test1-shared-footer.php' ); ?>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
get_footer( 'test1' );
|
||||
|
||||
Reference in New Issue
Block a user