-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
64 lines (62 loc) · 2.78 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
<!--
+***********************+******************+*************************+
| StackDesignTemplate | Version/Language | Date |
+***********************+******************+*************************+
| Bootsrap technology | 3.3 | Released: June 23, 2018 |
| Jquery | 1.1 | Pro Version 1.2 |
| Dual-language support | English,Persian | |
+***********************+******************+*************************+
-->
<!DOCTYPE html>
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php echo get_bloginfo( 'description' );?>">
<?php wp_head();?>
</head>
<body>
<div class="blog-masthead">
<div class="container">
<div class="blog-header">
<?php $custom_logo_id = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
if ( has_custom_logo() ) {
echo '<img src="'. esc_url( $logo[0] ) .'" >';
} else {
echo '<a href="'. get_bloginfo('url').'"><h1 class="blog-title" >'. get_bloginfo( 'name' ) .'</h1>';
echo'<p class="lead blog-description">'.get_bloginfo( 'description' ).'</p></a>';
}?>
</div>
</div>
</div>
<div class="navbar-header">
<!--<button type="button" class="navbar-toggle" data-toggle="collapse" n data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>-->
</div>
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'bs-example-navbar-collapse-1',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker())
);
?>
</ul>
</div>
</div>
</nav>
<div class="container">