-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
58 lines (48 loc) · 1.65 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package applied-computer-science
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<header id="header" class="site-header">
<?php include ('template-parts/social-bar.php'); ?>
<!-- Logo and menu wrapper -->
<div class="logo-menu-wrapper">
<div class="logo"><a href="<?php echo home_url(); ?>"><img id="logo" src="<?php echo get_template_directory_uri() .'/img/logo.jpg' ?>" alt="Logo"></a></div>
<div class="menu">
<?php get_main_menu(); // Adjust using Menus in Wordpress Admin ?>
</div>
<div class="menu-toggler">
<i class="fas fa-bars"></i>
</div>
</div>
<!-- Logo and menu wrapper -->
<!-- Sidebar (for mobile) -->
<div class="sidebar">
<h1><?php echo get_bloginfo();?></h1>
<div class="menu-toggler">
<i class="fas fa-bars"></i>
</div>
<div class="menu">
<?php get_main_menu(); // Adjust using Menus in Wordpress Admin ?>
</div>
<?php include ('template-parts/social-bar.php'); ?>
</div>
<!-- Sidebar menu -->
<!-- <img class="main-logo" src="<?php echo home_url('assets/logo_sti_new.png') ?>" alt="Logo"> -->
</header>
<div id="content" class="site-content">