@@ -43,9 +43,12 @@ |
||
| 43 | 43 | 'href' => 'https://oauth.yandex.ru/authorize?response_type=token&client_id=' . $model->appid . '&redirect_uri=' . Url::to('main/yandextoken'), |
| 44 | 44 | 'class' => 'btn-success' |
| 45 | 45 | ]) ?> |
| 46 | -<?php else: ?> |
|
| 46 | +<?php else { |
|
| 47 | + : ?> |
|
| 47 | 48 | <?= $this->bootstrap()->alert('warning', __('Create oauth application before get token')) ?> |
| 48 | -<?php endif; ?> |
|
| 49 | +<?php endif; |
|
| 50 | +} |
|
| 51 | +?> |
|
| 49 | 52 | |
| 50 | 53 | <?= $form->stop() ?> |
| 51 | 54 | |
@@ -82,7 +82,8 @@ discard block |
||
| 82 | 82 | 'href' => Url::to('main/yandexconnect'), |
| 83 | 83 | 'class' => 'btn-danger' |
| 84 | 84 | ]) ?> |
| 85 | - <?php else: ?> |
|
| 85 | + <?php else { |
|
| 86 | + : ?> |
|
| 86 | 87 | <div class="row"> |
| 87 | 88 | <div class="col-md-8"> |
| 88 | 89 | <canvas id="visitChart" width="100%" height="50"></canvas> |
@@ -91,7 +92,9 @@ discard block |
||
| 91 | 92 | <canvas id="sourcesChart" width="100%" height="90"></canvas> |
| 92 | 93 | </div> |
| 93 | 94 | </div> |
| 94 | - <?php endif; ?> |
|
| 95 | + <?php endif; |
|
| 96 | +} |
|
| 97 | +?> |
|
| 95 | 98 | </div> |
| 96 | 99 | </div> |
| 97 | 100 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php return [ |
| 2 | - 'oauth' => [ |
|
| 3 | - 'app_id' => null, |
|
| 4 | - 'token' => null, |
|
| 5 | - 'expires' => null |
|
| 6 | - ], |
|
| 7 | - 'metrika' => [ |
|
| 8 | - 'id' => null |
|
| 9 | - ] |
|
| 2 | + 'oauth' => [ |
|
| 3 | + 'app_id' => null, |
|
| 4 | + 'token' => null, |
|
| 5 | + 'expires' => null |
|
| 6 | + ], |
|
| 7 | + 'metrika' => [ |
|
| 8 | + 'id' => null |
|
| 9 | + ] |
|
| 10 | 10 | ]; |
| 11 | 11 | \ No newline at end of file |