@@ -71,12 +71,14 @@ |
||
| 71 | 71 | ->setUsername($mCfg['user']); |
| 72 | 72 | |
| 73 | 73 | // set auth password if exist |
| 74 | - if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) |
|
| 75 | - $transport->setPassword($mCfg['password']); |
|
| 74 | + if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) { |
|
| 75 | + $transport->setPassword($mCfg['password']); |
|
| 76 | + } |
|
| 76 | 77 | |
| 77 | 78 | // set encryption method |
| 78 | - if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) |
|
| 79 | - $transport->setEncryption($mCfg['encrypt']); |
|
| 79 | + if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) { |
|
| 80 | + $transport->setEncryption($mCfg['encrypt']); |
|
| 81 | + } |
|
| 80 | 82 | |
| 81 | 83 | // initialize mailer instance |
| 82 | 84 | $swift = (new Swift_Mailer($transport)); |
@@ -58,7 +58,8 @@ discard block |
||
| 58 | 58 | </button> |
| 59 | 59 | </div> |
| 60 | 60 | </div> |
| 61 | - <?php else: ?> |
|
| 61 | + <?php else { |
|
| 62 | + : ?> |
|
| 62 | 63 | <div class="row"> |
| 63 | 64 | <div class="col-md-8" style="padding-right: 0;"> |
| 64 | 65 | <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>"> |
@@ -75,7 +76,9 @@ discard block |
||
| 75 | 76 | <button class="btn btn-block btn-danger" id="reduceRating">-</button> |
| 76 | 77 | </div> |
| 77 | 78 | </div> |
| 78 | - <?php endif; ?> |
|
| 79 | + <?php endif; |
|
| 80 | +} |
|
| 81 | +?> |
|
| 79 | 82 | <?php endif; ?> |
| 80 | 83 | <?php |
| 81 | 84 | $userMenu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs flex-column']); |
@@ -112,9 +112,12 @@ |
||
| 112 | 112 | <span class="spaced"><i class="fa fa-eye"></i> <?= $item['views'] ?></span> |
| 113 | 113 | <?php endif; ?> |
| 114 | 114 | </div> |
| 115 | - <?php else: ?> |
|
| 115 | + <?php else { |
|
| 116 | + : ?> |
|
| 116 | 117 | <hr /> |
| 117 | - <?php endif; ?> |
|
| 118 | + <?php endif; |
|
| 119 | +} |
|
| 120 | +?> |
|
| 118 | 121 | <div class="row"> |
| 119 | 122 | <div class="col-md-12"> |
| 120 | 123 | <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?> |
@@ -79,9 +79,12 @@ discard block |
||
| 79 | 79 | <?php if ((bool)$properties['author']): ?> |
| 80 | 80 | <?php if ($model->authorId && $model->authorId > 0): ?> |
| 81 | 81 | <span class="spaced"><i class="fa fa-user"></i> <?= Url::a(['profile/show', [$model->authorId]], $model->authorName, ['itemprop' => 'author']) ?></span> |
| 82 | - <?php else: ?> |
|
| 82 | + <?php else { |
|
| 83 | + : ?> |
|
| 83 | 84 | <span class="spaced"><i class="fa fa-user"></i> <s><?= $model->authorName ?></s></span> |
| 84 | - <?php endif; ?> |
|
| 85 | + <?php endif; |
|
| 86 | +} |
|
| 87 | +?> |
|
| 85 | 88 | <?php endif; ?> |
| 86 | 89 | <?php if ((bool)$properties['views']): ?> |
| 87 | 90 | <span class="spaced"><i class="fa fa-eye"></i> <?= $model->views ?></span> |
@@ -90,9 +93,12 @@ discard block |
||
| 90 | 93 | <span class="float-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="fa fa-pencil" style="color: #ff0000;"></i></a></span> |
| 91 | 94 | <?php endif; ?> |
| 92 | 95 | </div> |
| 93 | - <?php else: ?> |
|
| 96 | + <?php else { |
|
| 97 | + : ?> |
|
| 94 | 98 | <hr /> |
| 95 | - <?php endif; ?> |
|
| 99 | + <?php endif; |
|
| 100 | +} |
|
| 101 | +?> |
|
| 96 | 102 | <?php if ($trash): ?> |
| 97 | 103 | <p class="alert alert-danger"><i class="fa fa-trash"></i> <?= __('This content is placed in trash') ?></p> |
| 98 | 104 | <?php endif; ?> |
@@ -18,9 +18,12 @@ |
||
| 18 | 18 | <h1><?= __('Feedback') ?></h1> |
| 19 | 19 | <?php if (\App::$User->isAuth()): ?> |
| 20 | 20 | <?= $this->insert('feedback/_authTabs') ?> |
| 21 | -<?php else: ?> |
|
| 21 | +<?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | <hr /> |
| 23 | -<?php endif; ?> |
|
| 24 | +<?php endif; |
|
| 25 | +} |
|
| 26 | +?> |
|
| 24 | 27 | |
| 25 | 28 | <?php $form = $this->form($model) ?> |
| 26 | 29 | <?= $form->start() ?> |
@@ -22,9 +22,12 @@ discard block |
||
| 22 | 22 | <h1><?= __('Feedback message #%id%', ['id' => $post->id]) ?></h1> |
| 23 | 23 | <?php if (\App::$User->isAuth()): ?> |
| 24 | 24 | <?= $this->insert('feedback/_authTabs') ?> |
| 25 | -<?php else: ?> |
|
| 25 | +<?php else { |
|
| 26 | + : ?> |
|
| 26 | 27 | <hr /> |
| 27 | -<?php endif; ?> |
|
| 28 | +<?php endif; |
|
| 29 | +} |
|
| 30 | +?> |
|
| 28 | 31 | |
| 29 | 32 | <?php |
| 30 | 33 | if (!(bool)$post->closed && \App::$User->isAuth()) { |
@@ -85,8 +88,11 @@ discard block |
||
| 85 | 88 | <?= $form->button()->submit(__('Add'), ['class' => 'btn btn-primary']) ?> |
| 86 | 89 | |
| 87 | 90 | <?= $form->stop() ?> |
| 88 | -<?php else: ?> |
|
| 91 | +<?php else { |
|
| 92 | + : ?> |
|
| 89 | 93 | <?= $this->bootstrap()->alert('danger', __('This request is closed! No answers is allowed')) ?> |
| 90 | -<?php endif; ?> |
|
| 94 | +<?php endif; |
|
| 95 | +} |
|
| 96 | +?> |
|
| 91 | 97 | |
| 92 | 98 | <?php $this->stop() ?> |
@@ -64,7 +64,10 @@ |
||
| 64 | 64 | echo $form->button()->submit(__('Download update'), ['class' => 'btn btn-primary']); |
| 65 | 65 | echo $form->stop(); |
| 66 | 66 | ?> |
| 67 | -<?php else: ?> |
|
| 67 | +<?php else { |
|
| 68 | + : ?> |
|
| 68 | 69 | <p class="alert alert-success"><?= __('Your system is up to date. No updates is available') ?></p> |
| 69 | -<?php endif; ?> |
|
| 70 | +<?php endif; |
|
| 71 | +} |
|
| 72 | +?> |
|
| 70 | 73 | <?php $this->stop() ?> |
@@ -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 |
@@ -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 |