[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
|
@ -28,3 +28,5 @@
|
|||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div><!--end div.site-wrap-->
|
||||
|
|
|
@ -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) : ?>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// -------------------------------------------
|
||||
|
||||
// available switches:
|
||||
$switches = array("bs_util", "bs_collapse", "bs_carousel", "plg_masonry");
|
||||
$switches = array("bs_util", "bs_carousel", "plg_masonry");
|
||||
$jquery = false;
|
||||
|
||||
foreach ($switches as $switch) {
|
||||
|
@ -31,9 +31,6 @@ foreach ($switches as $switch) {
|
|||
if($bs_util) {
|
||||
echo js('assets/vendors/bootstrap/js/dist/util.js');
|
||||
}
|
||||
if($bs_collapse) {
|
||||
echo js('assets/vendors/bootstrap/js/dist/collapse.js');
|
||||
}
|
||||
if($bs_carousel) {
|
||||
echo js('assets/vendors/bootstrap/js/dist/carousel.js');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue