@@ -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() ?> |
@@ -131,7 +131,8 @@ discard block |
||
131 | 131 | <span class="text-sm">No feedback queries found</span> |
132 | 132 | </div> |
133 | 133 | </div> |
134 | - <?php else: ?> |
|
134 | + <?php else { |
|
135 | + : ?> |
|
135 | 136 | <?php foreach ($features->getFeedback() as $feed): ?> |
136 | 137 | <div class="media"> |
137 | 138 | <div class="media-left"> |
@@ -144,7 +145,9 @@ discard block |
||
144 | 145 | <span class="text-sm"><?= Text::snippet($feed->message, 100) ?></span> |
145 | 146 | </div> |
146 | 147 | </div> |
147 | - <?php endforeach; ?> |
|
148 | + <?php endforeach; |
|
149 | +} |
|
150 | +?> |
|
148 | 151 | <?php endif; ?> |
149 | 152 | </div> |
150 | 153 | |
@@ -166,7 +169,8 @@ discard block |
||
166 | 169 | <span class="text-sm">No comments found</span> |
167 | 170 | </div> |
168 | 171 | </div> |
169 | - <?php else: ?> |
|
172 | + <?php else { |
|
173 | + : ?> |
|
170 | 174 | <?php foreach ($features->getComments() as $comment): ?> |
171 | 175 | <?php /** @var \Apps\ActiveRecord\CommentPost $comment */ ?> |
172 | 176 | <div class="media"> |
@@ -174,6 +178,7 @@ discard block |
||
174 | 178 | <a href="#"> |
175 | 179 | <?php |
176 | 180 | $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg'; |
181 | +} |
|
177 | 182 | if ($comment->user !== null && $comment->user->id > 0) { |
178 | 183 | $commentAva = $comment->user->profile->getAvatarUrl('small'); |
179 | 184 | } |
@@ -219,9 +224,12 @@ discard block |
||
219 | 224 | <?php foreach ($breadcrumbs as $url => $text): ?> |
220 | 225 | <?php if (\Ffcms\Core\Helper\Type\Any::isInt($url)): ?> |
221 | 226 | <?= $text ?> |
222 | - <?php else: ?> |
|
227 | + <?php else { |
|
228 | + : ?> |
|
223 | 229 | <a href="<?= $url ?>"><?= $text ?></a> / |
224 | - <?php endif; ?> |
|
230 | + <?php endif; |
|
231 | +} |
|
232 | +?> |
|
225 | 233 | <?php endforeach; ?> |
226 | 234 | <?php endif; ?> |
227 | 235 | </h2> |
@@ -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 |