This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·83 lines (59 loc) · 2.51 KB
/
header.php
File metadata and controls
executable file
·83 lines (59 loc) · 2.51 KB
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
<?php
/**
* The header for our theme.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Snazzy
* @link https://themebeans.com/themes/snazzy
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<div id="page" class="hfeed site page-container clearfix">
<?php if ( ! is_404() ) : ?>
<div id="content" class="site-content content-wrap">
<header id="masthead" class="site-header">
<?php snazzy_site_logo(); ?>
<?php
// Add site description to the header.
$description = get_bloginfo( 'description', 'display' );
if ( $description || is_customize_preview() ) :
printf( '<p class="site-description">%s</p>', esc_html( $description ) );
endif;
?>
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<nav id="site-navigation" class="main-navigation" role="navigation">
<h6 class="widget-title"><?php esc_html_e( 'Menu', 'snazzy' ); ?></h6>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>
<div class="mobile-menu-toggle"><span></span><span></span><span></span></div>
<?php endif; ?>
<?php
// Retrieve the portfolio fitler, only for the Portfolio template.
if ( snazzy_is_frontpage() || is_post_type_archive( 'portfolio' ) ) {
get_template_part( 'template-parts/portfolio-filter' );
}
get_sidebar();
?>
<div class="site-info">
<div class="copyright">© <?php echo esc_html( date( 'Y' ) ); ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo bloginfo( 'name' ); ?>" rel="home"><?php bloginfo( $name ); ?></a></div>
<?php $visibility = ( false === get_theme_mod( 'powered_by_snazzy' ) ) ? 'hidden' : ''; ?>
<a href="https://themebeans.com/themes/snazzy/" class="powered-by-snazzy <?php echo esc_attr( $visibility ); ?>"><?php printf( esc_html__( 'Powered by %s', 'snazzy' ), 'Snazzy' ); ?></a>
<?php $visibility = ( false === get_theme_mod( 'powered_by_wordpress' ) ) ? 'hidden' : ''; ?>
<a href="http://wordpress.org/" class="powered-by-wordpress <?php echo esc_attr( $visibility ); ?>"><?php printf( esc_html__( '& %s', 'snazzy' ), 'WordPress' ); ?></a>
</div>
</header>
<?php
endif;