add new gamburger
This commit is contained in:
@@ -1,9 +1,22 @@
|
|||||||
<header>
|
<header>
|
||||||
|
|
||||||
|
<div id="mobile_main_menu">
|
||||||
|
<?php wp_nav_menu( array(
|
||||||
|
'container_class' => 'main_main',
|
||||||
|
'theme_location' => 'top',
|
||||||
|
'menu_id' => 'gamburer_menu'
|
||||||
|
) ); ?>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="closed_mobile_menu"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="mainlogo">
|
<div id="mainlogo">
|
||||||
<a href="<?php echo home_url(); ?>"><img width="240" src = "<?=get_stylesheet_directory_uri()?>/pub/logo/vij_logo.svg" alt = "Ветеринария и жизнь. Газета и сайт" /></a>
|
<a href="<?php echo home_url(); ?>"><img width="240" src = "<?=get_stylesheet_directory_uri()?>/pub/logo/vij_logo.svg" alt = "Ветеринария и жизнь. Газета и сайт" /></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<? $lang_version = lang_version();
|
<? $lang_version = lang_version();
|
||||||
|
|
||||||
if ($lang_version == 'en'){
|
if ($lang_version == 'en'){
|
||||||
@@ -35,20 +48,10 @@
|
|||||||
<ul id="header_icons">
|
<ul id="header_icons">
|
||||||
<a href="<?=get_site_url()?>?s="><li class="btn_search"></li></a>
|
<a href="<?=get_site_url()?>?s="><li class="btn_search"></li></a>
|
||||||
<a href="<?=get_site_url()?>/feed"><li class="btn_rss"></li></a>
|
<a href="<?=get_site_url()?>/feed"><li class="btn_rss"></li></a>
|
||||||
<li class="toggle-nav"></li>
|
<li class="toggle-nav" id="toggle-nav"></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="menu main">
|
|
||||||
<?php wp_nav_menu( array(
|
|
||||||
'container_class' => 'main_main',
|
|
||||||
'theme_location' => 'top',
|
|
||||||
'menu_id' => 'gamburer_menu'
|
|
||||||
) ); ?>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="menu-rubrics">
|
<div class="menu-rubrics">
|
||||||
|
|||||||
@@ -170,6 +170,7 @@
|
|||||||
<noscript><div><img src="https://mc.yandex.ru/watch/56480275" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
<noscript><div><img src="https://mc.yandex.ru/watch/56480275" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||||
<!-- /Yandex.Metrika counter -->
|
<!-- /Yandex.Metrika counter -->
|
||||||
|
|
||||||
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=18"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
||||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=83">
|
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=81">
|
||||||
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
|
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=10"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=18"></script>
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/golos.js"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/golos.js"></script>
|
||||||
<meta property="og:title" content="<?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?>" />
|
<meta property="og:title" content="<?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?>" />
|
||||||
<link rel="icon" href="https://vetandlife.ru/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="https://vetandlife.ru/favicon.ico" type="image/x-icon">
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
jQuery('.toggle-nav').click(function(e) {
|
|
||||||
jQuery('.menu.main ul').slideToggle(500);
|
|
||||||
e.preventDefault();
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".fa-search").click(function(){
|
$(".fa-search").click(function(){
|
||||||
$(".wrap, .input").toggleClass("active");
|
$(".wrap, .input").toggleClass("active");
|
||||||
@@ -10,3 +6,17 @@ jQuery(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
var closed_menu = document.getElementById('closed_mobile_menu');
|
||||||
|
var mobile_main_menu = document.getElementById('mobile_main_menu');
|
||||||
|
var toggle_nav = document.getElementById('toggle-nav');
|
||||||
|
|
||||||
|
|
||||||
|
closed_menu.onclick = function() {
|
||||||
|
mobile_main_menu.style.display = 'none';
|
||||||
|
};
|
||||||
|
|
||||||
|
toggle_nav.onclick = function() {
|
||||||
|
mobile_main_menu.style.display = 'block';
|
||||||
|
};
|
||||||
48
style.css
48
style.css
@@ -1762,12 +1762,52 @@ img-fluid{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#mobile_main_menu{
|
||||||
#gamburer_menu{
|
|
||||||
display: none;
|
display: none;
|
||||||
|
position:fixed;
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
z-index:100;
|
||||||
|
min-width: 600px;
|
||||||
|
background: #fff;
|
||||||
|
border-top: 1px solid #F5F5F5;
|
||||||
|
padding-top: 42px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#closed_mobile_menu{
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1;
|
||||||
|
top: 20px;
|
||||||
|
right: 5%;
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
background: no-repeat url(https://vetandlife.ru/wp-content/themes/vij/pub/menu/closed.svg) left center;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#gamburer_menu li{
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
border-bottom: 1px solid #F5F5F5;
|
||||||
|
margin-top: 22px;
|
||||||
|
padding-bottom: 22px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gamburer_menu a{
|
||||||
|
color: #00466A;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gamburer_menu a:hover{
|
||||||
|
color: #F18129;
|
||||||
|
}
|
||||||
|
|
||||||
.mob-lite{
|
.mob-lite{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -1916,9 +1956,7 @@ img-fluid{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#gamburer_menu a{
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.mob-lite{
|
.mob-lite{
|
||||||
|
|||||||
Reference in New Issue
Block a user