@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | $items = Ecommerce\Item::getList($selectOptions); |
333 | 333 | $items = Ecommerce\Item\Param::getList([ |
334 | 334 | 'where' => ['item_id', array_keys($items), 'IN'], |
335 | - 'join' => [[Ecommerce\Item\Option::table(), Ecommerce\Item\Option::index() . ' = ' . \Ecommerce\Item\Param::colPrefix() .Ecommerce\Item\Option::index(). ' and ' . \Ecommerce\Item\Option::colPrefix() . 'searchable = 1', 'inner']], |
|
335 | + 'join' => [[Ecommerce\Item\Option::table(), Ecommerce\Item\Option::index() . ' = ' . \Ecommerce\Item\Param::colPrefix() . Ecommerce\Item\Option::index() . ' and ' . \Ecommerce\Item\Option::colPrefix() . 'searchable = 1', 'inner']], |
|
336 | 336 | 'distinct' => \Ecommerce\Item\Option::index() |
337 | 337 | ]); |
338 | 338 | return $items; |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | if (is_array($counts)) { |
366 | 366 | $sum = 0; |
367 | 367 | foreach ($counts as $count) { |
368 | - $sum +=$count['count']; |
|
368 | + $sum += $count['count']; |
|
369 | 369 | } |
370 | 370 | return $sum; |
371 | 371 | } |
@@ -5,15 +5,15 @@ |
||
5 | 5 | <h3>Вход</h3> |
6 | 6 | <div class="form-group"> |
7 | 7 | <?php |
8 | - $socials = Users\Social::getList(['where' => ['active', 1]]); |
|
9 | - if ($socials) { |
|
10 | - echo 'Войти через: '; |
|
11 | - foreach (Users\Social::getList(['where' => ['active', 1]]) as $social) { |
|
12 | - $text = $social->image ? '<img src ="' . Statics::file($social->image->path, '25x25', 'q') . '">' : $social->name(); |
|
13 | - echo "<a href = '/users/social/auth/{$social->code}'>{$text}</a> "; |
|
14 | - } |
|
15 | - } |
|
16 | - ?> |
|
8 | + $socials = Users\Social::getList(['where' => ['active', 1]]); |
|
9 | + if ($socials) { |
|
10 | + echo 'Войти через: '; |
|
11 | + foreach (Users\Social::getList(['where' => ['active', 1]]) as $social) { |
|
12 | + $text = $social->image ? '<img src ="' . Statics::file($social->image->path, '25x25', 'q') . '">' : $social->name(); |
|
13 | + echo "<a href = '/users/social/auth/{$social->code}'>{$text}</a> "; |
|
14 | + } |
|
15 | + } |
|
16 | + ?> |
|
17 | 17 | </div> |
18 | 18 | <form action = '' method = 'POST' > |
19 | 19 | <div class ='row'> |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Menu module |
|
4 | - * |
|
5 | - * @author Alexey Krupskiy <[email protected]> |
|
6 | - * @link http://inji.ru/ |
|
7 | - * @copyright 2015 Alexey Krupskiy |
|
8 | - * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE |
|
9 | - */ |
|
3 | + * Menu module |
|
4 | + * |
|
5 | + * @author Alexey Krupskiy <[email protected]> |
|
6 | + * @link http://inji.ru/ |
|
7 | + * @copyright 2015 Alexey Krupskiy |
|
8 | + * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE |
|
9 | + */ |
|
10 | 10 | class Menu extends Module |
11 | 11 | { |
12 | 12 |