@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ffcms\Core\App as MainApp; |
| 6 | 6 | use Ffcms\Core\Arch\ActiveModel; |
| 7 | 7 | use Ffcms\Core\Helper\Type\Arr; |
| 8 | -use Ffcms\Core\Helper\Type\Str; |
|
| 9 | 8 | |
| 10 | 9 | class Role extends ActiveModel |
| 11 | 10 | { |
@@ -14,13 +14,13 @@ discard block |
||
| 14 | 14 | $this->title = __('User list'); |
| 15 | 15 | |
| 16 | 16 | if ($id === 'all') { |
| 17 | - $this->title .= ': ' . __('All'); |
|
| 17 | + $this->title .= ': '.__('All'); |
|
| 18 | 18 | } elseif ($id === 'rating') { |
| 19 | - $this->title .= ': ' . __('Rating'); |
|
| 19 | + $this->title .= ': '.__('Rating'); |
|
| 20 | 20 | } elseif ($id === 'city') { |
| 21 | - $this->title .= ': ' . __('City') . ' ' . \App::$Security->strip_tags($add); |
|
| 21 | + $this->title .= ': '.__('City').' '.\App::$Security->strip_tags($add); |
|
| 22 | 22 | } elseif ($id === 'hobby') { |
| 23 | - $this->title .= ': ' . __('Hobby') . ' ' . \App::$Security->strip_tags($add); |
|
| 23 | + $this->title .= ': '.__('Hobby').' '.\App::$Security->strip_tags($add); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | $this->breadcrumbs = [ |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | <?php |
| 37 | 37 | if ($records === null || $records->count() < 1) { |
| 38 | - echo '<div class="alert alert-danger">' . __('Users are not founded!') . '</div>'; |
|
| 38 | + echo '<div class="alert alert-danger">'.__('Users are not founded!').'</div>'; |
|
| 39 | 39 | return; |
| 40 | 40 | } |
| 41 | 41 | ?> |
@@ -48,11 +48,11 @@ discard block |
||
| 48 | 48 | </div> |
| 49 | 49 | <div class="col-md-8"> |
| 50 | 50 | <h3> |
| 51 | - <?= Url::link(['profile/show', $profile->user_id], Str::likeEmpty($profile->nick) ? __('No name') . '(id' . $profile->user_id . ')' : $profile->nick) ?> |
|
| 51 | + <?= Url::link(['profile/show', $profile->user_id], Str::likeEmpty($profile->nick) ? __('No name').'(id'.$profile->user_id.')' : $profile->nick) ?> |
|
| 52 | 52 | </h3> |
| 53 | 53 | <p><?= __('Registered') ?>: <?= Date::convertToDatetime($profile->created_at, Date::FORMAT_TO_DAY) ?></p> |
| 54 | 54 | <?php if (\App::$User->identity() !== null && $profile->user_id !== \App::$User->identity()->getId()): ?> |
| 55 | - <?= Url::link(['profile/messages', null, null, ['newdialog' => $profile->user_id]], '<i class="fa fa-pencil-square-o"></i> ' . __('New message'), ['class' => 'btn btn-info']) ?> |
|
| 55 | + <?= Url::link(['profile/messages', null, null, ['newdialog' => $profile->user_id]], '<i class="fa fa-pencil-square-o"></i> '.__('New message'), ['class' => 'btn btn-info']) ?> |
|
| 56 | 56 | <?php endif; ?> |
| 57 | 57 | </div> |
| 58 | 58 | <div class="col-md-2"> |