-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
55 lines (50 loc) · 1.93 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package coffeeshop
*/
?>
<!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">
<meta name="description" content="Coffe Shop Wordpress Theme">
<meta name="keywords" content="Wordpress theme, Tailwind, Coffee shop">
<meta name="author" content="Aatmane Oulmouden">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site">
<header id="header" class="bg-cs-primary py-6 fixed top-0 left-0 w-full z-10">
<div class="container mx-auto">
<div class="flex justify-between items-center">
<div class="logo">
<a href="/" class="text-2xl font-bold font-montserrat text-white">
Coffee Shop
</a>
</div>
<nav class="menu">
<div id="menu-toggler" class="block md:hidden">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" class="w-h-7 h-7">
<path fill-rule="evenodd" d="M3 6.75A.75.75 0 013.75 6h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 6.75zM3 12a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 12zm0 5.25a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75z" clip-rule="evenodd" />
</svg>
</div>
<?php wp_nav_menu([
'theme_location' => 'main-menu',
'container' => false,
'menu_class' => 'menu-list hidden text-center absolute top-full left-0 right-0 bg-cs-primary py-6 md:relative md:flex md:gap-7 md:py-0 md:bg-transparent',
'menu_id' => 'menu',
'add_li_class' => 'menu-item',
]); ?>
</nav>
</div>
</div>
</header>