-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·98 lines (83 loc) · 3.03 KB
/
header.php
File metadata and controls
executable file
·98 lines (83 loc) · 3.03 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
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package typefocus
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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( 'typefocus_before' ); ?>
<header id="masthead" class="site-header" role="banner">
<!-- author, title, social -->
<div class="author-image">
<?php if ( get_theme_mod( 'typefocus_author_image_disabled' )==false ): ?>
<?php
$auth_img = get_theme_mod( 'typefocus_author_image' );
if ( strlen($auth_img)==0 ){
$auth_img= get_template_directory_uri()
."/images/author-placeholder-nero.jpg";
}
print "<img src=".$auth_img." />";
?>
<?php endif; ?>
</div>
<!-- Title and descr -->
<div class="site-branding">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</div>
<!-- Social Icons -->
<div class="header-social">
<?php if ( get_theme_mod( 'typefocus_social_disabled' )==false ): ?>
<?php
if ( sizeof(get_theme_mod(typefocus_social))>0 ){
$social_array = get_theme_mod(typefocus_social);
if ( is_array($social_array) && (sizeof(array_filter($social_array))>0) ){
foreach ($social_array as $this_social=>$social_link){
$img_icon = "fa fa-".str_replace("tf_","",$this_social);
//$img_icon = "fa fa-".str_replace("tf_","",$this_social)."-square";
if ($social_link) {
print "<a href=\"$social_link\">";
print "<i class=\"$img_icon\"></i>";
print"</a>";
}
}
}
else{
// dummy icons here
$dummy = array('github','linkedin','facebook','twitter');
foreach ($dummy as $this_social){
//print '<a href="#"><i class="fa fa-'.$this_social.'-square"></i></a>';
print '<a href="#"><i class="fa fa-'.$this_social.'"></i></a>';
}
}
}
?>
<?php endif; ?>
</div>
<nav id="site-navigation" class="main-navigation" role="navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', 'typefocus' ); ?></h1>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'typefocus' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #site-navigation -->
<!-- disclaimer -->
<?php if( get_theme_mod(typefocus_disclaimer) ): ?>
<div id="disclaimer" >
<i class="fa fa-quote-left pull-left fa-border"></i>
<?php echo get_theme_mod(typefocus_disclaimer); ?>
</div>
<?php endif; ?>
</header><!-- #masthead -->
<div id="content" class="site-content">