FEATURE: add divider before list of all content pages

This commit is contained in:
Michal Kváček
2016-09-04 02:21:44 +02:00
parent 66caf7ce05
commit 05efb6b9f2
+4 -1
View File
@@ -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>