-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
81 lines (67 loc) · 3.25 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class('bg-white text-gray-900 bg-gray-50 antialiased'); ?>>
<?php do_action('themealfa_site_before'); ?>
<div id="page" class="flex flex-col min-h-screen">
<?php do_action('themealfa_header'); ?>
<header class="bg-white shadow-xl">
<div class="container max-w-7xl mx-auto">
<div class="py-6 lg:flex lg:justify-between lg:items-center">
<div class="flex items-center justify-between">
<div>
<div class="text-lg uppercase">
<a href="<?php echo esc_url(home_url()); ?>" class="text-lg font-extrabold uppercase">
<?php echo get_bloginfo('name'); ?>
</a>
</div>
</div>
<div class="lg:hidden">
<a href="#" aria-label="Toggle navigation" id="primary-menu-toggle">
<!-- <svg viewBox="0 0 20 20" class="inline-block w-6 h-6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="currentColor" fill-rule="evenodd">
<g id="icon-shape">
<path d="M0,3 L20,3 L20,5 L0,5 L0,3 Z M0,9 L20,9 L20,11 L0,11 L0,9 Z M0,15 L20,15 L20,17 L0,17 L0,15 Z" id="Combined-Shape"></path>
</g>
</g>
</svg> -->
<svg xmlns="http://www.w3.org/2000/svg" class="inline-block w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
</svg>
</a>
</div>
</div>
<?php
wp_nav_menu(
array(
'container_id' => 'primary-menu',
'container_class' => 'hidden bg-gray-100 rounded-lg mt-4 p-4 lg:mt-0 lg:p-0 lg:bg-transparent lg:block',
'menu_class' => 'lg:flex lg:-mx-4 space-y-3 lg:space-y-0',
'theme_location' => 'primary',
'li_class' => 'lg:mx-6 font-bold',
'fallback_cb' => false,
)
);
?>
</div>
</div>
</header>
<div id="content" class="flex-grow site-content">
<!-- Start introduction -->
<?php if (is_front_page()) : ?>
<div class="container pb-12 mx-auto my-12 border-b">
<h1 class="text-lg font-bold uppercase text-secondary">themealfa</h1>
<h2 class="my-4 text-3xl font-extrabold tracking-tight lg:text-7xl">Rapidly build your WordPress theme withTailwindCSS and Laravel Mix.</h2>
<p class="max-w-screen-lg mb-10 text-lg font-medium text-gray-700">themealfa is your go-to starting point for developing WordPress themes with TailwindCSS and comes with basic block-editor support out of the box.</p>
<a href="#" class="flex-none w-full px-6 py-3 text-lg font-semibold leading-6 text-white transition-colors duration-200 bg-gray-900 border border-transparent sm:w-auto rounded-xl focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-gray-900 focus:outline-none">View on Github</a>
</div>
<!-- End introduction -->
<?php endif; ?>
<?php do_action('themealfa_content_start'); ?>
<main>