-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
91 lines (76 loc) · 3.19 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
82
83
84
85
86
87
88
89
90
91
<!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 antialiased' ); ?>>
<?php do_action( 'tailpress_site_before' ); ?>
<div id="page" class="min-h-screen flex flex-col">
<?php do_action( 'tailpress_header' ); ?>
<header>
<div class="mx-auto container">
<div class="lg:flex lg:justify-between lg:items-center border-b py-6">
<div class="flex justify-between items-center">
<div>
<?php if ( has_custom_logo() ) { ?>
<?php the_custom_logo(); ?>
<?php } else { ?>
<a href="<?php echo get_bloginfo( 'url' ); ?>" class="font-extrabold text-lg uppercase">
<?php echo get_bloginfo( 'name' ); ?>
</a>
<p class="text-sm font-light text-gray-600">
<?php echo get_bloginfo( 'description' ); ?>
</p>
<?php } ?>
</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>
</a>
</div>
</div>
<?php
wp_nav_menu(
array(
'container_id' => 'primary-menu',
'container_class' => 'hidden bg-gray-100 mt-4 p-4 lg:mt-0 lg:p-0 lg:bg-transparent lg:block',
'menu_class' => 'lg:flex lg:-mx-4',
'theme_location' => 'primary',
'li_class' => 'lg:mx-4',
'fallback_cb' => false,
)
);
?>
</div>
</div>
</header>
<div id="content" class="site-content flex-grow">
<?php if ( is_front_page() ) { ?>
<!-- Start introduction -->
<div class="container mx-auto my-12 border-b pb-12">
<h1 class="font-bold text-lg text-secondary uppercase">TailPress</h1>
<h2 class="text-3xl lg:text-7xl tracking-tight font-extrabold my-4">Rapidly build your WordPress theme
with <a href="https://tailwindcss.com" class="text-primary">Tailwind CSS</a>.</h2>
<p class="max-w-screen-lg text-gray-700 text-lg font-medium mb-10">TailPress 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="https://github.com/jeffreyvr/tailpress"
class="w-full sm:w-auto flex-none bg-gray-900 text-white text-lg leading-6 font-semibold py-3 px-6 border border-transparent rounded-xl focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-gray-900 focus:outline-none transition-colors duration-200">View
on Github</a>
</div>
<!-- End introduction -->
<?php } ?>
<?php do_action( 'tailpress_content_start' ); ?>
<main>