forked from Codeinwp/lawyeria-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
81 lines (76 loc) · 3.08 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
<?php
/**
* The template for displaying Header.
*
* @package lawyeria-lite
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="<?php echo get_template_directory_uri();?>/content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta charset="UTF-8">
<title><?php wp_title('|', true, 'right'); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header>
<div class="wide-header">
<div class="wrapper cf">
<div class="header-left cf">
<?php
if ( get_theme_mod( 'lawyeria_lite_header_logo', get_template_directory_uri() .'/images/header-logo.png' ) ) {
echo '<a class="logo" href="'.home_url().'" title="'.esc_attr( get_bloginfo( 'name' ) ).'">';
echo '<img src="'. get_theme_mod( 'lawyeria_lite_header_logo', get_template_directory_uri() .'/images/header-logo.png' ) .'" alt="'. get_bloginfo( 'name' ) .'" title="'. get_bloginfo( 'name' ) .'" />';
echo '</a>';
}
else {
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>';
}
?>
</div><!--/div .header-left .cf-->
<div class="header-contact">
<?php
if ( get_theme_mod( 'lawyeria_lite_header_title','Contact us now' ) ) {
echo get_theme_mod( 'lawyeria_lite_header_title','Contact us now' );
}
?>
<br />
<span>
<?php
if ( get_theme_mod( 'lawyeria_lite_header_subtitle','+1-888-846-1732' )) { ?>
<a href="tel: <?php echo get_theme_mod( 'lawyeria_lite_header_subtitle','+1-888-846-1732' ); ?>" title="<?php echo get_theme_mod( 'lawyeria_lite_header_subtitle','+1-888-846-1732' ); ?>"><?php echo get_theme_mod( 'lawyeria_lite_header_subtitle','+1-888-846-1732' ); ?></a>
<?php }
?>
</span><!--/span-->
</div><!--/.header-contact-->
</div><!--/div .wrapper-->
</div><!--/div .wide-header-->
<div class="wrapper cf">
<nav>
<div class="openresponsivemenu">
<?php _e('Open Menu','lawyeria-lite'); ?>
</div><!--/div .openresponsivemenu-->
<div class="container-menu cf">
<?php
wp_nav_menu(
array(
'theme_location' => 'header-menu',
)
);
?>
</div><!--/div .container-menu .cf-->
</nav><!--/nav .navigation-->
</div>
<div class="wrapper">
<?php
$has_header = get_header_image();
if( $has_header ) :
?>
<img src="<?php header_image(); ?>" alt="" class="lawyeria-lite-header-image" />
<?php endif; ?>
</div>