@@ -10,10 +10,10 @@ discard block |
||
10 | 10 | <div class="form-group"> |
11 | 11 | <label>Регистрация через соц.сети</label><br /> |
12 | 12 | <?php |
13 | - foreach (Users\Social::getList(['where' => ['active', 1]]) as $social) { |
|
14 | - echo "<a href = '/users/social/auth/{$social->code}'>{$social->name()}</a> "; |
|
15 | - } |
|
16 | - ?> |
|
13 | + foreach (Users\Social::getList(['where' => ['active', 1]]) as $social) { |
|
14 | + echo "<a href = '/users/social/auth/{$social->code}'>{$social->name()}</a> "; |
|
15 | + } |
|
16 | + ?> |
|
17 | 17 | </div> |
18 | 18 | <?php |
19 | 19 | } |
@@ -29,15 +29,15 @@ discard block |
||
29 | 29 | <?php $form->input('date', 'user_birthday', 'Дата рождения'); ?> |
30 | 30 | <?php $form->input('text', 'user_city', 'Город'); ?> |
31 | 31 | <?php |
32 | - if (!empty(App::$cur->users->config['invites'])) { |
|
33 | - ?> |
|
32 | + if (!empty(App::$cur->users->config['invites'])) { |
|
33 | + ?> |
|
34 | 34 | <div class ='form-group'> |
35 | 35 | <label><?= !empty(App::$cur->users->config['invitesName']) ? App::$cur->users->config['invitesName'] : 'Код приглашения'; ?></label> |
36 | 36 | <input type ='text' name ='invite_code' class ='form-control' value ="<?= (isset($_POST['invite_code']) ? $_POST['invite_code'] : ((!empty($_COOKIE['invite_code']) ? $_COOKIE['invite_code'] : ((!empty($_GET['invite_code']) ? $_GET['invite_code'] : ''))))); ?>" /> |
37 | 37 | </div> |
38 | 38 | <?php |
39 | - } |
|
40 | - ?> |
|
39 | + } |
|
40 | + ?> |
|
41 | 41 | </div> |
42 | 42 | <div class="col-sm-6"> |
43 | 43 | <div class ='form-group'> |
@@ -26,20 +26,20 @@ |
||
26 | 26 | </div> |
27 | 27 | <div class="col-sm-9"> |
28 | 28 | <?php |
29 | - if (empty($activeSection) || empty($sections[$activeSection]['fullWidget'])) { |
|
30 | - foreach ($sections as $section) { |
|
31 | - if (!empty($section['smallWidget'])) { |
|
32 | - $widgetName = is_array($section['smallWidget']) ? $section['smallWidget']['widget'] : $section['smallWidget']; |
|
33 | - $widgetSize = !empty($section['smallWidget']['size']) ? $section['smallWidget']['size'] : 1; |
|
34 | - ?> |
|
29 | + if (empty($activeSection) || empty($sections[$activeSection]['fullWidget'])) { |
|
30 | + foreach ($sections as $section) { |
|
31 | + if (!empty($section['smallWidget'])) { |
|
32 | + $widgetName = is_array($section['smallWidget']) ? $section['smallWidget']['widget'] : $section['smallWidget']; |
|
33 | + $widgetSize = !empty($section['smallWidget']['size']) ? $section['smallWidget']['size'] : 1; |
|
34 | + ?> |
|
35 | 35 | <div class="col-sm-<?= $widgetSize * 4; ?>" style="margin-bottom: 10px;"><?= $this->widget($widgetName); ?></div> |
36 | 36 | <?php |
37 | - } |
|
38 | - } |
|
39 | - } else { |
|
40 | - $this->widget($sections[$activeSection]['fullWidget']); |
|
41 | - } |
|
42 | - ?> |
|
37 | + } |
|
38 | + } |
|
39 | + } else { |
|
40 | + $this->widget($sections[$activeSection]['fullWidget']); |
|
41 | + } |
|
42 | + ?> |
|
43 | 43 | </div> |
44 | 44 | </div> |
45 | 45 | </div> |
@@ -10,12 +10,12 @@ discard block |
||
10 | 10 | <th></th> |
11 | 11 | </tr> |
12 | 12 | <?php |
13 | - foreach ($merchants as $merchant) { |
|
14 | - $allowCurrencies = $merchant->allowCurrencies($pay); |
|
15 | - if (!$allowCurrencies) { |
|
16 | - continue; |
|
17 | - } |
|
18 | - ?> |
|
13 | + foreach ($merchants as $merchant) { |
|
14 | + $allowCurrencies = $merchant->allowCurrencies($pay); |
|
15 | + if (!$allowCurrencies) { |
|
16 | + continue; |
|
17 | + } |
|
18 | + ?> |
|
19 | 19 | <tr> |
20 | 20 | <td> |
21 | 21 | <img src="<?= Statics::file($merchant->image ? $merchant->image->path : '/static/system/images/no-image.png', '150x150'); ?>" class="img-responsive" /> |
@@ -23,23 +23,23 @@ discard block |
||
23 | 23 | </td> |
24 | 24 | <td> |
25 | 25 | <?php |
26 | - foreach ($allowCurrencies as $allowCurrency) { |
|
27 | - $className = 'Money\MerchantHelper\\' . $merchant->object_name; |
|
28 | - $sum = $className::getFinalSum($pay, $allowCurrency); |
|
29 | - ?> |
|
26 | + foreach ($allowCurrencies as $allowCurrency) { |
|
27 | + $className = 'Money\MerchantHelper\\' . $merchant->object_name; |
|
28 | + $sum = $className::getFinalSum($pay, $allowCurrency); |
|
29 | + ?> |
|
30 | 30 | <b><?= $allowCurrency['currency']->name(); ?></b> |
31 | 31 | <a class="btn btn-primary" href ="/money/merchants/go/<?= $pay->id; ?>/<?= $merchant->id; ?>/<?= $allowCurrency['currency']->id; ?>">Оплатить <?= $sum; ?> <?= $allowCurrency['currency']->acronym(); ?></a> |
32 | 32 | <?php |
33 | - } |
|
34 | - ?> |
|
33 | + } |
|
34 | + ?> |
|
35 | 35 | </td> |
36 | 36 | <td width="100%"> |
37 | 37 | <?= $merchant->previewImage ? '<img src="' . $merchant->previewImage->path . '" class="img-responsive" />' : ''; ?> |
38 | 38 | </td> |
39 | 39 | </tr> |
40 | 40 | <?php |
41 | - } |
|
42 | - ?> |
|
41 | + } |
|
42 | + ?> |
|
43 | 43 | </table> |
44 | 44 | </div> |
45 | 45 | </div> |
46 | 46 | \ No newline at end of file |