-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
50 lines (47 loc) · 2.23 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
<?php
use AtypicTheme\Helpers\OG_Controller;
require_once get_template_directory() .
"/inc/helpers/open_graph_tags_controller.php";
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo("charset"); ?>">
<meta name="description" content="<?php bloginfo("description"); ?>" >
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
OG_Controller::display_open_graph_meta_tags();
wp_head();
?>
</head>
<body class="h-full w-full flex flex-col justify-center atypic-background-pattern-blue">
<header class="min-h-[15vh] z-10 sticky top-0 border-solid border-t-0 border-r-0 border-l-0 border-b-4 atypic-header bg-white w-full p-3 sm:p-5 flex items-center justify-between">
<div class="flex gap-1 flex-wrap justify-center sm:gap-3">
<div class="w-12 sm:w-20 flex">
<?php if (has_custom_logo()) {
the_custom_logo();
} else {
?>
<a href="/">
<img alt="Site logo" class="invert" src="<?php echo get_template_directory_uri(); ?>/assets/images/head_white.png">
</a>
<?php
} ?>
</div>
<a class="justify-end self-end text-left text-4xl sm:text-6xl text-black underline decoration-dotted decoration-atypic-primary" href="<?php echo home_url(); ?>">
<h1 class="font-title"><?php echo get_bloginfo(
"name",
); ?></h1>
</a>
</div>
<div class="skew-x-[-5deg] inline-block group hover:block self-center">
<span class="bg-black text-atypic-primary dashicons dashicons-menu"></span>
<?php wp_nav_menu([
"theme_location" => "main_menu",
"container" => "nav",
"menu_class" => "atypic-nav-menu-top right-0",
"container_class" => "atypic-nav-menu-top right-0",
]); ?>
</div>
</header>