[SITE] new mobile menu (plain CSS) & removed animation assets of bootstrap
This commit is contained in:
parent
2ecf9ea656
commit
1544f888ca
21 changed files with 176 additions and 124 deletions
|
@ -20,24 +20,27 @@ if ($page->depth() == 1) {
|
|||
}
|
||||
?>
|
||||
|
||||
<div class="collapse hidden-sm-up" id="exCollapsingNavbar">
|
||||
<nav>
|
||||
<ul class="nav mobileNav">
|
||||
<li><a href="<?php echo $site->url()?>">Home</a></li>
|
||||
<?php foreach ($site->children()->visible() as $p) : ?>
|
||||
<li><a href="<?php echo $p->url()?>" <?php echo ($page == $p)?'class="active"':'' ?>><?php echo $p->title() ?></a></li>
|
||||
<?php if ($p->hasVisibleChildren() && $p->template() != 'blog') : ?>
|
||||
<ul class="">
|
||||
<?php foreach ($p->children()->visible() as $c) : ?>
|
||||
<li><a href="<?php echo $c->url()?>" <?php echo ($page == $c)?'class="active"':'' ?>><?php echo $c->title() ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
||||
<label class="hidden-sm-up" for="nav-trigger">Menü</label>
|
||||
|
||||
<nav class="mobile">
|
||||
<ul class="nav mobileNav">
|
||||
<li><a href="<?php echo $site->url()?>">Home</a></li>
|
||||
<?php foreach ($site->children()->visible() as $p) : ?>
|
||||
<li><a href="<?php echo $p->url()?>" <?php echo ($page == $p)?'class="active"':'' ?>><?php echo $p->title() ?></a></li>
|
||||
<?php if ($p->hasVisibleChildren() && $p->template() != 'blog') : ?>
|
||||
<ul class="">
|
||||
<?php foreach ($p->children()->visible() as $c) : ?>
|
||||
<li><a href="<?php echo $c->url()?>" <?php echo ($page == $c)?'class="active"':'' ?>><?php echo $c->title() ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="site-wrap">
|
||||
<header class="section">
|
||||
<div class="container">
|
||||
<?php if ($img = $site->images()->find($site->title_image())) : ?>
|
||||
|
@ -47,10 +50,6 @@ if ($page->depth() == 1) {
|
|||
<?php endif; ?>
|
||||
|
||||
<nav aria-hidden="true">
|
||||
<button class="btn btn-lg btn-secondary navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#exCollapsingNavbar">
|
||||
Menü
|
||||
</button>
|
||||
|
||||
<ul class="nav hidden-xs-down">
|
||||
<?php if(!$subnav) : ?>
|
||||
<?php foreach ($site->children()->visible() as $p) : ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue