Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / themes / carmag / header.php
diff options
context:
space:
mode:
1 files changed, 67 insertions, 0 deletions
-rw-r--r--wp-content/themes/carmag/header.php67
diff --git a/wp-content/themes/carmag/header.php b/wp-content/themes/carmag/header.php
new file mode 100644
index 0000000..4a70e5f
--- /dev/null
+++ b/wp-content/themes/carmag/header.php
@@ -0,0 +1,67 @@
+<?php
+/**
+ * The header for our theme.
+ *
+ * This is the template that displays all of the <head> section and everything up until <div id="content">
+ *
+ * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
+ *
+ * @package DevriX_Starter
+ */
+
+?><!DOCTYPE html>
+<html <?php language_attributes(); ?>>
+<head>
+<meta charset="<?php bloginfo( 'charset' ); ?>">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+
+<?php // DXCheck is used to monitor our sites with our internal tools. Remove this if you don't need it ?>
+<meta property="dxcheck:online" content="true" />
+
+<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(); ?>>
+<div id="page" class="site">
+ <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'dxstarter' ); ?></a>
+
+ <header id="masthead" class="site-header">
+ <div class="row">
+ <div class="columns small-12">
+ <div class="site-header-inner">
+ <div class="site-branding">
+ <?php if ( is_front_page() || is_home() ) : ?>
+ <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
+ <?php else : ?>
+ <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
+ <?php
+ endif;
+
+ $description = get_bloginfo( 'description', 'display' );
+
+ if ( $description || is_customize_preview() ) : ?>
+ <p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
+ <?php
+ endif; ?>
+ </div><!-- .site-branding -->
+
+ <?php if ( has_nav_menu( 'primary-menu' ) ) : ?>
+ <nav id="site-navigation" class="main-navigation">
+ <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">
+ <i class="fa fa-reorder"></i>
+ </button>
+ <div class="menu-primary-container">
+ <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
+ </div><!-- .menu-primary-container -->
+ </nav><!-- #site-navigation -->
+ <?php endif; ?>
+
+ </div><!-- .site-header-inner -->
+ </div><!-- /columns -->
+ </div><!-- /row -->
+ </header><!-- #site-header -->
+
+ <div id="content" class="site-content">