@@ -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 wysi-comments" name="message"></textarea> |
| 91 | 94 | </form> |
@@ -18,9 +18,12 @@ |
||
| 18 | 18 | <li><i class="glyphicon glyphicon-user"></i> |
| 19 | 19 | <?php if ((int)$comment['user']['id'] > 0): ?> |
| 20 | 20 | <?= Url::link(['profile/show', $comment['user']['id']], $comment['user']['name']) ?> |
| 21 | - <?php else: ?> |
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | <?= $comment['user']['name'] ?> |
| 23 | - <?php endif; ?> |
|
| 24 | + <?php endif; |
|
| 25 | +} |
|
| 26 | +?> |
|
| 24 | 27 | </li> |
| 25 | 28 | </ul> |
| 26 | 29 | </li> |
@@ -74,9 +74,12 @@ discard block |
||
| 74 | 74 | <?php if ($properties['author'] === true): ?> |
| 75 | 75 | <?php if ($model->authorId !== null && $model->authorId > 0): ?> |
| 76 | 76 | <span class="spaced"><i class="glyphicon glyphicon-user"></i> <?= Url::link(['profile/show', $model->authorId], $model->authorName, ['itemprop' => 'author']) ?></span> |
| 77 | - <?php else: ?> |
|
| 77 | + <?php else { |
|
| 78 | + : ?> |
|
| 78 | 79 | <span class="spaced"><i class="glyphicon glyphicon-user"></i> <s><?= $model->authorName ?></s></span> |
| 79 | - <?php endif; ?> |
|
| 80 | + <?php endif; |
|
| 81 | +} |
|
| 82 | +?> |
|
| 80 | 83 | <?php endif; ?> |
| 81 | 84 | <?php if ($properties['views'] === true): ?> |
| 82 | 85 | <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $model->views ?></span> |
@@ -85,9 +88,12 @@ discard block |
||
| 85 | 88 | <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="glyphicon glyphicon-pencil" style="color: #ff0000;"></i></a></span> |
| 86 | 89 | <?php endif; ?> |
| 87 | 90 | </div> |
| 88 | - <?php else: ?> |
|
| 91 | + <?php else { |
|
| 92 | + : ?> |
|
| 89 | 93 | <hr /> |
| 90 | - <?php endif; ?> |
|
| 94 | + <?php endif; |
|
| 95 | +} |
|
| 96 | +?> |
|
| 91 | 97 | <?php if ($trash): ?> |
| 92 | 98 | <p class="alert alert-danger"><i class="glyphicon glyphicon-trash"></i> <?= __('This content is placed in trash') ?></p> |
| 93 | 99 | <?php endif; ?> |
@@ -109,9 +109,12 @@ |
||
| 109 | 109 | <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $item['views'] ?></span> |
| 110 | 110 | <?php endif; ?> |
| 111 | 111 | </div> |
| 112 | - <?php else: ?> |
|
| 112 | + <?php else { |
|
| 113 | + : ?> |
|
| 113 | 114 | <hr /> |
| 114 | - <?php endif; ?> |
|
| 115 | + <?php endif; |
|
| 116 | +} |
|
| 117 | +?> |
|
| 115 | 118 | <div class="row"> |
| 116 | 119 | <div class="col-md-12"> |
| 117 | 120 | <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?> |
@@ -4,8 +4,9 @@ |
||
| 4 | 4 | use Ffcms\Core\Helper\Type\Str; |
| 5 | 5 | |
| 6 | 6 | $args = []; |
| 7 | -if (isset($r) && Any::isStr($r) && Str::length($r) > 1) |
|
| 7 | +if (isset($r) && Any::isStr($r) && Str::length($r) > 1) { |
|
| 8 | 8 | $args['r'] = $r; |
| 9 | +} |
|
| 9 | 10 | |
| 10 | 11 | echo \Ffcms\Core\Helper\HTML\Bootstrap\Nav::display([ |
| 11 | 12 | 'property' => ['class' => 'nav-tabs'], |
@@ -139,11 +139,14 @@ |
||
| 139 | 139 | <?php foreach ($this->breadcrumbs as $bUrl => $bText): ?> |
| 140 | 140 | <?php if (Any::isInt($bUrl)): // only text ?> |
| 141 | 141 | <li class="active"><?= \App::$Security->strip_tags($bText) ?></li> |
| 142 | - <?php else: ?> |
|
| 142 | + <?php else { |
|
| 143 | + : ?> |
|
| 143 | 144 | <li> |
| 144 | 145 | <a href="<?= \App::$Security->strip_tags($bUrl) ?>"><?= \App::$Security->strip_tags($bText) ?></a> |
| 145 | 146 | </li> |
| 146 | - <?php endif; ?> |
|
| 147 | + <?php endif; |
|
| 148 | +} |
|
| 149 | +?> |
|
| 147 | 150 | <?php endforeach; ?> |
| 148 | 151 | </ol> |
| 149 | 152 | <?php endif; ?> |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | </div> |
| 90 | 90 | |
| 91 | 91 | <?= $form->finish() ?> |
| 92 | -<?php else: ?> |
|
| 92 | +<?php else { |
|
| 93 | + : ?> |
|
| 93 | 94 | <p class="alert alert-danger"><?= __('This request is closed! No answers is allowed') ?></p> |
| 94 | -<?php endif; ?> |
|
| 95 | 95 | \ No newline at end of file |
| 96 | +<?php endif; |
|
| 97 | +} |
|
| 98 | +?> |
|
| 96 | 99 | \ No newline at end of file |
@@ -60,7 +60,8 @@ discard block |
||
| 60 | 60 | </a> |
| 61 | 61 | </div> |
| 62 | 62 | </div> |
| 63 | - <?php else: ?> |
|
| 63 | + <?php else { |
|
| 64 | + : ?> |
|
| 64 | 65 | <div class="row"> |
| 65 | 66 | <div class="col-md-8" style="padding-right: 0;"> |
| 66 | 67 | <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>"> |
@@ -77,7 +78,9 @@ discard block |
||
| 77 | 78 | <button class="btn btn-block btn-danger" id="reduceRating">-</button> |
| 78 | 79 | </div> |
| 79 | 80 | </div> |
| 80 | - <?php endif; ?> |
|
| 81 | + <?php endif; |
|
| 82 | +} |
|
| 83 | +?> |
|
| 81 | 84 | <?php endif; ?> |
| 82 | 85 | <?php |
| 83 | 86 | $userMenu = null; |
@@ -55,6 +55,9 @@ |
||
| 55 | 55 | echo $form->submitButton(__('Download update'), ['class' => 'btn btn-primary']); |
| 56 | 56 | echo $form->finish(); |
| 57 | 57 | ?> |
| 58 | -<?php else: ?> |
|
| 58 | +<?php else { |
|
| 59 | + : ?> |
|
| 59 | 60 | <p><?= __('Your system is up to date. No updates is available') ?></p> |
| 60 | -<?php endif; ?> |
|
| 61 | +<?php endif; |
|
| 62 | +} |
|
| 63 | +?> |
|