@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | <?php |
27 | 27 | if ($records === null || $records->count() < 1) { |
28 | - echo '<p class="alert alert-warning">' . __('Answers is not founded') . '</p>'; |
|
28 | + echo '<p class="alert alert-warning">'.__('Answers is not founded').'</p>'; |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 | $items = []; |
@@ -33,19 +33,19 @@ discard block |
||
33 | 33 | $commentObject = $item->getCommentPost(); |
34 | 34 | $message = Text::cut(\App::$Security->strip_tags($item->message), 0, 75); |
35 | 35 | $userArr = []; |
36 | - if ((int)$item->user_id > 0 && \App::$User->isExist($item->user_id)) { |
|
36 | + if ((int) $item->user_id > 0 && \App::$User->isExist($item->user_id)) { |
|
37 | 37 | $userName = \App::$User->identity($item->user_id)->getProfile()->getNickname(); |
38 | 38 | $userArr = ['text' => Url::link(['user/update', $item->user_id], $userName), 'html' => true]; |
39 | 39 | } |
40 | 40 | |
41 | 41 | $items[] = [ |
42 | 42 | 1 => ['text' => $item->id], |
43 | - 2 => ['text' => Url::link(['comments/read', $commentObject->id, null, ['#' => '#answer-' . $item->id]], $message), 'html' => true], |
|
43 | + 2 => ['text' => Url::link(['comments/read', $commentObject->id, null, ['#' => '#answer-'.$item->id]], $message), 'html' => true], |
|
44 | 44 | 3 => $userArr, |
45 | - 4 => ['text' => '<a href="' . App::$Alias->scriptUrl . $commentObject->pathway . '" target="_blank">' . Str::sub($commentObject->pathway, 0, 20) . '...</a>', 'html' => true], |
|
45 | + 4 => ['text' => '<a href="'.App::$Alias->scriptUrl.$commentObject->pathway.'" target="_blank">'.Str::sub($commentObject->pathway, 0, 20).'...</a>', 'html' => true], |
|
46 | 46 | 5 => ['text' => Date::convertToDatetime($item->created_at, Date::FORMAT_TO_HOUR)], |
47 | - 6 => ['text' => Url::link(['comments/read', $commentObject->id], '<i class="fa fa-list fa-lg"></i>') . |
|
48 | - ' ' . Url::link(['comments/delete', 'answer', $item->id], '<i class="fa fa-trash-o fa-lg"></i>'), |
|
47 | + 6 => ['text' => Url::link(['comments/read', $commentObject->id], '<i class="fa fa-list fa-lg"></i>'). |
|
48 | + ' '.Url::link(['comments/delete', 'answer', $item->id], '<i class="fa fa-trash-o fa-lg"></i>'), |
|
49 | 49 | 'html' => true, 'property' => ['class' => 'text-center']], |
50 | 50 | 'property' => ['class' => 'checkbox-row'] |
51 | 51 | ]; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $author = Url::link(['user/update', $record->user_id], $author); |
29 | 29 | } |
30 | 30 | ?> |
31 | - <?= $author . ', ' . Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR) ?> |
|
31 | + <?= $author.', '.Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR) ?> |
|
32 | 32 | <div class="pull-right"> |
33 | 33 | <?= Url::link(['comments/edit', 'comment', $record->id], __('Edit'), ['class' => 'label label-primary']) ?> |
34 | 34 | <?= Url::link(['comments/delete', 'comment', $record->id], __('Delete'), ['class' => 'label label-danger']) ?> |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | <div class="panel-heading"> |
55 | 55 | <?php |
56 | 56 | $answerAuthor = Simplify::parseUserNick($answer->user_id, $answer->guest_name); |
57 | - if ((int)$answer->user_id > 0) { |
|
57 | + if ((int) $answer->user_id > 0) { |
|
58 | 58 | $answerAuthor = Url::link(['user/update', $answer->user_id], $answerAuthor); |
59 | 59 | } |
60 | 60 | ?> |
61 | - <?= $answerAuthor . ', ' . Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?> |
|
61 | + <?= $answerAuthor.', '.Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?> |
|
62 | 62 | <div class="pull-right"> |
63 | 63 | <?= Url::link(['comments/edit', 'answer', $answer->id], __('Edit'), ['class' => 'label label-primary']) ?> |
64 | 64 | <?= Url::link(['comments/delete', 'answer', $answer->id], __('Delete'), ['class' => 'label label-danger']) ?> |
@@ -24,14 +24,14 @@ discard block |
||
24 | 24 | |
25 | 25 | <?php |
26 | 26 | if ($records === null || $records->count() < 1) { |
27 | - echo '<p class="alert alert-warning">' . __('Comments is not founded') . '</p>'; |
|
27 | + echo '<p class="alert alert-warning">'.__('Comments is not founded').'</p>'; |
|
28 | 28 | return; |
29 | 29 | } |
30 | 30 | $items = []; |
31 | 31 | foreach ($records as $item) { |
32 | 32 | $message = Text::cut(\App::$Security->strip_tags($item->message), 0, 75); |
33 | 33 | $userArr = []; |
34 | - if ((int)$item->user_id > 0 && \App::$User->isExist($item->user_id)) { |
|
34 | + if ((int) $item->user_id > 0 && \App::$User->isExist($item->user_id)) { |
|
35 | 35 | $userName = \App::$User->identity($item->user_id)->getProfile()->getNickname(); |
36 | 36 | $userArr = ['text' => Url::link(['user/update', $item->user_id], $userName), 'html' => true]; |
37 | 37 | } |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | 2 => ['text' => Url::link(['comments/read', $item->id], $message), 'html' => true], |
42 | 42 | 3 => ['text' => $item->getAnswerCount()], |
43 | 43 | 4 => $userArr, |
44 | - 5 => ['text' => '<a href="' . App::$Alias->scriptUrl . $item->pathway . '" target="_blank">' . Str::sub($item->pathway, 0, 20) . '...</a>', 'html' => true], |
|
44 | + 5 => ['text' => '<a href="'.App::$Alias->scriptUrl.$item->pathway.'" target="_blank">'.Str::sub($item->pathway, 0, 20).'...</a>', 'html' => true], |
|
45 | 45 | 6 => ['text' => Date::convertToDatetime($item->created_at, Date::FORMAT_TO_HOUR)], |
46 | - 7 => ['text' => Url::link(['comments/read', $item->id], '<i class="fa fa-list fa-lg"></i>') . |
|
47 | - ' ' . Url::link(['comments/delete', 'comment', $item->id], '<i class="fa fa-trash-o fa-lg"></i>'), |
|
46 | + 7 => ['text' => Url::link(['comments/read', $item->id], '<i class="fa fa-list fa-lg"></i>'). |
|
47 | + ' '.Url::link(['comments/delete', 'comment', $item->id], '<i class="fa fa-trash-o fa-lg"></i>'), |
|
48 | 48 | 'html' => true, 'property' => ['class' => 'text-center']], |
49 | 49 | 'property' => ['class' => 'checkbox-row'] |
50 | 50 | ]; |
@@ -2,6 +2,6 @@ |
||
2 | 2 | use Ffcms\Core\Helper\Url; |
3 | 3 | |
4 | 4 | if (isset($controller)): ?> |
5 | -<a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a> |
|
5 | +<a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a> |
|
6 | 6 | <a href="<?= Url::to('widget/turn', $controller) ?>"><i class="fa fa-power-off"></i></a> |
7 | 7 | <?php endif; ?> |
8 | 8 | \ No newline at end of file |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | <?php |
23 | 23 | $customCssCode = \App::$View->showPlainCode('css'); |
24 | 24 | if ($customCssCode !== null) { |
25 | - echo '<style>' . $customCssCode . '</style>'; |
|
25 | + echo '<style>'.$customCssCode.'</style>'; |
|
26 | 26 | } ?> |
27 | 27 | <script> |
28 | 28 | window.jQ = []; |
@@ -130,11 +130,11 @@ discard block |
||
130 | 130 | 'type' => 'ul', |
131 | 131 | 'property' => ['class' => 'nav nav-second-level'], |
132 | 132 | 'items' => [ |
133 | - ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true], |
|
134 | - ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true], |
|
135 | - ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true], |
|
136 | - ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true], |
|
137 | - ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true] |
|
133 | + ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true], |
|
134 | + ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true], |
|
135 | + ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true], |
|
136 | + ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true], |
|
137 | + ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true] |
|
138 | 138 | ] |
139 | 139 | ]) ?> |
140 | 140 | <!-- /.nav-second-level --> |
@@ -154,22 +154,22 @@ discard block |
||
154 | 154 | foreach ($extTable as $item) { |
155 | 155 | $menuItem = [ |
156 | 156 | 'type' => 'link', |
157 | - 'link' => [Str::lowerCase($item->sys_name) . '/index'], |
|
158 | - 'text' => $item->getLocaleName() . (!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null), |
|
157 | + 'link' => [Str::lowerCase($item->sys_name).'/index'], |
|
158 | + 'text' => $item->getLocaleName().(!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null), |
|
159 | 159 | 'html' => true |
160 | 160 | ]; |
161 | 161 | if ($item->type === 'app') { |
162 | 162 | $appControllers[] = $item->sys_name; |
163 | 163 | $appMenuItems[] = $menuItem; |
164 | - } elseif($item->type === 'widget') { |
|
164 | + } elseif ($item->type === 'widget') { |
|
165 | 165 | $widgetControllers[] = $item->sys_name; |
166 | 166 | $widgetMenuItems[] = $menuItem; |
167 | 167 | } |
168 | 168 | } |
169 | 169 | |
170 | - $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps') . '...']; |
|
170 | + $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps').'...']; |
|
171 | 171 | $appControllers[] = 'Application'; |
172 | - $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets') . '...']; |
|
172 | + $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets').'...']; |
|
173 | 173 | $widgetControllers[] = 'Widget'; |
174 | 174 | ?> |
175 | 175 | <li<?= Arr::in(\App::$Request->getController(), $appControllers) ? ' class="active"' : null ?>> |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | echo $body; |
231 | 231 | } else { |
232 | 232 | \App::$Response->setStatusCode(404); |
233 | - echo '<p>' . __('Page is not founded!') . '</p>'; |
|
233 | + echo '<p>'.__('Page is not founded!').'</p>'; |
|
234 | 234 | } |
235 | 235 | ?> |
236 | 236 | </article> |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | <?php |
262 | 262 | $customJsCode = \App::$View->showPlainCode('js'); |
263 | 263 | if ($customJsCode !== null) { |
264 | - echo '<script>' . $customJsCode . '</script>'; |
|
264 | + echo '<script>'.$customJsCode.'</script>'; |
|
265 | 265 | } |
266 | 266 | ?> |
267 | 267 | </body> |
@@ -33,8 +33,8 @@ |
||
33 | 33 | foreach (\App::$Properties->get('languages') as $lang) { |
34 | 34 | $nameTab[] = [ |
35 | 35 | 'type' => 'tab', |
36 | - 'text' => __('Lang') . ': ' . Str::upperCase($lang), |
|
37 | - 'content' => $form->field('name.' . $lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')), |
|
36 | + 'text' => __('Lang').': '.Str::upperCase($lang), |
|
37 | + 'content' => $form->field('name.'.$lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')), |
|
38 | 38 | 'active' => $lang === \App::$Request->getLanguage(), |
39 | 39 | 'html' => true, |
40 | 40 | '!secure' => true |
@@ -27,11 +27,11 @@ |
||
27 | 27 | foreach ($records as $profile) { |
28 | 28 | $items[] = [ |
29 | 29 | ['text' => $profile->id], |
30 | - ['text' => $profile->User()->login . '/' . $profile->User()->email], |
|
30 | + ['text' => $profile->User()->login.'/'.$profile->User()->email], |
|
31 | 31 | ['text' => $profile->nick], |
32 | 32 | ['text' => Str::startsWith('0000-', $profile->birthday) ? __('None') : Date::convertToDatetime($profile->birthday)], |
33 | - ['text' => ($profile->rating > 0 ? '+' : null) . $profile->rating], |
|
34 | - ['text' => Url::link(['profile/update', $profile->id], '<i class="fa fa-pencil fa-lg"></i> ') . |
|
33 | + ['text' => ($profile->rating > 0 ? '+' : null).$profile->rating], |
|
34 | + ['text' => Url::link(['profile/update', $profile->id], '<i class="fa fa-pencil fa-lg"></i> '). |
|
35 | 35 | Url::link(['user/delete', $profile->User()->id], '<i class="fa fa-trash-o fa-lg"></i>'), |
36 | 36 | 'html' => true, 'property' => ['class' => 'text-center']] |
37 | 37 | ]; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | <hr /> |
24 | 24 | <div class="row"> |
25 | 25 | <div class="col-md-12"> |
26 | - <?= Url::link(['profile/fieldupdate', 0], '<i class="fa fa-plus"></i> ' . __('Add field'), ['class' => 'btn btn-primary pull-right']) ?> |
|
26 | + <?= Url::link(['profile/fieldupdate', 0], '<i class="fa fa-plus"></i> '.__('Add field'), ['class' => 'btn btn-primary pull-right']) ?> |
|
27 | 27 | </div> |
28 | 28 | </div> |
29 | 29 | <?php if ($records->count() > 0): |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | $items[] = [ |
39 | 39 | ['text' => $row->id], |
40 | 40 | ['text' => Serialize::getDecodeLocale($row->name)], |
41 | - ['text' => '<span class="' . $labelClass . '">' . $row->type . '</span>', 'html' => true], |
|
42 | - ['text' => '<code>' . ($row->reg_cond == 0 ? '!' : null) . 'preg_match("' . $row->reg_exp . '", input)' . '</code>', 'html' => true], |
|
41 | + ['text' => '<span class="'.$labelClass.'">'.$row->type.'</span>', 'html' => true], |
|
42 | + ['text' => '<code>'.($row->reg_cond == 0 ? '!' : null).'preg_match("'.$row->reg_exp.'", input)'.'</code>', 'html' => true], |
|
43 | 43 | [ |
44 | - 'text' => Url::link(['profile/fieldupdate', $row->id], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]) . |
|
44 | + 'text' => Url::link(['profile/fieldupdate', $row->id], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]). |
|
45 | 45 | Url::link(['profile/fielddelete', $row->id], '<i class="fa fa-trash-o fa-lg"></i>', ['html' => true]), |
46 | 46 | 'html' => true, |
47 | 47 | 'property' => ['class' => 'text-center'] |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'items' => [ |
36 | 36 | [['text' => $model->getLabel('name')], ['text' => $model->name[\App::$Request->getLanguage()]]], |
37 | 37 | [['text' => $model->getLabel('type')], ['text' => $model->type]], |
38 | - [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)']], |
|
38 | + [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null).'preg_match("'.$model->reg_exp.'", $input)']], |
|
39 | 39 | ] |
40 | 40 | ] |
41 | 41 | ]); |