@@ -7,7 +7,7 @@ |
||
7 | 7 | <?php |
8 | 8 | $menu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs nav-fill']) |
9 | 9 | ->menu(['text' => __('User list'), 'link' => ['user/index']]); |
10 | -if ((int)$configs['registrationType'] === 0) { |
|
10 | +if ((int) $configs['registrationType'] === 0) { |
|
11 | 11 | $menu->menu(['text' => __('Invitation list'), 'link' => ['user/invitelist']]); |
12 | 12 | } |
13 | 13 | $menu->menu(['text' => __('Role management'), 'link' => ['user/rolelist']]) |
@@ -23,54 +23,54 @@ |
||
23 | 23 | |
24 | 24 | <?= $this->bootstrap()->nav('ul', ['class' => 'nav-tabs']) |
25 | 25 | ->menu(['text' => __('Base'), 'tab' => function() use ($form) { |
26 | - return $form->fieldset()->text('baseDomain', ['class' => 'form-control'], __('Main domain of website. Use only in console or cron tasks, if domain cannot be defined from request string')) . |
|
27 | - $form->fieldset()->radio('baseProto', ['options' => ['http', 'https']], __('Main website transfer protocol. Use only if request data is not available in console or cron tasks')) . |
|
28 | - $form->fieldset()->text('basePath', ['class' => 'form-control'], __('FFCMS installation sub-directory, used if installed not in root. Example: /subdir/')) . |
|
29 | - $form->fieldset()->select('timezone', ['class' => 'form-control', 'options' => DateTimeZone::listIdentifiers()], __('Define website default timezone id')) . |
|
30 | - $form->fieldset()->boolean('userCron', null, __('Initialize cron manager when user load website? Enable this option if you are not configured cron tasks in your operation system')) . |
|
31 | - $form->fieldset()->boolean('debug.all', null, __('Enable debug bar panel for all visitors? Recommended only on development environment')) . |
|
26 | + return $form->fieldset()->text('baseDomain', ['class' => 'form-control'], __('Main domain of website. Use only in console or cron tasks, if domain cannot be defined from request string')). |
|
27 | + $form->fieldset()->radio('baseProto', ['options' => ['http', 'https']], __('Main website transfer protocol. Use only if request data is not available in console or cron tasks')). |
|
28 | + $form->fieldset()->text('basePath', ['class' => 'form-control'], __('FFCMS installation sub-directory, used if installed not in root. Example: /subdir/')). |
|
29 | + $form->fieldset()->select('timezone', ['class' => 'form-control', 'options' => DateTimeZone::listIdentifiers()], __('Define website default timezone id')). |
|
30 | + $form->fieldset()->boolean('userCron', null, __('Initialize cron manager when user load website? Enable this option if you are not configured cron tasks in your operation system')). |
|
31 | + $form->fieldset()->boolean('debug.all', null, __('Enable debug bar panel for all visitors? Recommended only on development environment')). |
|
32 | 32 | $form->fieldset()->boolean('testSuite', null, __('Enable codeception test suite adapter? Use this option ONLY to run codeception tests! Disable this option on production')); |
33 | 33 | }, 'tabActive' => true]) |
34 | 34 | ->menu(['text' => __('Themes'), 'tab' => function() use ($form, $model) { |
35 | - return $form->fieldset()->select('theme.Front', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Front')], __('Set theme for user part of website')) . |
|
35 | + return $form->fieldset()->select('theme.Front', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Front')], __('Set theme for user part of website')). |
|
36 | 36 | $form->fieldset()->select('theme.Admin', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Admin')], __('Set theme for admin panel')); |
37 | 37 | }]) |
38 | 38 | ->menu(['text' => __('Mail'), 'tab' => function() use ($form) { |
39 | - return '<p>' . __('Configure sendmail over smtp server. You should set host:port and auth data for your smtp server') . '</p>' . |
|
40 | - $form->fieldset()->text('mail.host', ['class' => 'form-control'], __('Set SMTP hostname or ip')) . |
|
41 | - $form->fieldset()->text('mail.port', ['class' => 'form-control'], __('Set SMTP connection port')) . |
|
42 | - $form->fieldset()->select('mail.encrypt', ['class' => 'form-control', 'options' => ['tls', 'ssl', 'none']], __('Set encryption method for your smtp server. For remote service we are strongly recommend use tls/ssl encryption')) . |
|
43 | - $form->fieldset()->text('mail.user', ['class' => 'form-control'], __('Set auth user name if required')) . |
|
39 | + return '<p>'.__('Configure sendmail over smtp server. You should set host:port and auth data for your smtp server').'</p>'. |
|
40 | + $form->fieldset()->text('mail.host', ['class' => 'form-control'], __('Set SMTP hostname or ip')). |
|
41 | + $form->fieldset()->text('mail.port', ['class' => 'form-control'], __('Set SMTP connection port')). |
|
42 | + $form->fieldset()->select('mail.encrypt', ['class' => 'form-control', 'options' => ['tls', 'ssl', 'none']], __('Set encryption method for your smtp server. For remote service we are strongly recommend use tls/ssl encryption')). |
|
43 | + $form->fieldset()->text('mail.user', ['class' => 'form-control'], __('Set auth user name if required')). |
|
44 | 44 | $form->fieldset()->text('mail.password', ['class' => 'form-control'], __('Set auth user password if exist')); |
45 | 45 | }]) |
46 | 46 | ->menu(['text' => __('Localization'), 'tab' => function() use ($form) { |
47 | - return $form->fieldset()->select('singleLanguage', ['class' => 'form-control', 'options' => \App::$Translate->getAvailableLangs()], __('Default language of website')) . |
|
48 | - $form->fieldset()->boolean('multiLanguage', null, __('Must we use multi language system in site pathway')) . |
|
49 | - $form->fieldset()->text('baseLanguage', ['class' => 'form-control', 'disabled' => null], __('Website base script language. Do not change it')) . |
|
47 | + return $form->fieldset()->select('singleLanguage', ['class' => 'form-control', 'options' => \App::$Translate->getAvailableLangs()], __('Default language of website')). |
|
48 | + $form->fieldset()->boolean('multiLanguage', null, __('Must we use multi language system in site pathway')). |
|
49 | + $form->fieldset()->text('baseLanguage', ['class' => 'form-control', 'disabled' => null], __('Website base script language. Do not change it')). |
|
50 | 50 | $form->fieldset()->checkboxes('languages', ['options' => App::$Translate->getAvailableLangs()], __('Website available languages')); |
51 | 51 | |
52 | 52 | }]) |
53 | 53 | ->menu(['text' => __('Database'), 'tab' => function() use ($form) { |
54 | - return '<p>' . __('Do not change any information in this tab if you not sure what you do!') . '</p>' . |
|
55 | - $form->fieldset()->select('database.driver', ['class' => 'form-control', 'options' => ['mysql', 'sqlite', 'pgsql']], __('Database connection driver')) . |
|
56 | - $form->fieldset()->text('database.host', ['class' => 'form-control'], __('Database connection host name')) . |
|
57 | - $form->fieldset()->text('database.database', ['class' => 'form-control'], __('Database name or path to sqlite created file database')) . |
|
58 | - $form->fieldset()->text('database.username', ['class' => 'form-control'], __('User name for database connection')) . |
|
59 | - $form->fieldset()->text('database.password', ['class' => 'form-control'], __('Password for user of database connection')) . |
|
60 | - $form->fieldset()->text('database.charset', ['class' => 'form-control']) . |
|
61 | - $form->fieldset()->text('database.collation', ['class' => 'form-control']) . |
|
54 | + return '<p>'.__('Do not change any information in this tab if you not sure what you do!').'</p>'. |
|
55 | + $form->fieldset()->select('database.driver', ['class' => 'form-control', 'options' => ['mysql', 'sqlite', 'pgsql']], __('Database connection driver')). |
|
56 | + $form->fieldset()->text('database.host', ['class' => 'form-control'], __('Database connection host name')). |
|
57 | + $form->fieldset()->text('database.database', ['class' => 'form-control'], __('Database name or path to sqlite created file database')). |
|
58 | + $form->fieldset()->text('database.username', ['class' => 'form-control'], __('User name for database connection')). |
|
59 | + $form->fieldset()->text('database.password', ['class' => 'form-control'], __('Password for user of database connection')). |
|
60 | + $form->fieldset()->text('database.charset', ['class' => 'form-control']). |
|
61 | + $form->fieldset()->text('database.collation', ['class' => 'form-control']). |
|
62 | 62 | $form->fieldset()->text('database.prefix', ['class' => 'form-control'], __('Database tables prefix')); |
63 | 63 | }]) |
64 | 64 | ->menu(['text' => __('Debug'), 'tab' => function() use ($form){ |
65 | - return '<p>' . __('The key-value of cookie to enable debugging on website') . '. ' . __('If user got this cookie he can see debug bar') . '. ' . |
|
66 | - Url::a(['main/debugcookie'], __('Set cookie for me')) . '</p>' . |
|
67 | - $form->fieldset()->text('debug.cookie.key', ['class' => 'form-control'], __('Set cookie name(key) for enable debug bar panel')) . |
|
65 | + return '<p>'.__('The key-value of cookie to enable debugging on website').'. '.__('If user got this cookie he can see debug bar').'. '. |
|
66 | + Url::a(['main/debugcookie'], __('Set cookie for me')).'</p>'. |
|
67 | + $form->fieldset()->text('debug.cookie.key', ['class' => 'form-control'], __('Set cookie name(key) for enable debug bar panel')). |
|
68 | 68 | $form->fieldset()->text('debug.cookie.value', ['class' => 'form-control'], __('Set cookie value for enable debug bar panel')); |
69 | 69 | }]) |
70 | 70 | ->menu(['text' => __('Other'), 'tab' => function() use ($form){ |
71 | - return '<p>' . __('There you can change specified configs depends of other platforms. GA = google analytics.') . '</p>' . |
|
72 | - $form->fieldset()->text('gaClientId', ['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')) . |
|
73 | - $form->fieldset()->text('gaTrackId', ['class' => 'form-control'], __('Set google analytics tracking id for your website. Track id looks like: UA-XXXXXX-Y')) . |
|
71 | + return '<p>'.__('There you can change specified configs depends of other platforms. GA = google analytics.').'</p>'. |
|
72 | + $form->fieldset()->text('gaClientId', ['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')). |
|
73 | + $form->fieldset()->text('gaTrackId', ['class' => 'form-control'], __('Set google analytics tracking id for your website. Track id looks like: UA-XXXXXX-Y')). |
|
74 | 74 | $form->fieldset()->text('trustedProxy', ['class' => 'form-control'], __('Set trusted proxy list to accept X-FORWARDED data. Example: 103.21.244.15,103.22.200.0/22')); |
75 | 75 | }]) |
76 | 76 | ->display(); ?> |
@@ -48,10 +48,10 @@ |
||
48 | 48 | $table->row([ |
49 | 49 | ['text' => $row->id], |
50 | 50 | ['text' => $row->getLocaled('name')], |
51 | - ['text' => '<span class="' . $labelClass . '">' . $row->type . '</span>', 'html' => true], |
|
52 | - ['text' => '<code>' . ($row->reg_cond == 0 ? '!' : null) . 'preg_match("' . $row->reg_exp . '", input)' . '</code>', 'html' => true], |
|
51 | + ['text' => '<span class="'.$labelClass.'">'.$row->type.'</span>', 'html' => true], |
|
52 | + ['text' => '<code>'.($row->reg_cond == 0 ? '!' : null).'preg_match("'.$row->reg_exp.'", input)'.'</code>', 'html' => true], |
|
53 | 53 | [ |
54 | - 'text' => Url::a(['profile/fieldupdate', [$row->id]], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]) . |
|
54 | + 'text' => Url::a(['profile/fieldupdate', [$row->id]], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]). |
|
55 | 55 | Url::a(['profile/fielddelete', [$row->id]], '<i class="fa fa-trash-o fa-lg"></i>', ['html' => true]), |
56 | 56 | 'html' => true, |
57 | 57 | 'properties' => ['class' => 'text-center'] |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | <?= $form->fieldset()->text('usersOnPage', null, __('How many users will be displayed per one list page?')) ?> |
29 | 29 | <?= $form->fieldset()->boolean('guestView', null, __('Allow guests view user profiles?')) ?> |
30 | -<?= $form->fieldset()->text('wallPostOnPage', null, __('How many wall posts must be displayed in one page of profile?')) ?> |
|
30 | +<?= $form->fieldset()->text('wallPostOnPage', null, __('How many wall posts must be displayed in one page of profile?')) ?> |
|
31 | 31 | <?= $form->fieldset()->text('wallPostOnFeed', null, __('How many wall posts must be displayed on one page of feed list?')) ?> |
32 | 32 | <?= $form->fieldset()->text('delayBetweenPost', null, __('Delay between 2 posts on wall from one user in seconds')) ?> |
33 | 33 | <?= $form->fieldset()->boolean('rating', null, __('Enable user rating system?')) ?> |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ['text' => $model->type] |
33 | 33 | ])->row([ |
34 | 34 | ['text' => $model->getLabel('reg_exp')], |
35 | - ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)'] |
|
35 | + ['text' => ($model->reg_cond == 0 ? '!' : null).'preg_match("'.$model->reg_exp.'", $input)'] |
|
36 | 36 | ])->display(); |
37 | 37 | ?> |
38 | 38 | </div> |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $menu->menu([ |
36 | 36 | 'text' => Str::upperCase($lang), |
37 | 37 | 'tab' => function() use ($form, $lang) { |
38 | - return $form->fieldset()->text('name.' . $lang, null, __('Define field name, which be displayed for user for current language locale')); |
|
38 | + return $form->fieldset()->text('name.'.$lang, null, __('Define field name, which be displayed for user for current language locale')); |
|
39 | 39 | }, |
40 | 40 | 'tabActive' => $lang === \App::$Request->getLanguage(), |
41 | 41 | ]); |
@@ -42,8 +42,8 @@ |
||
42 | 42 | ['text' => $profile->user->email], |
43 | 43 | ['text' => $profile->nick], |
44 | 44 | ['text' => Str::startsWith('0000-', $profile->birthday) ? __('None') : Date::convertToDatetime($profile->birthday)], |
45 | - ['text' => ($profile->rating > 0 ? '+' : null) . $profile->rating], |
|
46 | - ['text' => Url::a(['profile/update', [$profile->id]], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]) . |
|
45 | + ['text' => ($profile->rating > 0 ? '+' : null).$profile->rating], |
|
46 | + ['text' => Url::a(['profile/update', [$profile->id]], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]). |
|
47 | 47 | Url::a(['user/delete', [$profile->user->id]], '<i class="fa fa-trash-o fa-lg"></i>', ['html' => true]), |
48 | 48 | 'html' => true, 'properties' => ['class' => 'text-center']] |
49 | 49 | ]); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $query = Profile::with(['user']); |
27 | 27 | |
28 | 28 | // set current page and offset |
29 | - $page = (int)$this->request->query->get('page'); |
|
29 | + $page = (int) $this->request->query->get('page'); |
|
30 | 30 | $offset = $page * self::ITEM_PER_PAGE; |
31 | 31 | |
32 | 32 | // count total items count for pagination builder |