-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
73 lines (37 loc) · 1.48 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
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php bloginfo( 'name' ); ?></title>
<link type="text/css" rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lightgallery.css" />
<link type="text/css" rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lg-transitions.min.css" />
<?php wp_head(); ?>
</head>
<body>
<nav class="nav">
<div class="logo">
<span class="name-logo"><a href="<?php echo home_url(); ?>">Kevin Clark</a></span>
<span class="description-logo">photographer</span>
</div>
<div class="nav-list">
<?php
$args = array(
'theme_location' => 'primary'
);
?>
<?php echo wp_nav_menu( $args );
?>
</div>
<?php
global $wp_query;
$pagename = $wp_query->queried_object->post_name;
if(strpos($pagename , 'gallery-') !== false ) { ?>
<div class="backtogallery">
<a href="<?php echo home_url(); ?>">Back To Gallery</a>
</div>
<?php } ?>
</nav>
<div class="body">
<div class="container">