add files
This commit is contained in:
19
template-parts/nav/footer-nav.php
Normal file
19
template-parts/nav/footer-nav.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<!--[nav/footer-nav]-->
|
||||
|
||||
<?php
|
||||
|
||||
wp_nav_menu(
|
||||
[
|
||||
'theme_location' => 'footer_menu',
|
||||
'container' => false,
|
||||
'menu_class' => 'nav-footer',
|
||||
'echo' => true,
|
||||
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
|
||||
'depth' => 0,
|
||||
'walker' => new Profile_Menu_Walker(),
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
<!--[/nav/footer-nav]-->
|
||||
67
template-parts/nav/header-nav-burger.php
Normal file
67
template-parts/nav/header-nav-burger.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<!--[nav/header-nav-burger]-->
|
||||
|
||||
<ul class="burger-body">
|
||||
|
||||
<?php
|
||||
|
||||
wp_nav_menu(
|
||||
[
|
||||
'theme_location' => 'burger_menu_1',
|
||||
'container' => false,
|
||||
'echo' => true,
|
||||
'items_wrap' => '%3$s',
|
||||
'depth' => 0,
|
||||
'walker' => new Profile_Menu_Walker()
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
<li class="burger-menu burger-menu__black p-none">
|
||||
<input type="checkbox" name="toggle" class="toggleSubmenu" id="sub_burger<?= $args["type"] ?>">
|
||||
<label for="sub_burger<?= $args["type"] ?>" class="toggleSubmenu">
|
||||
<span> Другие рубрики </span>
|
||||
<span></span>
|
||||
<span class="arrow"></span>
|
||||
</label>
|
||||
|
||||
<ul class="burger-body__sub">
|
||||
|
||||
<?php
|
||||
|
||||
wp_nav_menu(
|
||||
[
|
||||
'theme_location' => 'other_categories',
|
||||
'container' => false,
|
||||
'echo' => true,
|
||||
'items_wrap' => '%3$s',
|
||||
'depth' => 0,
|
||||
'walker' => new Profile_Menu_Walker()
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="separator_line"></li>
|
||||
|
||||
<?php
|
||||
|
||||
wp_nav_menu(
|
||||
[
|
||||
'theme_location' => 'burger_menu_2',
|
||||
'container' => false,
|
||||
'echo' => true,
|
||||
'items_wrap' => '%3$s',
|
||||
'depth' => 0,
|
||||
'walker' => new Profile_Menu_Walker()
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
</ul>
|
||||
|
||||
<!--[/nav/header-nav-burger]-->
|
||||
18
template-parts/nav/header-nav-main.php
Normal file
18
template-parts/nav/header-nav-main.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<!--[nav/header-nav-main]-->
|
||||
|
||||
<?php
|
||||
|
||||
wp_nav_menu(
|
||||
[
|
||||
'theme_location' => 'header_menu',
|
||||
'container' => false,
|
||||
'echo' => true,
|
||||
'items_wrap' => '%3$s',
|
||||
'depth' => 0,
|
||||
'walker' => new Profile_Menu_Walker()
|
||||
]
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
<!--[/nav/header-nav-main]-->
|
||||
121
template-parts/nav/header-nav.php
Normal file
121
template-parts/nav/header-nav.php
Normal file
@@ -0,0 +1,121 @@
|
||||
<!--[nav/header-nav]-->
|
||||
|
||||
<div class="container-fluid clearfix position-relative">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12 col-md-4 col-lg-5 col-xl-6">
|
||||
|
||||
<div class="d-flex justify-content-between justify-content-lg-start align-items-center">
|
||||
|
||||
<div class="d-flex flex-row d-md-block position-relative">
|
||||
|
||||
<div class="d-block d-md-none">
|
||||
|
||||
<input class="toggle-menu" type="checkbox" name="toggle" id="menuM" aria-label="Меню" />
|
||||
|
||||
<label class="toggle-menu background_checked" for="menuM">
|
||||
|
||||
<span></span>
|
||||
|
||||
</label>
|
||||
|
||||
<div class="burger">
|
||||
|
||||
<?php get_template_part("template-parts/nav/header-nav-burger", "", [ "type" => "M" ]) ?>
|
||||
|
||||
<?php get_template_part("template-parts/header/header-social-networks-mobile") ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-column d-md-block justify-content-center logo-height">
|
||||
|
||||
<?php get_template_part("template-parts/header/header-logo") ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ( is_single() ) :?>
|
||||
<div class="header__title header__title--black font-weight-bold m-0 ml-5">
|
||||
<?php get_template_part("template-parts/header/category-name") ?>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<h1 class="header__title header__title--black font-weight-bold m-0 ml-5">
|
||||
<?php get_template_part("template-parts/header/category-name") ?>
|
||||
</h1>
|
||||
<?php endif?>
|
||||
|
||||
<div class="d-md-none">
|
||||
|
||||
<a class="nav-link nav-link--feedback" href="/news">
|
||||
|
||||
Новости
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 order-xs-12 col-md-12 order-0 order-md-12">
|
||||
|
||||
<div id="sticky-wrapper" class="sticky-wrapper position-relative">
|
||||
|
||||
<div class="header__nav__stick stick js-stick-header js-is-sticky sticky-element-is-a-child-of-parent d-none d-md-block">
|
||||
|
||||
<div class="header__nav header__nav--index clearfix">
|
||||
|
||||
<div class="float-xs-none float-md-left">
|
||||
|
||||
<ul class="nav d-block d-md-flex align-items-center">
|
||||
|
||||
<li class="nav-item">
|
||||
|
||||
<input type="checkbox" class="toggle-menu__check" id="menuD" aria-label="Меню">
|
||||
|
||||
<label class="toggle-menu" for="menuD">
|
||||
|
||||
<span></span>
|
||||
|
||||
</label>
|
||||
|
||||
<div class="burger">
|
||||
|
||||
<?php get_template_part("template-parts/nav/header-nav-burger", "", [ "type" => "D" ]) ?>
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<?php get_template_part("template-parts/nav/header-nav-main") ?>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="float-xs-none float-md-right d-block d-md-flex"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-8 col-lg-7 col-xl-6">
|
||||
|
||||
<?php get_template_part("template-parts/header/header-social-networks") ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--[/nav/header-nav]-->
|
||||
Reference in New Issue
Block a user