-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader-home.php
104 lines (88 loc) · 3.36 KB
/
header-home.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?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 MaterialWP
*/
$custom_logo_id = get_theme_mod( 'custom_logo' );
$custom_logo_url = wp_get_attachment_image_url( $custom_logo_id , 'full' );
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<header id="masthead" class="site-header" role="banner">
<nav class="navbar navbar-expand-lg navbar-trans bg-trans"> <!-- NAV -->
<div class="header-grid"> <!-- HEADER GRID -->
<div class="logo-div"> <!-- LOGO DIV -->
<a class="logo-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<?php
echo '<img src="' . esc_url( $custom_logo_url ) . '" alt="">';
// bloginfo( 'name' );
?>
</a>
</div> <!-- END LOGO DIV -->
<div class="chat-menu "> <!-- LOGO DIV -->
<a class="chat-icon" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src='<?php echo get_template_directory_uri(); ?>/img/chat.svg'/>
</a>
<a class="chat-icon" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src='<?php echo get_template_directory_uri(); ?>/img/corazón.svg'/>
</a>
</div> <!-- END LOGO DIV -->
<?php languages_list_header(); ?>
<div class="social-menu d-none d-md-block"> <!-- SOCIAL MENU -->
<ul>
<li>
<a class="social-icon" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src='<?php echo get_template_directory_uri(); ?>/img/facebook.svg'/>
</a>
</li>
<li>
<a class="social-icon" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src='<?php echo get_template_directory_uri(); ?>/img/linkedin.svg'/>
</a>
</li>
<li>
<a class="social-icon" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src='<?php echo get_template_directory_uri(); ?>/img/twitter.svg'/>
</a>
</li>
<li>
<a class="social-icon" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src='<?php echo get_template_directory_uri(); ?>/img/instagram.svg'/>
</a>
</li>
</ul>
</div> <!-- END social menu -->
<div class="collapse navbar-collapse main-menu">
<div class="collapse navbar-collapse" id="navbarNav">
<?php
$args = array(
'theme_location' => 'primary',
'depth' => 2,
'container' => true,
'menu_class' => 'navbar-nav',
'walker' => new Bootstrap_Walker_Nav_Menu()
);
if (has_nav_menu('primary')) {
wp_nav_menu($args);
}
?>
</div> <!-- END navbarNav -->
</div> <!-- END header grid -->
</nav> <!-- NAV END -->
<!-- Mobile menu modal -->
<?php get_template_part( 'template-parts/mobilemenu', 'modal' );?>
<!-- Mobile menu modal END-->
</header><!-- #masthead -->
<div id="content" class="site-content">