chore: complete M1.1 runtime QA and release packaging
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Header — semantic, accessible, RTL/LTR safe.
|
||||
*
|
||||
* @package XShop
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$dark = xshop_is_dark_mode();
|
||||
?><!doctype html>
|
||||
<html <?php language_attributes(); ?> data-theme="<?php echo $dark ? 'dark' : 'light'; ?>">
|
||||
<head>
|
||||
<meta charset="<?php bloginfo('charset'); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<a class="xshop-skip-link" href="#xshop-main"><?php esc_html_e('Skip to content', 'xshop'); ?></a>
|
||||
|
||||
<header class="xshop-header" role="banner">
|
||||
<?php get_template_part('template-parts/components/site-header'); ?>
|
||||
</header>
|
||||
|
||||
<main id="xshop-main" class="xshop-main" tabindex="-1">
|
||||
<?php
|
||||
// Breadcrumbs on all but front page and 404; Woo pages get Woo-aware breadcrumbs.
|
||||
if (!is_front_page() && !is_404()) {
|
||||
echo '<div class="xshop-container" style="margin-block-end:var(--xshop-space-4)">';
|
||||
get_template_part('template-parts/components/breadcrumbs');
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user