-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
101 lines (70 loc) · 3.25 KB
/
Copy pathheader.php
File metadata and controls
101 lines (70 loc) · 3.25 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
97
98
99
100
101
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <main id="main">
*
* @package metro-creativex
*/
global $wp_customize;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title('|', true, 'right'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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(); ?> style ="background-image: url('http://h2511817.stratoserver.net/wp-content/uploads/2016/11/NigthWulf2-Recovered.png');">
<header class="header">
<?php if(get_header_image()): ?>
<img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
<?php endif; ?>
<div id="logo">
<?php
$metro_logo = get_theme_mod('metro-creativex_logo');
if(!empty($metro_logo)):
echo '<div class="site-logo">';
echo '<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo( 'name', 'display' ) ).'" rel="home">';
echo '<img src="'.esc_url($metro_logo).'" alt="'.get_bloginfo( 'name', 'display' ).'">';
echo '</a>';
echo '</div>';
echo '<div class="header-logo-wrap metro_creativex_only_customizer">';
echo "<h1 class='site-title'><a href='".esc_url( home_url( '/' ) )."' title='".esc_attr( get_bloginfo( 'name', 'display' ) )."' rel='home'>".get_bloginfo( 'name' )."</a></h1>";
echo "<h2 class='site-description'>".get_bloginfo( 'description' )."</h2>";
echo '</div>';
else:
if( isset( $wp_customize ) ):
echo '<div class="site-logo metro_creativex_only_customizer">';
echo '<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo( 'name', 'display' ) ).'" rel="home">';
echo '<img src="'.esc_url($metro_logo).'" alt="'.get_bloginfo( 'name', 'display' ).'">';
echo '</a>';
echo '</div>';
endif;
echo '<div class="header-logo-wrap">';
echo "<h1 class='site-title'><a href='".esc_url( home_url( '/' ) )."' title='".esc_attr( get_bloginfo( 'name', 'display' ) )."' rel='home'>".get_bloginfo( 'name' )."</a></h1>";
echo "<h2 class='site-description'>".get_bloginfo( 'description' )."</h2>";
echo '</div>';
endif;
?>
</div><!-- /logo -->
<div class="openmenuresp"><?php _e('Menu','metro-creativex'); ?></div>
<?php
do_action('metro-creaivex_on_mobile');
?>
<div class="navrespgradient"></div>
<?php
do_action('metro-creativex_sidebar');
?>
</header>
<div id="topside" >
<div class="pages">
<h2><?php wp_nav_menu( array('theme_location' => 'secound' ) ); ?></h2>
</div><!--/pages-->
<div id="searchform">
<?php get_search_form(); ?>
</div><!--/searchform-->
<!--<div class="clearfix"></div>-->