-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
54 lines (44 loc) · 3.02 KB
/
header.php
File metadata and controls
54 lines (44 loc) · 3.02 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?></title>
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/assets/icons/favicon.svg" />
<?php wp_head(); ?>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg py-3 <?php if(is_category() == true || is_single()) echo "bg-neutral navbar-light"; else echo "navbar-dark bg-transparent"; ?>">
<div class="container">
<a class="navbar-brand" href="<?php echo get_home_url(); ?>">
<?php if(is_front_page()): ?>
<img id="neutral-logo" src="<?php echo get_template_directory_uri(); ?>/assets/icons/neutral-logo.svg" alt="UpValue Logo">
<img id="reduced-neutral-logo" src="<?php echo get_template_directory_uri(); ?>/assets/icons/logo-reduced-neutral.svg" alt="UpValue Logo">
<?php else: ?>
<img id="logo" src="<?php echo get_template_directory_uri(); ?>/assets/icons/logo.svg" alt="UpValue Logo">
<img id="reduced-logo" src="<?php echo get_template_directory_uri(); ?>/assets/icons/logo-reduced.svg" alt="UpValue Logo">
<?php endif; ?>
</a>
<button class="navbar-toggler d-lg-none border-0 shadow-none" type="button" data-bs-toggle="collapse" data-bs-target="#navBar" aria-controls="navBar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end d-lg-flex" id="navBar">
<ul class="navbar-nav mb-2 mb-lg-0 d-flex align-items-center">
<li class="nav-item">
<a class="nav-link <?php if(is_front_page()) { echo 'border-bottom-neutral';} ?>" aria-current="home" href="<?php echo get_home_url(); ?>"><h4 class="<?php if(is_front_page()) echo 'f-neutral' ?>">Home</h4></a>
</li>
<li class="nav-item">
<a class="nav-link <?php if(is_category() == true || is_single()) { echo 'border-bottom-primary';} ?>" aria-current="blog" href="<?php echo get_home_url(); ?>/category/geral"><h4 class="<?php if(is_front_page()) echo 'f-neutral' ?>">Blog</h4></a>
</li>
<li class="nav-item">
<a href="<?php echo get_home_url(); ?>/up_plataforma">
<button class="<?php if(is_category() == true || is_single()) echo 'neutral' ?>">Área do cliente</button>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>