@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function getOpenTagA($item) |
34 | 34 | { |
35 | - if($item->attributes['vue']){ |
|
35 | + if ($item->attributes['vue']) { |
|
36 | 36 | return PHP_EOL . '<router-link to="' . PHP_EOL; |
37 | 37 | } |
38 | 38 | return PHP_EOL . '<a href=">' . PHP_EOL; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function getCloseTagA($item) |
47 | 47 | { |
48 | - if($item->attributes['vue']){ |
|
48 | + if ($item->attributes['vue']) { |
|
49 | 49 | return PHP_EOL . '</router-link>' . PHP_EOL; |
50 | 50 | } |
51 | 51 | return PHP_EOL . '</a>' . PHP_EOL; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function getMenuWithoutDropdownWrapper($item) |
29 | 29 | { |
30 | 30 | //return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>' . $item->getIcon() . ' <span>' . $item->title . '</span></a></li>' . PHP_EOL; |
31 | - return '<li ' . $this->getActiveState($item) . '>'.$this->getOpenTagA($item).$item->getUrl() . '"' . $item->getAttributes() . '>' . $item->getIcon() . ' <span>' . $item->title . '</span>'.$this->getCloseTagA($item).'</li>' . PHP_EOL; |
|
31 | + return '<li ' . $this->getActiveState($item) . '>' . $this->getOpenTagA($item) . $item->getUrl() . '"' . $item->getAttributes() . '>' . $item->getIcon() . ' <span>' . $item->title . '</span>' . $this->getCloseTagA($item) . '</li>' . PHP_EOL; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |