-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-blastoff-es.php
253 lines (243 loc) · 11.5 KB
/
header-blastoff-es.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<?php
$currentUrl = $_SERVER['REQUEST_URI'];
$blastoffStudents = [
'PT' => '/blastoff-alunos/',
'EN' => '/en/blastoff-students/',
'ES' => '/es/blastoff-estudiantes/'
];
$blastoffCompanies = [
'PT' => '/blastoff-empresas/',
'EN' => '/en/blastoff-companies/',
'ES' => '/es/es-blastoff-empresas/'
];
if (in_array($currentUrl, $blastoffStudents) || in_array($currentUrl, $blastoffCompanies)) {
$urlObj = new stdClass();
if (in_array($currentUrl, $blastoffStudents)) {
$urlObj->ES = $blastoffStudents['ES'];
$urlObj->PT = $blastoffStudents['PT'];
$urlObj->EN = $blastoffStudents['EN'];
} else {
$urlObj->ES = $blastoffCompanies['ES'];
$urlObj->PT = $blastoffCompanies['PT'];
$urlObj->EN = $blastoffCompanies['EN'];
}
if (property_exists($urlObj, $currentUrl)) {
$valueToMove = $urlObj->{$currentUrl};
unset($urlObj->{$currentUrl});
$urlObj = (object) array_merge([$currentUrl => $valueToMove], (array) $urlObj);
}
}
?>
<!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'); ?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous" />
<link href="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/style.css?ref=22" rel="stylesheet" type="text/css" />
<link rel="icon" href="https://73p545.a2cdn1.secureserver.net/wp-content/uploads/2021/11/cropped-favicon-todoo-32x32.png" sizes="32x32" />
<script defer src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/js/blastoff.js?ref=20"></script>
<script defer src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/js/responsive.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<?php do_action('wpseo_head'); ?>
</head>
<body>
<header class="header">
<section class="header-desktop fixed-top d-none d-xl-block">
<section class="bg-magenta container-fluid">
<div class="d-flex justify-content-between container">
<div>
<ul class="d-flex gap-2 align-items-center list-unstyled m-0 py-2">
<li>
<a href="https://www.facebook.com/toodoobr/">
<figure class="m-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/facebook.svg" alt="facebook">
</figure>
</a>
</li>
<li>
<a href="https://www.instagram.com/toodoobr">
<figure class="m-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/instagram.svg" alt="instagram">
</figure>
</a>
</li>
<li>
<a href="#">
<figure class="m-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/behance.svg" alt="behance">
</figure>
</a>
</li>
<li>
<a href="https://www.linkedin.com/company/toodoobr">
<figure class="m-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/linkedin.svg" alt="linkedin">
</figure>
</a>
</li>
</ul>
</div>
<div class="d-flex align-items-center gap-2">
<figure class="m-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/globe.svg" alt="globe">
</figure>
<?php if ($urlObj) : ?>
<select class="select-language cursor-pointer text-white" name="language" id="header-language" onchange="if (this.value !== '') { window.location.href = this.value; }">
<?php foreach ($urlObj as $key => $value) { ?>
<option class="text-black" value="<?php echo $value ?>"><?php echo $key ?></option>
<?php } ?>
</select>
<?php endif ?>
</div>
</div>
</section>
<section class="bg-white container-fluid">
<div class="container py-4 d-flex align-items-center justify-content-between">
<a href="https://toodoo.com.br/">
<figure class="m-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/images/toodoo-pink-logo.svg" alt="">
</figure>
</a>
<nav>
<ul class="list-unstyled d-flex gap-5 m-0 fw-medium text-uppercase">
<li>
<a class="color-blue text-decoration-none" href="https://toodoo.com.br/es/sobre-nosotros/">
Sobre Nosotros
</a>
</li>
<li>
<a class="color-blue text-decoration-none" href="https://toodoo.com.br/es/nuestros-servicios/">
Nuestros Servicios
</a>
</li>
<li>
<a class="color-blue text-decoration-none" href="https://toodoo.com.br/es/casos/">
Casos
</a>
</li>
<li>
<a class="color-blue text-decoration-none" href="https://toodoo.com.br/blastoff-alunos/">
Blastoff
</a>
</li>
<li>
<a class="color-blue text-decoration-none" href="https://toodoo.com.br/news/">
News
</a>
</li>
<li>
<a class="color-blue text-decoration-none" href="https://toodoo.com.br/es/contacto/">
Contáctenos
</a>
</li>
</ul>
</nav>
<figure class="m-0 opacity-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/images/toodoo-pink-logo.svg" alt="">
</figure>
</div>
</section>
</section>
<section class="header-mobile fixed-top d-xl-none bg-white">
<div class="header-mobile-bar d-flex justify-content-between align-items-center p-4">
<figure class="image-logo m-0">
<img class="w-100" src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/images/toodoo-pink-logo.svg" alt="Toodoo">
</figure>
<figure class="menu-image mobile-menu-button close m-0 cursor-pointer">
<img class="w-100" src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/header-mobile-menu-close.svg" alt="menu">
</figure>
<figure class="menu-image mobile-menu-button m-0 cursor-pointer">
<img class="w-100" src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/header-mobile-menu.svg" alt="menu">
</figure>
</div>
<nav class="header-mobile-menu">
<div class="search-bar-container">
<div class="search-bar">
<figure class="m-0">
<img class="w-100" src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/search-magenta.svg" alt="pesquisa">
</figure>
<input type="text" placeholder="Buscar na toodoo">
</div>
</div>
<ul class="header-mobile-list list-unstyled">
<li class="mobile-menu-item">
<a href="https://toodoo.com.br/sobre-nos/">Sobre</a>
</li>
<li class="mobile-menu-item">
<a href="https://toodoo.com.br/es/nuestros-servicios/">Nuestros Servicios</a>
</li>
<li class="mobile-menu-item">
<a href="https://toodoo.com.br/es/casos/">Casos</a>
</li>
<li class="mobile-menu-item">
<div class="accordion accordion-flush" id="navigation-menu-option-blastoff">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingOne">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navigation-option-blastoff" aria-expanded="false" aria-controls="navigation-option-blastoff">
Blastoff
</button>
</h2>
<div id="navigation-option-blastoff" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#navigation-menu-option-blastoff">
<div class="accordion-body">
<ul class="list-unstyled">
<li><a href="https://toodoo.com.br/es/blastoff-estudiantes/"> Para estudiantes </a></li>
<li><a href="https://toodoo.com.br/blastoff-empresas/"> Para negocios </a></li>
</ul>
</div>
</div>
</div>
</div>
</li>
<li class="mobile-menu-item">
<a href="https://toodoo.com.br/news/">News</a>
</li>
<li class="mobile-menu-item">
<a href="https://toodoo.com.br/es/contacto/">Contáctenos</a>
</li>
</ul>
<ul class="social-media-list list-unstyled">
<li class="social-media-item">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/facebook-magenta.svg" alt="facebook">
</figure>
</li>
<li class="social-media-item">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/instagram-magenta.svg" alt="instagram">
</figure>
</li>
<li class="social-media-item">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/linkedin-magenta.svg" alt="linkedin">
</figure>
</li>
<li class="social-media-item">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/twitter-magenta.svg" alt="twitter">
</figure>
</li>
<li class="social-media-item">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/youtube-magenta.svg" alt="youtube">
</figure>
</li>
</ul>
<p class="color-magenta">Nos acompanhe</p>
<div class="d-flex align-items-center justify-content-center gap-2 mx-auto">
<figure class="m-0">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/new-blastoff/public/assets/icons/globe-black.svg" alt="globe">
</figure>
<?php if ($urlObj) : ?>
<select class="select-language cursor-pointer text-white" name="language" id="header-language" onchange="if (this.value !== '') { window.location.href = this.value; }">
<?php foreach ($urlObj as $key => $value) { ?>
<option class="text-black" value="<?php echo $value ?>"><?php echo $key ?></option>
<?php } ?>
</select>
<?php endif ?>
</div>
</nav>
</section>
</header>