FEATURE: add divider before list of all content pages
This commit is contained in:
@@ -35,6 +35,10 @@ class MetismenuPresenter extends Presenter
|
||||
*/
|
||||
public function getActiveState(MenuItem $item)
|
||||
{
|
||||
if ($item->isDivider()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$active = ' class="active open"';
|
||||
|
||||
if (empty($item->getChilds())) {
|
||||
@@ -71,7 +75,6 @@ class MetismenuPresenter extends Presenter
|
||||
public function getMenuWithDropDownWrapper($item)
|
||||
{
|
||||
$active = $this->getActiveState($item);
|
||||
|
||||
return '<li>
|
||||
<a ' . $active . ' href="#">' . $item->getIcon() . ' ' . $item->title . ' <i class="fa arrow"></i></a>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user