-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
68 lines (65 loc) · 2.01 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="ru"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name='yandex-verification' content='79f6f41e1a67be9b' />
<?php if (is_admin_bar_showing()) { ?>
<style type="text/css">
header.main-header {
margin-top: 32px;
}
@media only screen and (max-width: 768px) {
#mainmenu .menu-wrapper {
margin-top: 32px;
}
}
</style>
<?php } ?>
<? wp_head(); ?>
</head>
<body class="<?php if(is_front_page()) echo "home"; ?>">
<header>
<div class="content">
<div class="logo">
<a href="/" title="">
<?
/**
* colombo_get_logo hook.
*
* @hooked colombo_get_logo - 10
*/
do_action('colombo_get_logo');
?>
</a>
</div>
<div class="navigation">
<span class="mobile-menu"><i class="fa fa-bars"></i></span>
<?
$walker = new Colombo_Nav_Walker();
wp_nav_menu( array( 'walker' => $walker, 'theme_location' => 'main-menu', 'container' => '', 'menu_id' => '', 'menu_class' => 'main-menu'));
?>
</div>
<div class="langs">
<ul class="langs-list">
<? $uri = $_SERVER['REQUEST_URI'];
$ru = preg_replace('/ua/', 'ru', $uri, 1);
$ua = str_replace("/ru/", '/ua/', $uri);
?>
<? if (qtranxf_getLanguage() == 'ua') : ?>
<li class="current-lang"><a href="<?= get_site_url().'/ru'.$uri; ?>">Ru</a></li>
<? else : ?>
<li class="current-lang"><a href="<?= get_site_url(); ?><?= $ua; ?>">UA</a></li>
<? endif; ?>
</ul>
</div>
<? get_search_form(); ?>
</div>
</header>
<? if(!is_home()): ?>
<?= ThemeUtils::breadcrumbs(); ?>
<? endif; ?>
<main>