-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
73 lines (58 loc) · 2.48 KB
/
header.php
File metadata and controls
73 lines (58 loc) · 2.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Blog Site Template">
<meta name="author" content="https://megaaffairs.com">
<?php
wp_head();
?>
</head>
<body>
<header class="header text-center">
<a class="site-title pt-lg-4 mb-0" href="index.html"><?php echo get_bloginfo('name');?></a>
<nav class="navbar navbar-expand-lg navbar-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navigation" class="collapse navbar-collapse flex-column">
<?php
if(function_exists('the_custom_logo')){
$temp = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src($temp);
// print_r($logo[0]);
// exit();
// the_custom_logo();
}
?>
<img class="mb-3 mx-auto logo" src="<?php echo $logo[0] ?>" alt="logo">
<?php
wp_nav_menu(
array(
'menu' => 'primary',
'container' => '',
'theme_location' => 'primary',
'items_wrap' => '<ul class="navbar-nav flex-column text-sm-center text-md-left">%3$s</ul>'
) )
?>
<hr>
<ul class="social-list list-inline py-3 mx-auto">
<li class="list-inline-item"><a href="#"><i class="fab fa-twitter fa-fw"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fab fa-linkedin-in fa-fw"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fab fa-github-alt fa-fw"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fab fa-stack-overflow fa-fw"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fab fa-codepen fa-fw"></i></a></li>
</ul>
<?php
dynamic_sidebar('widget-1');
?>
</div>
</nav>
</header>
<div class="main-wrapper">
<header class="page-title theme-bg-light text-center gradient py-5">
<h1 class="heading"><?php the_title(); ?></h1>
</header>