If that's the case - there is a lot to do:
templates/gk_musicstate/layouts/default.php
find this block of code:
- Code: Select all
<div id="gkHeaderNav">
<?php $this->layout->loadBlock('logo'); ?>
<?php if($this->API->get('menu_type', 'aside') == 'classic') : ?>
<?php if($this->API->get('show_menu', 1)) : ?>
<div id="gkMobileMenu"> <i id="mobile-menu-toggler" class="fa fa-reorder"></i>
<select onChange="window.location.href=this.value;">
<?php
$this->mobilemenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mobilemenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</select>
</div>
<?php endif; ?>
<?php if($this->API->get('show_menu', 1)) : ?>
<div id="gkMainMenu">
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</div>
<?php endif; ?>
<?php else : ?>
<i id="aside-menu-toggler" class="fa fa-reorder"></i>
<?php endif; ?>
<?php if($this->API->modules('login')) : ?>
<a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
<?php endif; ?>
</div>
and change it to:
- Code: Select all
<div id="gkHeaderNav">
<?php $this->layout->loadBlock('logo'); ?>
<div id="gkMainMenu">
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</div>
<i id="aside-menu-toggler" class="fa fa-reorder"></i>
<?php if($this->API->modules('login')) : ?>
<a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
<?php endif; ?>
</div>
Now find block:
- Code: Select all
<?php if($this->API->get('menu_type', 'aside') == 'aside') : ?>
<i id="static-aside-menu-toggler" class="fa fa-reorder"></i>
<i id="close-menu" class="fa fa-times"></i>
<nav id="aside-menu">
<div>
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</div>
</nav>
<?php endif; ?>
and change it to:
- Code: Select all
<i id="static-aside-menu-toggler" class="fa fa-reorder"></i>
<i id="close-menu" class="fa fa-times"></i>
<nav id="aside-menu">
<div>
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
</div>
</nav>
(in short - remove first and las line).
Now, in file:
templates/gk_musicstate/layouts/blocks/head.php
change:
- Code: Select all
if($this->API->get('menu_type', 'aside') == 'aside') {
$this->API->addCSS($this->API->URLtemplate() . '/css/menu/menu.aside.css');
} else {
$this->API->addCSS($this->API->URLtemplate() . '/css/menu/menu.css');
}
to:
- Code: Select all
$this->API->addCSS($this->API->URLtemplate() . '/css/menu/menu.aside.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/menu/menu.css');
That will make both codes to show, but the problem lies in styling - classic menu styling doesn't work well with aside menu styling - as they both uses common classes, so there should be a lot of changes to do in css'es - sadly this is way beyond our support.