@@ -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 | ]); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | <div class="row"> |
19 | 19 | <div class="col-md-12"> |
20 | 20 | <div class="pull-right"> |
21 | - <?= Url::link(['application/install'], '<i class="fa fa-tasks"></i> ' . __('Install'), ['class' => 'btn btn-primary']) ?> |
|
21 | + <?= Url::link(['application/install'], '<i class="fa fa-tasks"></i> '.__('Install'), ['class' => 'btn btn-primary']) ?> |
|
22 | 22 | </div> |
23 | 23 | </div> |
24 | 24 | </div> |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | continue; |
31 | 31 | } |
32 | 32 | |
33 | - $route = $app->sys_name . '/index'; |
|
33 | + $route = $app->sys_name.'/index'; |
|
34 | 34 | $icoStatus = null; |
35 | 35 | $actions = \App::$View->render('native/macro/app_actions', ['controller' => $app->sys_name]); |
36 | 36 | // set action icons based on app status |
37 | - if ((int)$app->disabled !== 0) { |
|
37 | + if ((int) $app->disabled !== 0) { |
|
38 | 38 | $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>'; |
39 | 39 | } elseif ($app->checkVersion() !== true) { |
40 | 40 | $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>'; |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | $appTableItems[] = [ |
47 | - ['text' => $app->id . $icoStatus, 'html' => true, '!secure' => true], |
|
47 | + ['text' => $app->id.$icoStatus, 'html' => true, '!secure' => true], |
|
48 | 48 | ['text' => Url::link([$route], $app->getLocaleName()), 'html' => true], |
49 | - ['text' => '<a target="_blank" href="' . \App::$Alias->scriptUrl . '/' . Str::lowerCase($route) . '">' . $route . '</a>', 'html' => true], |
|
49 | + ['text' => '<a target="_blank" href="'.\App::$Alias->scriptUrl.'/'.Str::lowerCase($route).'">'.$route.'</a>', 'html' => true], |
|
50 | 50 | ['text' => $app->version], |
51 | 51 | ['text' => Date::convertToDatetime($app->updated_at, Date::FORMAT_TO_HOUR)], |
52 | 52 | ['text' => $actions, 'property' => ['class' => 'text-center'], 'html' => true] |
@@ -12,15 +12,15 @@ |
||
12 | 12 | \App::$Alias->setCustomLibrary('js', 'https://code.jquery.com/jquery-migrate-1.2.1.js'); |
13 | 13 | \App::$Alias->setCustomLibrary('css', \App::$Alias->getVendor('css', 'jquery-ui')); |
14 | 14 | \App::$Alias->setCustomLibrary('js', \App::$Alias->getVendor('js', 'jquery-ui')); |
15 | -\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/phpffcms/ffcms-elfinder/css/elfinder.min.css'); |
|
16 | -\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/phpffcms/ffcms-elfinder/js/elfinder.min.js'); |
|
15 | +\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/phpffcms/ffcms-elfinder/css/elfinder.min.css'); |
|
16 | +\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/phpffcms/ffcms-elfinder/js/elfinder.min.js'); |
|
17 | 17 | |
18 | 18 | |
19 | 19 | ?> |
20 | 20 | <?php \App::$Alias->addPlainCode('js', '$().ready(function() { |
21 | 21 | var elf = $("#elfinder").elfinder({ |
22 | - url : "' . $connector . '", // connector URL (REQUIRED) |
|
23 | - lang: "' . \App::$Request->getLanguage() . '", // language (OPTIONAL) |
|
22 | + url : "' . $connector.'", // connector URL (REQUIRED) |
|
23 | + lang: "' . \App::$Request->getLanguage().'", // language (OPTIONAL) |
|
24 | 24 | }).elfinder("instance"); |
25 | 25 | });'); ?> |
26 | 26 | <h1><?= __('File management') ?></h1> |
@@ -93,4 +93,4 @@ |
||
93 | 93 | ?> |
94 | 94 | </div> |
95 | 95 | </div> |
96 | -<?= Url::link(['main/addroute'], '<i class="fa fa-plus"></i> ' . __('New route'), ['class' => 'btn btn-primary']) ?> |
|
97 | 96 | \ No newline at end of file |
97 | +<?= Url::link(['main/addroute'], '<i class="fa fa-plus"></i> '.__('New route'), ['class' => 'btn btn-primary']) ?> |
|
98 | 98 | \ No newline at end of file |
@@ -97,7 +97,7 @@ |
||
97 | 97 | </script> |
98 | 98 | <h1><?= __('Antivirus scan'); ?></h1> |
99 | 99 | <hr /> |
100 | -<p><?= __('FFCMS 3 provide a simple signature-based antivirus software') . '. ' . __('Remember! This is just an advisory algorithm!') ?></p> |
|
100 | +<p><?= __('FFCMS 3 provide a simple signature-based antivirus software').'. '.__('Remember! This is just an advisory algorithm!') ?></p> |
|
101 | 101 | |
102 | 102 | <div class="row"> |
103 | 103 | <div class="col-md-4"> |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | $themeTab = $form->field('theme.Front', 'select', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Front')]); |
28 | 28 | $themeTab .= $form->field('theme.Admin', 'select', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Admin')]); |
29 | 29 | |
30 | -$debugTab = '<p>' . __('The key-value of cookie to enable debugging on website') . '. ' . __('If user got this cookie he can see debug bar') . '. ' . |
|
31 | - Url::link(['main/debugcookie'], __('Set cookie for me')) . '</p>'; |
|
30 | +$debugTab = '<p>'.__('The key-value of cookie to enable debugging on website').'. '.__('If user got this cookie he can see debug bar').'. '. |
|
31 | + Url::link(['main/debugcookie'], __('Set cookie for me')).'</p>'; |
|
32 | 32 | $debugTab .= $form->field('debug.cookie.key', 'text', ['class' => 'form-control'], __('Set cookie name(key) for enable debug bar panel')); |
33 | 33 | $debugTab .= $form->field('debug.cookie.value', 'text', ['class' => 'form-control'], __('Set cookie value for enable debug bar panel')); |
34 | 34 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $langTab .= $form->field('baseLanguage', 'text', ['class' => 'form-control', 'disabled' => null], __('Website base script language. Do not change it')); |
38 | 38 | $langTab .= $form->field('languages', 'checkboxes', ['options' => ['ru', 'en']], __('Website available languages')); |
39 | 39 | |
40 | -$databaseTab = '<p>' . __('Do not change any information in this tab if you not sure what you do!') . '</p>'; |
|
40 | +$databaseTab = '<p>'.__('Do not change any information in this tab if you not sure what you do!').'</p>'; |
|
41 | 41 | $databaseTab .= $form->field('database.driver', 'select', ['class' => 'form-control', 'options' => ['mysql', 'sqlite', 'pgsql']], __('Database connection driver')); |
42 | 42 | $databaseTab .= $form->field('database.host', 'text', ['class' => 'form-control'], __('Database connection host name')); |
43 | 43 | $databaseTab .= $form->field('database.database', 'text', ['class' => 'form-control'], __('Database name or path to sqlite created file database')); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $databaseTab .= $form->field('database.collation', 'text', ['class' => 'form-control']); |
48 | 48 | $databaseTab .= $form->field('database.prefix', 'text', ['class' => 'form-control'], __('Database tables prefix')); |
49 | 49 | |
50 | -$otherTab = '<p>' . __('There you can change specified configs depends of other platforms. GA = google analytics.') . '</p>'; |
|
50 | +$otherTab = '<p>'.__('There you can change specified configs depends of other platforms. GA = google analytics.').'</p>'; |
|
51 | 51 | $otherTab .= $form->field('gaClientId', 'text', ['class' => 'form-control'], __('Google oAuth2 client id. This id will be used to display google.analytics info. Client ID looks like: xxxxxx.apps.googleusercontent.com')); |
52 | 52 | $otherTab .= $form->field('gaTrackId', 'text', ['class' => 'form-control'], __('Set google analytics tracking id for your website. Track id looks like: UA-XXXXXX-Y')); |
53 | 53 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | 'table' => ['class' => 'table table-bordered'], |
26 | 26 | 'tbody' => [ |
27 | 27 | 'items' => [ |
28 | - [['text' => __('Sender')], ['text' => $record->name . ' (' . $record->email . ')']], |
|
28 | + [['text' => __('Sender')], ['text' => $record->name.' ('.$record->email.')']], |
|
29 | 29 | [['text' => __('Date')], ['text' => Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR)]], |
30 | 30 | [['text' => __('Message')], ['text' => $record->message]] |
31 | 31 | ] |
@@ -28,38 +28,38 @@ discard block |
||
28 | 28 | <div class="panel panel-info"> |
29 | 29 | <div class="panel-heading"> |
30 | 30 | <?php |
31 | - if ((int)$record->readed !== 1) { |
|
31 | + if ((int) $record->readed !== 1) { |
|
32 | 32 | echo '<i class="fa fa-bell"></i> '; |
33 | 33 | } |
34 | 34 | ?> |
35 | 35 | <?= __('Message sent') ?>: <?= Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR) ?>. |
36 | 36 | <?php |
37 | - if ((int)$record->closed !== 1) { |
|
38 | - echo '<span class="label label-success">' . __('Opened') . '</span>'; |
|
37 | + if ((int) $record->closed !== 1) { |
|
38 | + echo '<span class="label label-success">'.__('Opened').'</span>'; |
|
39 | 39 | } else { |
40 | - echo '<span class="label label-danger">' . __('Closed') . '</span>'; |
|
40 | + echo '<span class="label label-danger">'.__('Closed').'</span>'; |
|
41 | 41 | } |
42 | 42 | ?> |
43 | 43 | </div> |
44 | 44 | <div class="panel-body"> |
45 | 45 | <?php |
46 | - if ((int)$record->closed !== 0) { |
|
47 | - echo '<p class="alert alert-warning">' . __('The feedback request is closed! Thread in only-read mode') . '.</p>'; |
|
46 | + if ((int) $record->closed !== 0) { |
|
47 | + echo '<p class="alert alert-warning">'.__('The feedback request is closed! Thread in only-read mode').'.</p>'; |
|
48 | 48 | } |
49 | 49 | ?> |
50 | 50 | <p><?= Str::replace("\n", "<br />", $record->message) ?></p> |
51 | 51 | <hr /> |
52 | 52 | <?php |
53 | 53 | // show "mark as read" button if message is not readed |
54 | - if ((int)$record->readed !== 1) { |
|
55 | - echo Url::link(['feedback/turn', 'read', $record->id], __('Mark as read'), ['class' => 'label label-success']) . ' '; |
|
54 | + if ((int) $record->readed !== 1) { |
|
55 | + echo Url::link(['feedback/turn', 'read', $record->id], __('Mark as read'), ['class' => 'label label-success']).' '; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | // show close/open button depend of current status |
59 | - if ((int)$record->closed === 0) { |
|
60 | - echo Url::link(['feedback/turn', 'close', $record->id], __('Close'), ['class' => 'label label-warning']) . ' '; |
|
59 | + if ((int) $record->closed === 0) { |
|
60 | + echo Url::link(['feedback/turn', 'close', $record->id], __('Close'), ['class' => 'label label-warning']).' '; |
|
61 | 61 | } else { |
62 | - echo Url::link(['feedback/turn', 'open', $record->id], __('Open'), ['class' => 'label label-info']) . ' '; |
|
62 | + echo Url::link(['feedback/turn', 'open', $record->id], __('Open'), ['class' => 'label label-info']).' '; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | ?> |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | <div class="panel-body"> |
77 | 77 | <?php |
78 | 78 | $uInfo = 'no'; |
79 | - if ((int)$record->user_id > 0) { |
|
79 | + if ((int) $record->user_id > 0) { |
|
80 | 80 | $user = \App::$User->identity($record->user_id); |
81 | 81 | if ($user !== null && $user->getId() > 0) { |
82 | 82 | $uInfo = Url::link(['user/update', $user->getId()], $user->getProfile()->getNickname()); |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | |
102 | 102 | <?php if ($record->getAnswers()->count() > 0): ?> |
103 | 103 | <?php foreach ($record->getAnswers()->get() as $answer): ?> |
104 | - <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
104 | + <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
105 | 105 | <div class="panel-heading"> |
106 | - <?= __('From') ?>: <?= $answer->name . '(' . $answer->email . ')' ?>, |
|
106 | + <?= __('From') ?>: <?= $answer->name.'('.$answer->email.')' ?>, |
|
107 | 107 | <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?> |
108 | 108 | <span class="pull-right"> |
109 | 109 | <?= Url::link(['feedback/update', 'answer', $answer->id], __('Edit'), ['class' => 'label label-primary']) ?> |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | <hr /> |
24 | 24 | <div class="row"> |
25 | 25 | <div class="col-md-12"> |
26 | - <?= Url::link(['content/categoryupdate', 0], '<i class="fa fa-plus"></i> ' . __('Add category'), ['class' => 'btn btn-primary pull-right']) ?> |
|
26 | + <?= Url::link(['content/categoryupdate', 0], '<i class="fa fa-plus"></i> '.__('Add category'), ['class' => 'btn btn-primary pull-right']) ?> |
|
27 | 27 | </div> |
28 | 28 | </div> |
29 | 29 | <div class="table-responsive"> |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | <tr> |
56 | 56 | <td> |
57 | 57 | <div class="row"> |
58 | - <div class="col-md-<?= $offset ?> col-xs-<?= $offset+2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div> |
|
59 | - <div class="col-md-<?= $set ?> col-xs-<?= $set-2 ?>"> |
|
58 | + <div class="col-md-<?= $offset ?> col-xs-<?= $offset + 2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div> |
|
59 | + <div class="col-md-<?= $set ?> col-xs-<?= $set - 2 ?>"> |
|
60 | 60 | <?= Serialize::getDecodeLocale($row->title) ?> |
61 | 61 | <sup>id: <?= $row->id ?></sup> |
62 | 62 | <span class="label label-info">/<?= $row->path ?></span> |