-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathheader.php
More file actions
61 lines (55 loc) · 3.28 KB
/
header.php
File metadata and controls
61 lines (55 loc) · 3.28 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package Decode
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, user-scalable = no">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<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="hfeed site">
<?php do_action( 'before' ); ?>
<header id="masthead" class="site-header" role="banner">
<img id="sidebar_link" class="SidebarLink <?php echo get_theme_mod( 'sidebar_button_position', 'left' );?> <?php echo get_theme_mod( 'show_sidebar', 'hidden' );?>" src="<?php echo get_template_directory_uri(); ?>/images/menu.svg">
<div class="site-branding">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo('description'); ?></h2>
</div>
<div class="sociallinks <?php echo get_theme_mod( 'show_social_icons', 'hidden' );?>">
<ul>
<a class="sociallink TwitterLink <?php echo get_theme_mod( 'show_twitter', '' );?>" <?php echo 'href=https://twitter.com/' .get_theme_mod( 'twitter_username', '' )."\n";?>>
<img src="<?php echo get_template_directory_uri(); ?>/images/Twitter.svg" alt="Link to Twitter profile">
</a>
<a class="sociallink AppNetLink <?php echo get_theme_mod( 'show_adn', '' );?>" <?php echo 'href=https://alpha.app.net/' .get_theme_mod( 'adn_username', '' )."\n";?>>
<img src="<?php echo get_template_directory_uri(); ?>/images/ADN.svg" alt="Link to App dot net profile">
</a>
<a class="sociallink FacebookLink <?php echo get_theme_mod( 'show_facebook', '' );?>" <?php echo 'href=https://facebook.com/' .get_theme_mod( 'facebook_username', '' )."\n";?>>
<img src="<?php echo get_template_directory_uri(); ?>/images/Facebook.svg" alt="Link to Facebook profile">
</a>
<a class="sociallink GooglePlusLink <?php echo get_theme_mod( 'show_google_plus', 'hidden' );?>" <?php echo 'href=https://plus.google.com/u/0/' .get_theme_mod( 'google_plus_username' )."\n";?>>
<img src="<?php echo get_template_directory_uri(); ?>/images/GooglePlus.svg" alt="Link to Google Plus profile">
</a>
</ul>
</div>
<nav id="site-navigation" class="navigation-main" role="navigation">
<div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'decode' ); ?>"><?php _e( 'Skip to content', 'decode' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
<div id="sidebar" class="sidebar <?php echo get_theme_mod( 'sidebar_position', 'left' );?> <?php echo get_theme_mod( 'show_sidebar', 'hidden' );?>">
<div id="sidebar_top" class="SidebarTop"><img id="sidebar_close" class="SidebarClose" src="<?php echo get_template_directory_uri(); ?>/images/cross.svg"></div>
<div class="SidebarContent">
<?php get_sidebar(); ?>
</div>
</div>
<div id="main" class="site-main">