WowPress-Tailwind/theme/header.php

45 lines
1.2 KiB
PHP
Raw Normal View History

2024-04-15 16:00:49 +02:00
<?php
/**
* The header for our theme
*
* This is the template that displays the `head` element and everything up
* until the `#content` element.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WowPress
*/
?>
<!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">
<script src="<?= get_template_directory_uri() ?>/plugins/alpine.min.js" defer></script>
<?php wp_head(); ?>
</head>
<body <?php body_class('dark'); ?>>
<?php wp_body_open(); ?>
<?php get_template_part('template-parts/layout/header', 'content'); ?>
<div class="content-wrapper">
2024-04-16 15:25:22 +02:00
<?php if (is_active_sidebar('top-widgets') && get_sidebar_status('top') ) : ?>
2024-04-15 16:00:49 +02:00
<div class="widget-wrapper top-widgets">
2024-04-16 15:25:22 +02:00
<?php dynamic_sidebar('top-widgets'); ?>
2024-04-15 16:00:49 +02:00
</div>
2024-04-16 15:25:22 +02:00
<?php endif; ?>
<?php if (is_active_sidebar('left-widgets') && get_sidebar_status('left')) : ?>
2024-04-15 16:00:49 +02:00
<div class="widget-wrapper left-widgets">
2024-04-16 15:25:22 +02:00
<?php dynamic_sidebar('left-widgets'); ?>
2024-04-15 16:00:49 +02:00
</div>
2024-04-16 15:25:22 +02:00
<?php endif; ?>
2024-04-15 16:00:49 +02:00
<div id="content" class="content">