@@ -17,12 +17,12 @@ |
||
17 | 17 | <div class="row"> |
18 | 18 | <div class="col-sm-7 ecommerce-showoptions-sort"> |
19 | 19 | <span class="caption">Сортировка:</span> |
20 | - <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => sortToggler('price','asc')]])); ?>">По цене<?= sortDirectionIcon('price'); ?></a> |
|
21 | - <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => sortToggler('sales','desc')]])); ?>">По популярности<?= sortDirectionIcon('sales'); ?></a> |
|
20 | + <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => sortToggler('price', 'asc')]])); ?>">По цене<?= sortDirectionIcon('price'); ?></a> |
|
21 | + <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => sortToggler('sales', 'desc')]])); ?>">По популярности<?= sortDirectionIcon('sales'); ?></a> |
|
22 | 22 | <?php |
23 | 23 | if (!empty(App::$cur->ecommerce->config['isset_sort'])) { |
24 | 24 | ?> |
25 | - <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['isset' => sortToggler('isset','desc')]])); ?>">По наличию<?= sortDirectionIcon('isset'); ?></a> |
|
25 | + <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['isset' => sortToggler('isset', 'desc')]])); ?>">По наличию<?= sortDirectionIcon('isset'); ?></a> |
|
26 | 26 | <?php |
27 | 27 | } |
28 | 28 | ?> |
@@ -65,7 +65,7 @@ |
||
65 | 65 | ['user_id', $userId], |
66 | 66 | ['hash', $hash] |
67 | 67 | ]); |
68 | - if(!$session){ |
|
68 | + if (!$session) { |
|
69 | 69 | if (!headers_sent()) { |
70 | 70 | setcookie($this->cookiePrefix . "_user_session_hash", '', 0, "/"); |
71 | 71 | setcookie($this->cookiePrefix . "_user_id", '', 0, "/"); |
@@ -16,11 +16,11 @@ |
||
16 | 16 | public static $cols = [ |
17 | 17 | 'name' => ['type' => 'text'], |
18 | 18 | 'code' => ['type' => 'text'], |
19 | - 'message' => ['type' => 'dataManager','relation'=>'messages'], |
|
19 | + 'message' => ['type' => 'dataManager', 'relation'=>'messages'], |
|
20 | 20 | ]; |
21 | 21 | public static $dataManagers = [ |
22 | 22 | 'manager' => [ |
23 | - 'cols' => ['name', 'code','message'] |
|
23 | + 'cols' => ['name', 'code', 'message'] |
|
24 | 24 | ] |
25 | 25 | ]; |
26 | 26 | public static $forms = [ |
@@ -20,7 +20,7 @@ |
||
20 | 20 | }, |
21 | 21 | 'getValueText' => function ($value, $params) { |
22 | 22 | $value = \Ecommerce\Delivery\Field\Item::get($value); |
23 | - if($value){ |
|
23 | + if ($value) { |
|
24 | 24 | return $value->value; |
25 | 25 | } |
26 | 26 | return ''; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | <div class="form-search-results"></div> |
39 | 39 | <script> |
40 | - window.autocomplete<?=$id;?> = function (element, snippet, snippetParams) { |
|
40 | + window.autocomplete<?=$id; ?> = function (element, snippet, snippetParams) { |
|
41 | 41 | element.element.onkeyup = function () { |
42 | 42 | var inputContainer = element.element.parentNode; |
43 | 43 | var selectedDiv = inputContainer.querySelector('.form-search-cur'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | }; |
91 | 91 | inji.onLoad(function () { |
92 | 92 | setTimeout(function () { |
93 | - new window.autocomplete<?=$id;?>(inji.get('#<?=$id;?>'), '<?=$options['snippet'];?>', <?=json_encode($options['snippetParams']);?>); |
|
93 | + new window.autocomplete<?=$id; ?>(inji.get('#<?=$id; ?>'), '<?=$options['snippet']; ?>', <?=json_encode($options['snippetParams']); ?>); |
|
94 | 94 | },100); |
95 | 95 | }); |
96 | 96 | </script> |