This repository was archived by the owner on Jun 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathheader.php
More file actions
143 lines (92 loc) · 3.38 KB
/
header.php
File metadata and controls
143 lines (92 loc) · 3.38 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
/*
* The template for displaying Header.
*
* @package ThemeIsle
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-title" content="<?php bloginfo( 'title' ); ?>">
<meta name="description" content="<?php bloginfo( 'description' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
$header_image = get_header_image();
if ( ! empty( $header_image )) {
?>
<header style="background-image: url('<?php header_image(); ?>'); ">
<?php } else { ?>
<header class="header-responsive"
style="background-image: url('<?php echo get_template_directory_uri(); ?>/images/header.png');">
<?php
}
?>
<div class="layer">
<div class="inner">
<div class="header-top cf">
<?php
if ( get_theme_mod( 'ti_header_logo', get_stylesheet_directory_uri() . '/images/logo.png' ) ) {
?>
<a href="<?php echo home_url(); ?>" title="<?php bloginfo( 'title' ); ?>" id="logo">
<img src="<?php echo esc_url( get_theme_mod( 'ti_header_logo', get_stylesheet_directory_uri() . '/images/logo.png' ) ); ?>" alt="<?php bloginfo( 'title' ); ?>"
title="<?php bloginfo( 'title' ); ?>"/>
</a>
<?php } else {
echo '<div id="no-logo">';
echo '<h1 class="site-title">';
echo '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '" rel="home">' . get_bloginfo( 'name' ) . '</a>';
echo '</h1>';
echo '<h2 class="site-description">' . get_bloginfo( 'description' ) . '</h2>';
echo '</div>';
}
?>
<p class="call-for-action">
<?php
if ( get_theme_mod( 'ti_header_contact_title','Contact us now: ' ) ) {
echo esc_attr( get_theme_mod( 'ti_header_contact_title','Contact us now: ' ) );
}
?>
<span>
<?php
if ( get_theme_mod( 'ti_header_contact_telephone','(+4) 0746.000.111' ) ) {
echo '<a href="tel:' . esc_attr( get_theme_mod( 'ti_header_contact_telephone','(+4) 0746.000.111' ) ) . '" title="' . esc_attr( get_theme_mod( 'ti_header_contact_telephone','(+4) 0746.000.111' ) ) . '">' . esc_attr( get_theme_mod( 'ti_header_contact_telephone','(+4) 0746.000.111' ) ) . '</a>';
}
?>
</span>
</p><!--/.call-for-action-->
</div>
<!--/header-top-->
<nav>
<div class="navigation-menu">
<div class="openresponsivemenu">
<a class="menu-icon-mobile"></a>
</div>
<!--/.openresponsivemenu-->
<div class="nav-container">
<?php
wp_nav_menu(
array(
'theme_location' => 'top-menu',
)
);
?>
</div>
</div>
<!--/.navigation-menu-->
<ul class="navigation-socials">
<li><a href="<?php echo esc_url( get_theme_mod( 'ti_header_facebook_link1', 'http://www.facebook.com' ) ); ?>" title="<?php _e( 'Facebook', 'constructzine-lite' ); ?>" class="facebook-icon" target="_blank"></a></li>
<li><a href="<?php echo esc_url( get_theme_mod( 'ti_header_twitter_link1', 'http://www.twitter.com' ) ); ?>" title="<?php _e( 'Twitter', 'constructzine-lite' ); ?>" class="twitter-icon" target="_blank"></a></li>
<li><a href="<?php echo esc_url( get_theme_mod( 'ti_header_youtube_link1', 'http://www.youtube.com' ) ); ?>" title="<?php _e( 'YouTube', 'constructzine-lite' ); ?>" class="youtube-icon" target="_blank"></a></li>
</ul>
<!--/.navigation-socials-->
</nav>
<!--/nav-->
</div>
</div>
<!--/layer-->
</header>