New menu
This commit is contained in:
@@ -1,29 +1,37 @@
|
||||
$(document).ready(function() {
|
||||
var hashValue = window.location.hash.substring(1);
|
||||
$('body').on(click_event, '.lang-change', function (e) {
|
||||
if ($(this).hasClass('parent')) e.preventDefault()
|
||||
if ($(this).hasClass('open')) $(this).removeClass('open')
|
||||
else $(this).addClass('open')
|
||||
})
|
||||
|
||||
if (hashValue) {
|
||||
var hashText = hashValue.toUpperCase();
|
||||
$(document).ready(function () {
|
||||
var hashValue = window.location.hash.substring(1)
|
||||
|
||||
|
||||
setTimeout(function() {
|
||||
var $tabsBlock = $('ul.nav.nav-tabs[role="tablist"]');
|
||||
if (hashValue) {
|
||||
var hashText = hashValue.toUpperCase()
|
||||
|
||||
if ($tabsBlock.length) {
|
||||
$tabsBlock.find('li a').each(function() {
|
||||
var tabText = $(this).text().trim().toUpperCase();
|
||||
if (tabText === hashText) {
|
||||
$(this).trigger('click');
|
||||
setTimeout(function () {
|
||||
var $tabsBlock = $('ul.nav.nav-tabs[role="tablist"]')
|
||||
|
||||
setTimeout(function() {
|
||||
$('html, body').animate({
|
||||
scrollTop: $tabsBlock.offset().top - 150
|
||||
}, 600);
|
||||
}, 1000);
|
||||
if ($tabsBlock.length) {
|
||||
$tabsBlock.find('li a').each(function () {
|
||||
var tabText = $(this).text().trim().toUpperCase()
|
||||
if (tabText === hashText) {
|
||||
$(this).trigger('click')
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
setTimeout(function () {
|
||||
$('html, body').animate(
|
||||
{
|
||||
scrollTop: $tabsBlock.offset().top - 150,
|
||||
},
|
||||
600
|
||||
)
|
||||
}, 500)
|
||||
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -8,214 +8,490 @@ header#header {
|
||||
}
|
||||
#header-nav {
|
||||
nav#header-mine-menu {
|
||||
.submenu {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: calc(100% - 25px);
|
||||
background: $cWhite;
|
||||
border-bottom: 1px solid #dcdcdc;
|
||||
box-shadow: 0 1.5px 4px 0 rgba(0, 0, 0, 0.05);
|
||||
padding-top: 25px;
|
||||
padding-bottom: 25px;
|
||||
a.disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
i.arrow {
|
||||
line-height: 0;
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
@include respond-below(md) {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1;
|
||||
transition: all 250ms ease-in-out;
|
||||
|
||||
img {
|
||||
width: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
|
||||
&:not(.container) {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&.lvl-1 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
column-gap: 40px;
|
||||
|
||||
> li {
|
||||
height: 54px;
|
||||
align-content: center;
|
||||
|
||||
&:hover {
|
||||
> .submenu {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
> a {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
column-gap: 5px;
|
||||
|
||||
span {
|
||||
color: $cTxtBlack;
|
||||
font-size: 15px;
|
||||
font-family: $font3;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.lvl-2 {
|
||||
width: 150px;
|
||||
|
||||
> li {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
> a {
|
||||
span {
|
||||
text-shadow: 0px 0.3px 0px $cTxtBlack,
|
||||
0px -0.3px 0px $cTxtBlack, 0.3px 0px 0px $cTxtBlack,
|
||||
-0.3px 0px 0px $cTxtBlack, -0.3px -0.3px 0px $cTxtBlack,
|
||||
0.3px 0.3px 0px $cTxtBlack, 0.3px -0.3px 0px $cTxtBlack,
|
||||
-0.3px 0.3px 0px $cTxtBlack, -0.3px 0.3px 0px $cTxtBlack;
|
||||
|
||||
&::before {
|
||||
width: 100%;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
.lvl-3 {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
> a {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
column-gap: 5px;
|
||||
text-decoration: none;
|
||||
transition: all 250ms ease-in-out;
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
color: $cTxtBlack;
|
||||
font-size: 16px;
|
||||
font-family: $font3;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
transition: all 250ms ease-in-out;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -10px;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 3px;
|
||||
background: $cTxtBlack;
|
||||
visibility: hidden;
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
transform: rotate(-90deg);
|
||||
width: 0;
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.lvl-3 {
|
||||
@include respond-above(md) {
|
||||
.submenu {
|
||||
position: absolute;
|
||||
// left: calc(150px + 15px + 60px);
|
||||
left: 150px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
transition: all 250ms ease-in-out;
|
||||
padding-left: 75px;
|
||||
top: calc(100% - 25px);
|
||||
background: $cWhite;
|
||||
border-bottom: 1px solid #dcdcdc;
|
||||
box-shadow: 0 1.5px 4px 0 rgba(0, 0, 0, 0.05);
|
||||
padding-top: 25px;
|
||||
padding-bottom: 25px;
|
||||
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
|
||||
&.lvl-3-big {
|
||||
.container {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
|
||||
&:not(.container) {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&.lvl-1 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
column-gap: 60px;
|
||||
column-gap: 40px;
|
||||
|
||||
> li {
|
||||
height: 54px;
|
||||
align-content: center;
|
||||
|
||||
&:hover {
|
||||
> .submenu {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
> a {
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
column-gap: 5px;
|
||||
|
||||
span {
|
||||
color: $cTxtBlack;
|
||||
font-size: 16px;
|
||||
font-size: 15px;
|
||||
font-family: $font3;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
margin-bottom: -4px;
|
||||
|
||||
@include respond-below(lg) {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.lvl-3-big) {
|
||||
@include respond-below(xl) {
|
||||
column-gap: 20px;
|
||||
}
|
||||
@include respond-below(lg) {
|
||||
column-gap: 15px;
|
||||
}
|
||||
}
|
||||
&.lvl-2 {
|
||||
width: 150px;
|
||||
|
||||
> li {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
> a {
|
||||
span {
|
||||
text-shadow: 0px 0.3px 0px $cTxtBlack,
|
||||
0px -0.3px 0px $cTxtBlack, 0.3px 0px 0px $cTxtBlack,
|
||||
-0.3px 0px 0px $cTxtBlack, -0.3px -0.3px 0px $cTxtBlack,
|
||||
0.3px 0.3px 0px $cTxtBlack, 0.3px -0.3px 0px $cTxtBlack,
|
||||
-0.3px 0.3px 0px $cTxtBlack, -0.3px 0.3px 0px $cTxtBlack;
|
||||
|
||||
&::before {
|
||||
width: 100%;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
.lvl-3 {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
> a {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
column-gap: 5px;
|
||||
text-decoration: none;
|
||||
transition: all 250ms ease-in-out;
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
color: $cTxtBlack;
|
||||
font-size: 16px;
|
||||
font-family: $font3;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
transition: all 250ms ease-in-out;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -10px;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 3px;
|
||||
background: $cTxtBlack;
|
||||
visibility: hidden;
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
transform: rotate(-90deg);
|
||||
width: 0;
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.lvl-3 {
|
||||
position: absolute;
|
||||
// left: calc(150px + 15px + 60px);
|
||||
left: 150px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
transition: all 250ms ease-in-out;
|
||||
padding-left: 75px;
|
||||
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
|
||||
&.lvl-3-big {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
column-gap: 60px;
|
||||
|
||||
> li,
|
||||
> .lvl-3-col > li {
|
||||
> a {
|
||||
text-decoration: none;
|
||||
|
||||
span {
|
||||
color: $cTxtBlack;
|
||||
font-size: 16px;
|
||||
font-family: $font3;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
> .lvl-3-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
row-gap: 30px;
|
||||
}
|
||||
|
||||
@include respond-below(lg) {
|
||||
column-gap: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.lvl-3-big) {
|
||||
> li {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 20px;
|
||||
|
||||
@include respond-below(lg) {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
> a {
|
||||
text-decoration: none;
|
||||
|
||||
span {
|
||||
color: $cTxtBlack;
|
||||
font-size: 20px;
|
||||
font-family: $font3;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
|
||||
@include respond-below(lg) {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-below(lg) {
|
||||
padding-left: 50px;
|
||||
}
|
||||
}
|
||||
&.lvl-4 {
|
||||
margin-top: 20px;
|
||||
> li {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 20px;
|
||||
|
||||
@include respond-below(lg) {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
> a {
|
||||
text-decoration: none;
|
||||
|
||||
span {
|
||||
color: $cTxtBlack;
|
||||
font-size: 20px;
|
||||
font-family: $font3;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
|
||||
@include respond-below(lg) {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.lvl-4 {
|
||||
margin-top: 20px;
|
||||
> li {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
> a {
|
||||
text-decoration: none;
|
||||
span {
|
||||
color: $cTxtBlack;
|
||||
font-size: 20px;
|
||||
font-family: $font3;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
@include respond-below(md) {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
transition: all 250ms ease-in-out;
|
||||
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
backdrop-filter: blur(10px);
|
||||
|
||||
&.visible {
|
||||
padding: 10px 0 50px;
|
||||
height: calc(100dvh - 110px) !important;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
|
||||
&.lvl-1 {
|
||||
max-width: 540px;
|
||||
width: 100%;
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
|
||||
> li {
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
> a {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 15px;
|
||||
border-left: 1px solid rgba(17, 14, 12, 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.lvl-2 {
|
||||
> li {
|
||||
> a {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.lvl-3 {
|
||||
> .lvl-3-col {
|
||||
> li {
|
||||
> a {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
|
||||
br {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
> li {
|
||||
> a {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.lvl-4 {
|
||||
> li {
|
||||
> a {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
&.active {
|
||||
> a {
|
||||
.arrow {
|
||||
transform: scale(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.parent {
|
||||
> a {
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $cTxtBlack;
|
||||
position: relative;
|
||||
padding-right: 30px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
span {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $cTxtBlack;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.lvl-1) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-width: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#header-mine-menu-btn {
|
||||
position: relative;
|
||||
height: 20px;
|
||||
width: 33px;
|
||||
// position: fixed;
|
||||
// bottom: 10px;
|
||||
// right: 10px;
|
||||
// color: #fff;
|
||||
// background: #000;
|
||||
display: none;
|
||||
z-index: 9999;
|
||||
// line-height: 50px;
|
||||
// text-align: center;
|
||||
// font-size: 25px;
|
||||
cursor: pointer;
|
||||
// @include border-radius(50%);
|
||||
overflow: hidden;
|
||||
|
||||
&.active {
|
||||
&::before {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%) rotate(45deg);
|
||||
}
|
||||
&::after {
|
||||
bottom: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%) rotate(-45deg);
|
||||
}
|
||||
|
||||
span.line {
|
||||
transform: translateX(calc(100% + 2px));
|
||||
}
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #000;
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #000;
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
|
||||
span.line {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #000;
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
|
||||
@include respond-below(md) {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// $img = $parent ? "<img src='/upload/filemanager/icon/arrow-down.svg'>" : '';
|
||||
// return "<a href=\"{$item_url}\"><span>{$item_title}</span>{$img}</a>";
|
||||
// }
|
||||
function nav_item($id = false, $lang = false, $parent = false, $cURL = false, $cTitle = false) {
|
||||
function nav_item($id = false, $lang = false, $parent = false, $cURL = false, $cTitle = false, $status = true) {
|
||||
if (is_array($id)) {
|
||||
$args = $id;
|
||||
$id = $args['id'] ?? false;
|
||||
@@ -31,13 +31,18 @@
|
||||
$parent = $args['parent'] ?? false;
|
||||
$cURL = $args['cURL'] ?? false;
|
||||
$cTitle = $args['cTitle'] ?? false;
|
||||
$status = $args['status'] ?? true;
|
||||
}
|
||||
|
||||
$item_url = $cURL ?: \front\factory\Pages::lang_url($id, $lang);
|
||||
$item_title = $cTitle ?: \front\factory\Pages::page_details($id, $lang)['language']['title'];
|
||||
$img = $parent ? "<img src='/upload/filemanager/icon/arrow-down.svg'>" : '';
|
||||
$img = $parent ? "<i class='arrow'><img src='/upload/filemanager/icon/arrow-down.svg'></i>" : '';
|
||||
|
||||
return "<a href=\"{$item_url}\"><span>{$item_title}</span>{$img}</a>";
|
||||
if ($status) {
|
||||
return "<a href=\"{$item_url}\"><span>{$item_title}</span>{$img}</a>";
|
||||
} else {
|
||||
return "<a class=\"disabled\"><span>{$item_title}</span>{$img}</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -55,134 +60,143 @@
|
||||
|
||||
<ul class="lvl-1">
|
||||
<!-- item 1 -->
|
||||
<?php if(page_status(2, $lang_id)): ?>
|
||||
<li>
|
||||
<li class="parent">
|
||||
<?= nav_item(2, $lang_id, true); ?>
|
||||
|
||||
<div class="submenu">
|
||||
<div class="container">
|
||||
<ul class="lvl-2 ">
|
||||
<!-- item 1-1 -->
|
||||
<?php if(page_status(9, $lang_id)): ?>
|
||||
<li>
|
||||
<li class="parent">
|
||||
<?= nav_item(9, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-3 lvl-3-big">
|
||||
<!-- item 1-1-1 -->
|
||||
<?php if(page_status(34, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(34, $lang_id); ?>
|
||||
<li class="parent">
|
||||
<?= nav_item(34, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-1-1-1 -->
|
||||
<?php if(page_status(16, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(16, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-1-1-2 -->
|
||||
<?php if(page_status(73, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(73, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-1-1-3 -->
|
||||
<?php if(page_status(82, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(82, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-1-1-4 -->
|
||||
<?php if(page_status(36, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(36, $lang_id); ?>
|
||||
<?= nav_item(['id' => 36, 'lang' => $lang_id, 'cTitle' => 'VP - 70']); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-1-1-5 -->
|
||||
<?php if(page_status(37, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(37, $lang_id); ?>
|
||||
<?= nav_item(['id' => 37, 'lang' => $lang_id, 'cTitle' => 'VP - 74']); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-1-1-6 -->
|
||||
<?php if(page_status(39, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(39, $lang_id); ?>
|
||||
<?= nav_item(['id' => 39, 'lang' => $lang_id, 'cTitle' => 'VP - 82']); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-1-2 -->
|
||||
<?php if(page_status(32, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(32, $lang_id); ?>
|
||||
<li class="parent">
|
||||
<?= nav_item(32, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-1-2-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-68', 'cTitle' => 'VD-68']); ?>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-68', 'cTitle' => 'VD - 68']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-2-2 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-78', 'cTitle' => 'VD-78']); ?>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-78', 'cTitle' => 'VD - 78']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-2-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-92', 'cTitle' => 'VD-92']); ?>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-92', 'cTitle' => 'VD - 92']); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-1-3 -->
|
||||
<?php if(page_status(33, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(33, $lang_id); ?>
|
||||
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-1-3-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-68', 'cTitle' => 'VD-68']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-3-2 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-78', 'cTitle' => 'VD-78']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-3-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniane/#vd-92', 'cTitle' => 'VD-92']); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<div class="lvl-3-col">
|
||||
<!-- item 1-1-3 -->
|
||||
<li class="parent">
|
||||
<?= nav_item(['id' => 33, 'lang' => $lang_id, 'parent' => true, 'cTitle' => 'Okna Hybrydowe<br/> drewno + aluminium']); ?>
|
||||
|
||||
<!-- item 1-1-4 -->
|
||||
<?php if(page_status(34, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(34, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-1-3-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniano-aluminiowe', 'cTitle' => 'VDA - 68']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-3-2 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniano-aluminiowe', 'cTitle' => 'VDA - 78(96) ']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-3-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna-drewniano-aluminiowe', 'cTitle' => 'VDA - 116 PASSIV']); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<!-- item 1-1-4 -->
|
||||
<li class="parent">
|
||||
<?= nav_item(['parent' => true, 'cTitle' => 'Okna Hybrydowe<br/> PVC + aluminium', 'status' => false]); ?>
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-1-4-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VPA - 70 (82)', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-1-4-2 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VPA - 76 (88)', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-1-4-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VPA - 82 (94)', 'status' => false]); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</div>
|
||||
|
||||
<!-- item 1-1-5 -->
|
||||
<?php if(page_status(34, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(34, $lang_id); ?>
|
||||
<li class="parent">
|
||||
<?= nav_item(35, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-1-5-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna/okna-aluminiowe/#VA-75', 'cTitle' => 'VA - 75']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-5-2 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna/okna-aluminiowe/#VA-79N', 'cTitle' => 'VA - 79N']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-5-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/okna/okna-aluminiowe/#VA-86N', 'cTitle' => 'VA - 86N']); ?>
|
||||
</li>
|
||||
<!-- item 1-1-5-4 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VA - 102 HI PASSIV', 'status' => false]); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-2 -->
|
||||
<?php if(page_status(41, $lang_id)): ?>
|
||||
<li>
|
||||
<li class="parent">
|
||||
<?= nav_item(41, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-3">
|
||||
@@ -200,190 +214,222 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-3 -->
|
||||
<?php if(page_status(42, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(42, $lang_id); ?>
|
||||
<li class="parent">
|
||||
<?= nav_item(42, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-3 lvl-3-big">
|
||||
<!-- item 1-3-1 -->
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>Lorem Ipsum</span>
|
||||
</a>
|
||||
<li class="parent">
|
||||
<?= nav_item(['id' => 42, 'lang' => $lang_id, 'parent' => true, 'cTitle' => 'PCV']); ?>
|
||||
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-3-1-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VEKAMOVE 76', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-1-2 -->
|
||||
<li>
|
||||
<?= nav_item(['id' => 89, 'lang' => $lang_id]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-1-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/drzwi-tarasowe/#harmonijkowe' , 'cTitle' => 'Harmonijka']); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- item 1-3-2 -->
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>Lorem Ipsum</span>
|
||||
</a>
|
||||
<li class="parent">
|
||||
<?= nav_item(['id' => 42, 'lang' => $lang_id, 'parent' => true, 'cTitle' => 'Drewniane']); ?>
|
||||
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-3-2-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VD - 68 HS', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-2-2 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VD - 78 HS', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-2-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'VD - 92 HS', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-2-4 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/drzwi-tarasowe/#harmonijkowe' , 'cTitle' => 'Harmonijka']); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- item 1-3-3 -->
|
||||
<li class="parent">
|
||||
<?= nav_item(['id' => 42, 'lang' => $lang_id, 'parent' => true, 'cTitle' => 'Aluminiowe']); ?>
|
||||
|
||||
<ul class="lvl-4">
|
||||
<!-- item 1-3-3-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'AS 178 pro slim HS', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-3-2 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'MB 77 HS ', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-3-3 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'MB Slide', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-3-3-4 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/drzwi-tarasowe/#harmonijkowe' , 'cTitle' => 'Harmonijka']); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-4 -->
|
||||
<?php if(page_status(11, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(11, $lang_id); ?>
|
||||
<li class="parent">
|
||||
<?= nav_item(11, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-3">
|
||||
<!-- item 1-4-1 -->
|
||||
<?php if(page_status(43, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(43, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-4-2 -->
|
||||
<?php if(page_status(44, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(44, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-4-3 -->
|
||||
<?php if(page_status(45, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(45, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-4-3 -->
|
||||
<li>
|
||||
<?= nav_item(44, $lang_id); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-5 -->
|
||||
<?php if(page_status(12, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(12, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-6 -->
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>Fasady</span>
|
||||
</a>
|
||||
<?= nav_item(['id' => 106, 'lang' => $lang_id, 'status' => false]); ?>
|
||||
</li>
|
||||
|
||||
<!-- item 1-7 -->
|
||||
<?php if(page_status(13, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(13, $lang_id); ?>
|
||||
<li class="parent">
|
||||
<?= nav_item(13, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-3">
|
||||
<!-- item 1-7-1 -->
|
||||
<li>
|
||||
<?= nav_item(['id' => 51, 'lang' => $lang_id, 'cTitle' => 'Szklenie']); ?>
|
||||
</li>
|
||||
<!-- item 1-7-2 -->
|
||||
<li>
|
||||
<?= nav_item(['id' => 57, 'lang' => $lang_id, 'cTitle' => 'Szprosy']); ?>
|
||||
</li>
|
||||
<!-- item 1-7-3 -->
|
||||
<li>
|
||||
<?= nav_item(['id' => 52, 'lang' => $lang_id, 'cTitle' => 'Klamki i pochwyty']); ?>
|
||||
</li>
|
||||
<!-- item 1-7-4 -->
|
||||
<li>
|
||||
<?= nav_item(['id' => 50, 'lang' => $lang_id, 'cTitle' => 'Okucia']); ?>
|
||||
</li>
|
||||
<!-- item 1-7-5 -->
|
||||
<li>
|
||||
<?= nav_item(['cTitle' => 'Systemy wentylacji', 'status' => false]); ?>
|
||||
</li>
|
||||
<!-- item 1-7-6 -->
|
||||
<li>
|
||||
<?= nav_item(['id' => 55, 'lang' => $lang_id, 'cTitle' => 'Moskitiery']); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-8 -->
|
||||
<?php if(page_status(14, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(14, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 1-9 -->
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>BESTSELLER</span>
|
||||
</a>
|
||||
<li class="parent">
|
||||
<?= nav_item(['cTitle' => 'BESTSELLER', 'parent' => true, 'status' => false]); ?>
|
||||
|
||||
<ul class="lvl-3">
|
||||
<!-- item 1-9-1 -->
|
||||
<?php if(page_status(16, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(16, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<!-- item 1-9-2 -->
|
||||
<?php if(page_status(82, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(82, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<!-- item 1-9-3 -->
|
||||
<?php if(page_status(15, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(15, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<!-- item 1-9-4 -->
|
||||
<?php if(page_status(83, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(83, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 2 -->
|
||||
<?php if(page_status(4, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(4, $lang_id, true); ?>
|
||||
<li class="parent">
|
||||
<?= nav_item(['cTitle' => 'Firma', 'parent' => true, 'status' => false]); ?>
|
||||
|
||||
<div class="submenu">
|
||||
<div class="container">
|
||||
<ul class="lvl-2">
|
||||
<!-- item 2-1 -->
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>Lorem 1</span>
|
||||
</a>
|
||||
<?= nav_item(18, $lang_id); ?>
|
||||
</li>
|
||||
|
||||
<!-- item 2-2 -->
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>Lorem 2</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>Lorem 3</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<span>Lorem 4</span>
|
||||
</a>
|
||||
<?= nav_item(19, $lang_id); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 3 -->
|
||||
<?php if(page_status(6, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(6, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 4 -->
|
||||
<?php if(page_status(102, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(102, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 5 -->
|
||||
<?php if(page_status(100, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(100, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- item 6 -->
|
||||
<?php if(page_status(88, $lang_id)): ?>
|
||||
<li>
|
||||
<?= nav_item(88, $lang_id); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div id="header-mine-menu-btn">
|
||||
<span class="line"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header-action">
|
||||
@@ -408,4 +454,37 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
<script class="footer" type="text/javascript">
|
||||
$(window).resize(function() {
|
||||
windowsize = $(window).width();
|
||||
});
|
||||
|
||||
$( 'body' ).on( click_event, '#header-mine-menu-btn', function()
|
||||
{
|
||||
if ( windowsize <= 991 )
|
||||
{
|
||||
if ( $( this ).hasClass( 'active' ) )
|
||||
{
|
||||
$( this ).removeClass( 'active' );
|
||||
$( '#header-mine-menu' ).removeClass( 'visible' );
|
||||
$( '#header-mine-menu-btn i' ).addClass( 'fa-bars' ).removeClass( 'fa-times' );
|
||||
}
|
||||
else
|
||||
{
|
||||
$( this ).addClass( 'active' );
|
||||
$( '#header-mine-menu' ).addClass( 'visible' );
|
||||
$( '#header-mine-menu-btn i' ).removeClass( 'fa-bars' ).addClass( 'fa-times' );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if ( windowsize <= 991 ) {
|
||||
$('body').on(click_event, '#header-mine-menu .arrow', function(e) {
|
||||
e.preventDefault();
|
||||
$(this).parent().parent().toggleClass('active');
|
||||
$(this).parent().parent().find('ul:first').slideToggle();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user