-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
77 lines (63 loc) · 3.21 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <section id="breadcrumb">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage n00b
* @since 1.0
* @version 1.0
*/
$container_type = n00b_get_option('n00b_options', 'container_type', get_queried_object_id(), array('metabox_prefix' => N00B_META_PREFIX));
$container_class = n00b_container_class($container_type);
?><!DOCTYPE html>
<html xmlns="<?php echo N00B_PROTOCAL; ?>://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="Copyright" content="Copyright © <?php bloginfo('name'); ?> <?php echo date('Y'); ?>. All Rights Reserved.">
<title><?php wp_title('•', true, 'right'); bloginfo('name'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php wp_title(); echo ' | '; bloginfo( 'description' ); ?>" />
<meta name="author" content="<?php bloginfo('name'); ?>">
<link rel="icon" href="<?php //echo CHILD_URL; ?>/favicon.ico" type="image/x-icon" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?>" href="<?php bloginfo('atom_url'); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); // do not delete this line ?>
</head>
<body <?php body_class(); ?>>
<!-- START wrapper -->
<div class="wrapper <?php echo $container_class; ?>">
<!-- START header -->
<header id="header" class="header mb-4" role="banner">
<?php if (has_nav_menu('main-menu')) { ?>
<nav class="navbar navbar-expand-md n00b-menu border-bottom pl-0 pr-0" role="navigation">
<div class="container-fluid">
<div class="navbar-brand logo">
<?php if (!has_custom_logo()) { ?>
<a class="" href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home">
<img height="30" src="<?php echo get_template_directory_uri(); ?>/assets/images/logo.png" alt="<?php bloginfo('name'); ?>">
</a>
<?php } else {
the_custom_logo();
} ?>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu-container" aria-controls="main-menu-container" aria-expanded="false" aria-label="<?php _e('Toggle navigation', 'n00b'); ?>">
<span class="navbar-toggler-icon"></span>
</button>
<?php n00b_main_nav(); ?>
</div>
</nav>
<?php } ?>
</header>
<!-- END #header -->
<!-- START main -->
<main role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">