-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
47 lines (41 loc) · 1.24 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
<!DOCTYPE html>
<html <?php language_attributes() ?>>
<head>
<meta charset="utf-8">
<?php wp_head() ?>
</head>
<body <?php body_class() ?>>
<div class="site main-background">
<header class="section section--solid header">
<div class="section__center header__center">
<a href="<?php echo home_url() ?>" class="logo"><?php bloginfo() ?></a>
<?php
$menu_args = array(
'theme_location' => 'main-menu',
'container' => false,
'fallback_cb' => 'showcase_fallback_menu',
'menu_class' => 'main-menu'
);
/**
* Allows the arguments for the main menu to be changed by modules.
*
* @param array $menu_args The arguments for the menu.
* @return array
*/
$menu_args = apply_filters( 'showcase.main_menu_args', $menu_args );
wp_nav_menu( $menu_args );
?>
</div>
</header>
<?php if( showcase_get_title() ): ?>
<header class="section page-header">
<div class="section__center page-header__center">
<h1><?php echo esc_html( showcase_get_title() ) ?></h1>
<?php if ( function_exists('yoast_breadcrumb') ): ?>
<div class="breadcrumbs">
<?php yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' ) ?>
</div>
<?php endif ?>
</div>
</header>
<?php endif ?>