Skip to content

Commit

Permalink
fix DOM errors in menu (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerio-bozzolan committed Aug 9, 2018
1 parent ea19a3e commit e70ab9d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions includes/class-Printmenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ static function spawn($uid = null, $level = 0, $args = [] ) {
?>

<?php if($level === 0): ?>
<div class="nav-dropdown collapse pull-xs-right nav navbar-nav navbar-toggleable-sm" id="exCollapsingNavbar">
<div class="nav-dropdown collapse pull-xs-right nav navbar-nav navbar-toggleable-sm" id="exCollapsingNavbar">
<?php else: ?>
<div>
<div>
<?php endif ?>

<?php foreach($menuEntries as $menuEntry): ?>

<ul class="navbar-nav nav-dropdown">
<?php foreach($menuEntries as $menuEntry): ?>
<li class="nav-item">
<?php echo HTML::a(
$menuEntry->url,
Expand All @@ -52,11 +52,10 @@ static function spawn($uid = null, $level = 0, $args = [] ) {
<?php self::spawn( $menuEntry->uid, $level + 1, $args ) ?>

</li>

<?php endforeach ?>

</ul>
<?php
</div>
<!-- /.navbar --><?php
}

}

0 comments on commit e70ab9d

Please sign in to comment.