@@ -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; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | $options = []; |
| 35 | - $itemParams = \Ecommerce\Item\Param::getList(['where' => ['item_id', $this->model->id],'key'=>'item_option_id']); |
|
| 35 | + $itemParams = \Ecommerce\Item\Param::getList(['where' => ['item_id', $this->model->id], 'key'=>'item_option_id']); |
|
| 36 | 36 | foreach ($this->object->object->params as $param) { |
| 37 | 37 | if ($param->type == 'paramValue' && isset($itemParams[$param->value])) { |
| 38 | 38 | $options[$param->value] = $itemParams[$param->value]->value; |