+
' . $this->getChildMenuItems($item) . '
@@ -122,7 +122,7 @@ public function getMenuWithDropDownWrapper($item)
public function getMultiLevelDropdownWrapper($item)
{
return '
-
+
' . $item->getIcon() . '
' . $item->title . '
diff --git a/src/Presenters/Admin/MetronicHorizontal.php b/src/Presenters/Admin/MetronicHorizontal.php
index a27cab4..04fb8ae 100644
--- a/src/Presenters/Admin/MetronicHorizontal.php
+++ b/src/Presenters/Admin/MetronicHorizontal.php
@@ -10,47 +10,54 @@
use Akaunting\Menu\Presenters\Presenter;
-class MetronicHorizontal extends Presenter {
+class MetronicHorizontal extends Presenter
+{
/**
* {@inheritdoc }
*/
- public function getOpenTagWrapper() {
+ public function getOpenTagWrapper()
+ {
return PHP_EOL . '' . PHP_EOL;
}
/**
* {@inheritdoc }
*/
- public function getMenuWithoutDropdownWrapper($item) {
+ public function getMenuWithoutDropdownWrapper($item)
+ {
return 'getActiveState($item) . '>' . $item->getIcon() . '';
}
/**
* {@inheritdoc }
*/
- public function getActiveState($item) {
+ public function getActiveState($item)
+ {
return \Request::is($item->getRequest()) ? ' class="m-menu__item m-menu__item--rel active"' : 'class="m-menu__item m-menu__item--rel"';
}
/**
* {@inheritdoc }
*/
- public function getDividerWrapper() {
+ public function getDividerWrapper()
+ {
return '';
}
/**
* {@inheritdoc }
*/
- public function getMenuWithDropDownWrapper($item) {
+ public function getMenuWithDropDownWrapper($item)
+ {
if ($item->title == '...') {
return '
' . PHP_EOL;
}
-
}
diff --git a/src/Presenters/Foundation/Zurb.php b/src/Presenters/Foundation/Zurb.php
index 4259f58..7903895 100644
--- a/src/Presenters/Foundation/Zurb.php
+++ b/src/Presenters/Foundation/Zurb.php
@@ -28,7 +28,7 @@ public function getCloseTagWrapper()
*/
public function getMenuWithoutDropdownWrapper($item)
{
- return '
getActiveState($item).'>'.$item->title.'';
+ return '
getActiveState($item) . '>' . $item->title . '';
}
/**
@@ -53,9 +53,9 @@ public function getDividerWrapper()
public function getMenuWithDropDownWrapper($item)
{
return '
- '.$item->title.'
+ ' . $item->title . '
' . PHP_EOL;
}
@@ -67,10 +67,10 @@ public function getMenuWithDropDownWrapper($item)
public function getMultiLevelDropdownWrapper($item)
{
return '
- '.$item->title . '
+ ' . $item->title . '
- '. PHP_EOL;
+ ' . PHP_EOL;
}
-}
\ No newline at end of file
+}