-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
62 lines (53 loc) · 3.17 KB
/
header.php
File metadata and controls
62 lines (53 loc) · 3.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title><?php echo get_bloginfo('name'); ?></title>
<!-- Favicons -->
<link href="<?php echo wp_get_attachment_url(get_option( 'site_icon' ));?>" rel="icon">
<link href="<?php echo wp_get_attachment_url(get_option( 'site_icon' ));?>" rel="apple-touch-icon">
<!-- Fonts -->
<link href="https://fonts.googleapis.com" rel="preconnect">
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<?php
wp_head();
?>
</head>
<body class="index-page">
<header id="header" class="header dark-background d-flex flex-column">
<i class="header-toggle d-xl-none bi bi-list"></i>
<div class="profile-img">
<img src="<?php echo wp_get_attachment_image_url(get_theme_mod('custom_logo') , 'full');?>" alt="" class="img-fluid rounded-circle">
</div>
<a href="index.html" class="logo d-flex align-items-center justify-content-center">
<!-- Uncomment the line below if you also wish to use an image logo -->
<!-- <img src="assets/img/logo.png" alt=""> -->
<h1 class="sitename"><?php display_first_user_name() ?></h1>
</a>
<div class="social-links text-center">
<a href="<?php echo esc_attr(display_social_link('twitter'));?>" class="twitter"><i class="bi bi-twitter-x"></i></a>
<a href="<?php echo esc_attr(display_social_link('facebook')); ?>" class="facebook"><i class="bi bi-facebook"></i></a>
<a href="<?php echo esc_attr(display_social_link('instagram'));?>" class="instagram"><i class="bi bi-instagram"></i></a>
<a href="<?php echo esc_attr(display_social_link('linkedin'));?>" class="linkedin"><i class="bi bi-linkedin"></i></a>
</div>
<nav id="navmenu" class="navmenu">
<ul>
<li><a href="#hero" class="active"><i class="bi bi-house navicon"></i>Home</a></li>
<li><a href="#about"><i class="bi bi-person navicon"></i> About</a></li>
<li><a href="#resume"><i class="bi bi-file-earmark-text navicon"></i> Resume</a></li>
<li><a href="#portfolio"><i class="bi bi-images navicon"></i> Portfolio</a></li>
<li><a href="#services"><i class="bi bi-hdd-stack navicon"></i> Services</a></li>
<li class="dropdown"><a href="#"><i class="bi bi-menu-button navicon"></i> <span>More</span> <i class="bi bi-chevron-down toggle-dropdown"></i></a>
<?php
wp_nav_menu(array(
'theme_location' => 'primary-menu', // Use the registered menu location
'container' => 'ul', // Wrap in a <nav> tag
));
?>
</li>
<li><a href="#contact"><i class="bi bi-envelope navicon"></i> Contact</a></li>
</ul>
</nav>
</header>