-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
81 lines (46 loc) · 2.33 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
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Escuela de cocina</title>
<? wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header class="header py-5">
<div class="container">
<div class="row justify-content-center align-items-center">
<div class="col-md-4 mb-4 mb-md-4">
<a href="<?php echo esc_url(home_url('/'));?>">
<?php
$opciones = get_option('edc_theme_options');
if(isset($opciones['Logotipo'])): ?>
<img src="<?php echo $opciones['Logotipo']; ?>" alt="" class="img-fluid">
<?php else: ?>
<img src="<?php echo get_template_directory_uri();?>/img/logo.svg" alt="" class="img-fluid">
<?php endif; ?>
</a>
</div>
<div class="col-md-8">
<nav class="navbar navbar-expand-md navbar-light justify-content-center">
<button class="navbar-toggler mb-4" data-toggle="collapse" data-target="#nav_principal"
aria-expanded="false" type="button"
>
<span class="navbar-toggler-icon">
</span>
</button>
<?php
$args = array(
'menu_class' => 'nav nav-justified flex-column flex-md-row text-center',
'container_id' => 'nav_principal',
'container_class' => 'collapse navbar-collapse justify-content-center
justify-content-lg-end text-uppercase',
'theme_location' => 'menu_principal'
);
wp_nav_menu($args)
?>
</nav>
</div>
</div>
</div>
</header>