-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
69 lines (63 loc) · 1.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
65
66
67
68
69
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
<?php if ($args['title']){
$title = $args['title'];
}
else {
$title = "IISP MUN";
}
echo $title;?>
</title>
<?php if ( is_single() ) {?>
<meta name="author" content="<?php the_author();?>">
<?php }?>
<meta property="og:title" content="<?php echo $title;?>">
<meta property="og:site_name" content="IISP Model United Nations">
<meta property="og:type" content="article">
<meta property="og:image" content="<?php the_post_thumbnail_url();?>">
<meta property="og:url" content="<?php the_permalink();?>">
<?php wp_head();?>
</head>
<body>
<header>
<div class="logo-container">
<div class="logo">
<?php the_custom_logo();?>
</div>
<div class="logo-text">
<a href="<?php echo home_url();?>">
<div class="logo-shorttitle">
IISP <span>MUN</span>
</div>
<div class="logo-subtitle">
Indus International School Pune
</div>
<div class="logo-title">
Model <span>United Nations<span>
</div>
</a>
</div>
</div>
<?php
if ( get_field( "edition" ) ) {
wp_nav_menu(
array(
"menu" => get_field( "header_navigation_menu", get_field( "edition" ) ),
"depth" => 2
)
);
}
else {
wp_nav_menu(
array(
"theme_location" => "header-default" ,
"depth" => 2
)
);
}
?>
</header>