@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | $code = 'main'; |
| 7 | 7 | } |
| 8 | 8 | $uid = Tools::randomString(); |
| 9 | -$childDraws = function($item, $childDraws, $uid, $activeFind) { |
|
| 9 | +$childDraws = function ($item, $childDraws, $uid, $activeFind) { |
|
| 10 | 10 | if ($item->childs(['order' => ['weight', 'asc']])) { |
| 11 | 11 | echo "<ul class ='dropdown-menu'>"; |
| 12 | 12 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | echo "</ul>"; |
| 24 | 24 | } |
| 25 | 25 | }; |
| 26 | -$activeFind = function($item, $activeFind) { |
|
| 26 | +$activeFind = function ($item, $activeFind) { |
|
| 27 | 27 | foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) { |
| 28 | 28 | if (urldecode($_SERVER['REQUEST_URI']) == $item->href) { |
| 29 | 29 | return true; |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | if (empty($code)) { |
| 7 | 7 | $code = 'main'; |
| 8 | 8 | } |
| 9 | -$childDraws = function($item, $childDraws, $activeFind) { |
|
| 9 | +$childDraws = function ($item, $childDraws, $activeFind) { |
|
| 10 | 10 | if ($item->childs(['order' => ['weight', 'asc']])) { |
| 11 | 11 | echo "<ul class ='list-unstyled'>"; |
| 12 | 12 | foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | echo "</ul>"; |
| 22 | 22 | } |
| 23 | 23 | }; |
| 24 | -$activeFind = function($item, $activeFind) { |
|
| 24 | +$activeFind = function ($item, $activeFind) { |
|
| 25 | 25 | foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) { |
| 26 | 26 | if (urldecode($_SERVER['REQUEST_URI']) == $item->href) { |
| 27 | 27 | return true; |