// wrong
public function renderMenu(&$menu) {
ob_start();
$menuname = (isset($this->args['style']) && $this->args['style'] == 'mainmenu') ? 'gf-menu gf-splitmenu' : 'menu';
?>
<?php if ($menu->getChildren()) :
// wrong ?>
<?php if (isset($this->args['style']) && $this->args['style'] == 'mainmenu'): ?>
<div class="gf-menu-device-container"></div>
// correct
public function renderMenu(&$menu) {
ob_start();
$menuname = (isset($this->args['style']) && $this->args['style'] == 'mainmenu') ? 'gf-menu gf-splitmenu' : 'menu';
?>
<?php if ($menu->getChildren()) :
// correct: menutype and responsive-menu !
?>
<?php if (isset($this->args['menutype']) && $this->args['menutype'] == 'mainmenu'): ?>
<div class="gf-menu-device-container responsive-type-<?php echo $this->args['responsive-menu']; ?>"></div>
<?php endif; ?>
Time to create page: 0.072 seconds