-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
107 lines (77 loc) · 3.56 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title><?php wp_title( '•', true, 'right' ); echo esc_html( get_bloginfo('name'), 1 ) ?></title>
<meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<!-- Layout Functions (Editable via options)-->
<?php stf_layout(); ?>
<!-- Base styles -->
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri() ?>/app/css/base.css" />
<!-- Color Scheme (Editable via options)-->
<?php if( stf_get_setting( 'stf_colorscheme' ) ){ ?>
<link rel="stylesheet" type="text/css" href="<?php echo stf_get_setting( 'stf_colorscheme' ); ?>" />
<?php } ?>
<!-- Custom colors (Editable via options) -->
<?php stf_colors(); ?>
<?php wp_head(); // For plugins ?>
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url') ?>" title="<?php printf( __( '%s latest posts', 'stf' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'stf' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
</head>
<body <?php body_class(); ?>>
<a name="top" id="top"></a>
<?php global $posts_displayed; $posts_displayed = array(); ?>
<?php do_action('body_top'); ?>
<!-- Header Wrapper -->
<div id="header-wrapper" class="clearfix">
<div id="topnav-wrap">
<div id="topnav" class="clearfix">
<?php if( ! dynamic_sidebar('header-top') ) {
$args = array(
'theme_location' => 'topnav',
'menu_class' => 'dropdown dropdown-horizontal',
'menu_id' => 'top-navigation',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'fallback_cb' => 'top_nav_callback'
);
wp_nav_menu( $args );
} ?>
</div>
</div>
<!-- Header -->
<div id="header" class="clearfix">
<?php $logo_url = stf_get_setting('stf_logo_url'); ?>
<!-- Branding -->
<div id="branding"> <?php
if(strlen($logo_url)>0){ ?>
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home <?php if(!is_front_page() || !is_home()){ echo 'nofollow';} ?>"><img id="logo" src="<?php echo $logo_url ?>" alt="<?php bloginfo('name') ?>" title="<?php bloginfo('description') ?>" /></a>
<?php } else { ?>
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
<<?php echo $heading_tag; ?> id="site-title">
<span><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'description' ) ); ?>" rel="home <?php if(!is_front_page() || !is_home()){ echo 'nofollow';} ?>"><?php bloginfo( 'name' ); ?></a></span>
</<?php echo $heading_tag; ?>>
<?php } ?>
</div>
<!-- [End] Branding -->
<div id="searchform-wrapper"><?php get_search_form(); ?></div>
<?php get_template_part('subscribe'); ?>
</div>
<!-- [End] Header -->
<div id="header-bottom-wrap">
<div id="header-bottom" class="clearfix">
<?php if( ! dynamic_sidebar('header-bottom') ) {
$args = array(
'theme_location' => 'main',
'menu_class' => 'dropdown dropdown-horizontal',
'menu_id' => 'main-navigation',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'fallback_cb' => 'nav_callback'
);
wp_nav_menu( $args );
}?>
</div>
</div>
</div>
<!-- [End] Header Wrapper -->
<?php get_template_part('billboard', 'index'); // BILLBOARD ?>