@@ -97,9 +97,12 @@ |
||
97 | 97 | <a href="#license" class="btn btn-success btn-block disabled" id="install-link"><?= __('Start install') ?></a> |
98 | 98 | </div> |
99 | 99 | </div> |
100 | -<?php else: ?> |
|
100 | +<?php else { |
|
101 | + : ?> |
|
101 | 102 | <?= \Ffcms\Templex\Url\Url::a(['main/index'], __('Check again'), ['class' => 'btn btn-warning btn-block']) ?> |
102 | -<?php endif; ?> |
|
103 | +<?php endif; |
|
104 | +} |
|
105 | +?> |
|
103 | 106 | <script> |
104 | 107 | $(document).ready(function () { |
105 | 108 | $('#agree-license').change(function () { |
@@ -13,11 +13,14 @@ |
||
13 | 13 | |
14 | 14 | <?php if (App::$Captcha->isFull()): ?> |
15 | 15 | <div class="col-md-9 offset-md-3"><?= $html ?></div> |
16 | -<?php else: ?> |
|
16 | +<?php else { |
|
17 | + : ?> |
|
17 | 18 | <div class="row"> |
18 | 19 | <div class="col-md-9 offset-md-3"> |
19 | 20 | <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" /> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | 23 | <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?> |
23 | -<?php endif; ?> |
|
24 | 24 | \ No newline at end of file |
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | \ No newline at end of file |
@@ -77,7 +77,8 @@ discard block |
||
77 | 77 | </div> |
78 | 78 | <?php if (\App::$Captcha->isFull()): ?> |
79 | 79 | <div class="col-md-offset-3 col-md-9"><?= \App::$Captcha->get() ?></div> |
80 | - <?php else: ?> |
|
80 | + <?php else { |
|
81 | + : ?> |
|
81 | 82 | <div class="form-group"> |
82 | 83 | <label for="guest-captcha" class="col-sm-3 control-label"><?= __('Captcha') ?>:</label> |
83 | 84 | <div class="col-sm-9"> |
@@ -85,7 +86,9 @@ discard block |
||
85 | 86 | <input id="guest-captcha" type="text" name="captcha" class="form-control" required> |
86 | 87 | </div> |
87 | 88 | </div> |
88 | - <?php endif; ?> |
|
89 | + <?php endif; |
|
90 | +} |
|
91 | +?> |
|
89 | 92 | <?php endif; ?> |
90 | 93 | <textarea class="form-control wysiwyg" name="message"></textarea> |
91 | 94 | </form> |
@@ -16,9 +16,12 @@ |
||
16 | 16 | <i class="fa fa-user"></i> |
17 | 17 | <?php if ((int)$comment['user']['id'] > 0): ?> |
18 | 18 | <?= Url::a(['profile/show', [$comment['user']['id']]], $comment['user']['name'], ['style' => 'color: #595959']) ?> |
19 | - <?php else: ?> |
|
19 | + <?php else { |
|
20 | + : ?> |
|
20 | 21 | <?= $comment['user']['name'] ?> |
21 | - <?php endif; ?> |
|
22 | + <?php endif; |
|
23 | +} |
|
24 | +?> |
|
22 | 25 | </div> |
23 | 26 | <div class="col-md-6 pull-right"> |
24 | 27 | <small class="text-secondary pull-right"> |
@@ -134,7 +134,8 @@ discard block |
||
134 | 134 | <span class="text-sm">No feedback queries found</span> |
135 | 135 | </div> |
136 | 136 | </div> |
137 | - <?php else: ?> |
|
137 | + <?php else { |
|
138 | + : ?> |
|
138 | 139 | <?php foreach ($features->getFeedback() as $feed): ?> |
139 | 140 | <div class="media"> |
140 | 141 | <div class="media-left"> |
@@ -145,7 +146,9 @@ discard block |
||
145 | 146 | <span class="text-sm"><?= Text::snippet($feed->message, 100) ?></span> |
146 | 147 | </div> |
147 | 148 | </div> |
148 | - <?php endforeach; ?> |
|
149 | + <?php endforeach; |
|
150 | +} |
|
151 | +?> |
|
149 | 152 | <?php endif; ?> |
150 | 153 | </div> |
151 | 154 | |
@@ -167,7 +170,8 @@ discard block |
||
167 | 170 | <span class="text-sm">No comments found</span> |
168 | 171 | </div> |
169 | 172 | </div> |
170 | - <?php else: ?> |
|
173 | + <?php else { |
|
174 | + : ?> |
|
171 | 175 | <?php foreach ($features->getComments() as $comment): ?> |
172 | 176 | <?php /** @var \Apps\ActiveRecord\CommentPost $comment */ ?> |
173 | 177 | <div class="media"> |
@@ -175,6 +179,7 @@ discard block |
||
175 | 179 | <a href="<?= ($comment->user ? Url::link(['user/update', [$comment->user->id]]) : '#') ?>"> |
176 | 180 | <?php |
177 | 181 | $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg'; |
182 | +} |
|
178 | 183 | if ($comment->user && $comment->user->id > 0) { |
179 | 184 | $commentAva = $comment->user->profile->getAvatarUrl('small'); |
180 | 185 | } |
@@ -220,9 +225,12 @@ discard block |
||
220 | 225 | <?php foreach ($breadcrumbs as $url => $text): ?> |
221 | 226 | <?php if (\Ffcms\Core\Helper\Type\Any::isInt($url)): ?> |
222 | 227 | <?= $text ?> |
223 | - <?php else: ?> |
|
228 | + <?php else { |
|
229 | + : ?> |
|
224 | 230 | <a href="<?= $url ?>"><?= $text ?></a> / |
225 | - <?php endif; ?> |
|
231 | + <?php endif; |
|
232 | +} |
|
233 | +?> |
|
226 | 234 | <?php endforeach; ?> |
227 | 235 | <?php endif; ?> |
228 | 236 | </h2> |
@@ -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 |