-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·123 lines (112 loc) · 3.93 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till #main div
*
* @package Odin
* @since 2.2.0
*/
?><!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( ! get_option( 'site_icon' ) ) : ?>
<link href="<?php echo get_template_directory_uri(); ?>/assets/images/favicon.ico" rel="shortcut icon" />
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v3.2&appId=334035897045245&autoLogAppEvents=1"></script>
<div id="modal" class="modal">
<div id="modal-content"></div>
<div class="modal-share" style="display:none;opacity:0;">
<span><?php _e( 'Compartilhe!', 'eol' );?></span>
<?php eol_share_overlay();?>
</div><!-- .modal-share -->
<div class="modal-download" style="display:none;opacity:0;">
<a href="#">
<span><?php _e( 'Baixe e espalhe!', 'eol' );?></span>
<i class="fa fa-download" aria-hidden="true"></i>
</a>
</div><!-- .modal-share -->
</div>
<a id="skippy" class="sr-only sr-only-focusable" href="#content">
<div class="container">
<span class="skiplink-text"><?php _e( 'Skip to content', 'odin' ); ?></span>
</div>
</a>
<nav class="col-md-12 hidden-xs hidden-sm" id="menu-institucional" >
<div class="container">
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-institucional',
'depth' => 1,
'container' => false,
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'Odin_Bootstrap_Nav_Walker::fallback',
'walker' => new Odin_Bootstrap_Nav_Walker()
)
);
?>
</div><!-- .container -->
</nav><!-- #menu-institucional.col-md-12 -->
<header id="header" role="banner" class="">
<div class="container">
<div class="site-logo hidden-xs hidden-sm">
<a href="#menu-open" class="menu-open-icon">
<span class="bars"></i>
</a>
<div class="social-icons">
<?php $links = get_theme_mod( 'social_links', false );?>
<?php if ( $links ) : ?>
<?php foreach( $links as $link ) : ?>
<?php $class = sprintf( 'fa-%s-%s', $link[ 'link_icon' ], $link[ 'link_icon' ][0] );?>
<?php if ( 'twitter' === $link[ 'link_icon'] ) {
$class = 'fa-twitter';
}
if ( 'instagram' === $link[ 'link_icon'] ) {
$class = 'fa-instagram';
}
?>
<a href="<?php echo esc_url( $link[ 'link_url'] );?>">
<i class="fab <?php echo $class;?>"></i>
</a>
<?php endforeach;?>
<?php endif;?>
</div><!-- .social-icons -->
</div><!-- .col-md-4 site-logo -->
<a href="#" class="search-icon-mobile hidden-md hidden-lg" data-open="false">
</a>
<div class="search-container-mobile col-md-10 text-right" style="display:none;">
<?php get_search_form( true );?>
</div><!-- .search-container -->
<?php odin_the_custom_logo(); ?>
<div class="search-container col-md-10 text-right">
<?php get_search_form( true );?>
</div><!-- .search-container -->
<nav class="pull-right menu-editorias text-right hidden-xs hidden-sm">
<?php
wp_nav_menu(
array(
'theme_location' => 'main-menu',
'depth' => 2,
'container' => false,
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'Odin_Bootstrap_Nav_Walker::fallback',
'walker' => new Odin_Bootstrap_Nav_Walker()
)
);
?>
<a href="#" class="search-icon" data-open="false">
</a>
</nav><!-- .col-md-5 pull-right menu-editorias -->
</div>
</header><!-- #header -->
<div id="wrapper" class="container">
<div class="row">