@@ -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 | ] |
@@ -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> |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | foreach (\App::$Properties->get('languages') as $lang) { |
33 | 33 | $items[] = [ |
34 | 34 | 'type' => 'tab', |
35 | - 'text' => __('Lang') . ': ' . Str::upperCase($lang), |
|
36 | - 'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Enter category title, visible for users')) . |
|
37 | - $form->field('description.' . $lang, 'text', ['class' => 'form-control'], __('Enter category description')), |
|
35 | + 'text' => __('Lang').': '.Str::upperCase($lang), |
|
36 | + 'content' => $form->field('title.'.$lang, 'text', ['class' => 'form-control'], __('Enter category title, visible for users')). |
|
37 | + $form->field('description.'.$lang, 'text', ['class' => 'form-control'], __('Enter category description')), |
|
38 | 38 | 'html' => true, |
39 | 39 | 'active' => $lang === \App::$Request->getLanguage(), |
40 | 40 | '!secure' => true |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $pathProperty = [ |
54 | 54 | 'class' => 'form-control' |
55 | 55 | ]; |
56 | -if ((int)$model->id == '1') { |
|
56 | +if ((int) $model->id == '1') { |
|
57 | 57 | $pathProperty['disabled'] = ''; |
58 | 58 | } else { |
59 | 59 | echo $form->field('dependId', 'select', ['class' => 'form-control', 'options' => $model->categoryList(), 'optionsKey' => true], __('Select owner category for this category')); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <div class="row"> |
18 | 18 | <div class="col-md-12"> |
19 | 19 | <div class="pull-right"> |
20 | - <?= Url::link(['widget/install'], '<i class="fa fa-tasks"></i> ' . __('Install'), ['class' => 'btn btn-primary']) ?> |
|
20 | + <?= Url::link(['widget/install'], '<i class="fa fa-tasks"></i> '.__('Install'), ['class' => 'btn btn-primary']) ?> |
|
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | </div> |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | $widgetTableItems = null; |
26 | 26 | foreach ($widgets as $widget) { |
27 | 27 | /** @var $widget Apps\ActiveRecord\App */ |
28 | - $route = $widget->sys_name . '/index'; |
|
28 | + $route = $widget->sys_name.'/index'; |
|
29 | 29 | $icoStatus = null; |
30 | 30 | $actions = $this->render('native/macro/widget_actions', ['controller' => $widget->sys_name]); |
31 | - if ((int)$widget->disabled !== 0) { |
|
31 | + if ((int) $widget->disabled !== 0) { |
|
32 | 32 | $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>'; |
33 | 33 | } elseif ($widget->checkVersion() !== true) { |
34 | 34 | $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>'; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | $widgetTableItems[] = [ |
41 | - ['text' => $widget->id . $icoStatus, 'html' => true, '!secure' => true], |
|
41 | + ['text' => $widget->id.$icoStatus, 'html' => true, '!secure' => true], |
|
42 | 42 | ['text' => Url::link([$route], $widget->getLocaleName()), 'html' => true], |
43 | 43 | ['text' => $widget->version], |
44 | 44 | ['text' => Date::convertToDatetime($widget->updated_at, Date::FORMAT_TO_HOUR)], |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | ?> |
50 | 50 | |
51 | 51 | <?php if ($widgetTableItems === null || count($widgetTableItems) < 1) { |
52 | - echo '<p class="alert alert-info">' . __('Installed widgets is not founded') . '</p>'; |
|
52 | + echo '<p class="alert alert-info">'.__('Installed widgets is not founded').'</p>'; |
|
53 | 53 | } ?> |
54 | 54 | |
55 | 55 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | <?= $form->field('email', 'email', ['class' => 'form-control'], __('Input your account email')); ?> |
19 | 19 | <?php |
20 | 20 | if (\App::$Captcha->isFull()) { |
21 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
21 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
22 | 22 | } else { |
23 | 23 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
24 | 24 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | /** @var $pagination object */ |
12 | 12 | /** @var $ratingOn int */ |
13 | 13 | |
14 | -$this->title = __('User list') . ': ' . __('Search'); |
|
14 | +$this->title = __('User list').': '.__('Search'); |
|
15 | 15 | |
16 | 16 | $this->breadcrumbs = [ |
17 | 17 | Url::to('main/index') => __('Home'), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | <?php |
36 | 36 | if ($records === null || $records->count() < 1) { |
37 | 37 | if ($model->send()) { |
38 | - echo '<div class="row"><div class="col-md-12"><div class="alert alert-danger">' . __('Users are not founded!') . '</div></div></div>'; |
|
38 | + echo '<div class="row"><div class="col-md-12"><div class="alert alert-danger">'.__('Users are not founded!').'</div></div></div>'; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | return; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | <?= $form->field('url', 'text', ['class' => 'form-control'], __('If you have your own homepage - enter url there')) ?> |
35 | 35 | <?php |
36 | 36 | foreach (ProfileField::getAll() as $custom) { |
37 | - echo $form->field('custom_data.' . $custom->id, 'text', ['class' => 'form-control']); |
|
37 | + echo $form->field('custom_data.'.$custom->id, 'text', ['class' => 'form-control']); |
|
38 | 38 | } |
39 | 39 | ?> |
40 | 40 |
@@ -9,15 +9,15 @@ |
||
9 | 9 | $title = Serialize::getDecodeLocale($record->title); |
10 | 10 | $title = Text::snippet($title, 50); |
11 | 11 | $date = Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR); |
12 | - $categoryUrl = \App::$Alias->baseUrl . '/content/list/' . $record->cpath; |
|
13 | - $categoryLink = '<a href="' . $categoryUrl . '">' . Serialize::getDecodeLocale($record->ctitle) . '</a>'; |
|
14 | - $newsLink = \App::$Alias->baseUrl . '/content/read/' . $record->cpath; |
|
15 | - $newsLink = rtrim($newsLink, '/') . '/' . $record->path; |
|
12 | + $categoryUrl = \App::$Alias->baseUrl.'/content/list/'.$record->cpath; |
|
13 | + $categoryLink = '<a href="'.$categoryUrl.'">'.Serialize::getDecodeLocale($record->ctitle).'</a>'; |
|
14 | + $newsLink = \App::$Alias->baseUrl.'/content/read/'.$record->cpath; |
|
15 | + $newsLink = rtrim($newsLink, '/').'/'.$record->path; |
|
16 | 16 | |
17 | 17 | echo '<div class="row"><div class="col-md-12">'; |
18 | - echo '<a href="' . $newsLink . '">→ ' . $title . '</a><br />'; |
|
19 | - echo '<small class="pull-left">' . $categoryLink . '</small>'; |
|
20 | - echo '<small class="pull-right">' . $date . '</small>'; |
|
18 | + echo '<a href="'.$newsLink.'">→ '.$title.'</a><br />'; |
|
19 | + echo '<small class="pull-left">'.$categoryLink.'</small>'; |
|
20 | + echo '<small class="pull-right">'.$date.'</small>'; |
|
21 | 21 | echo '</div></div>'; |
22 | 22 | echo '<hr class="pretty" />'; |
23 | 23 | } |