@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | <?php |
| 38 | 38 | foreach (ProfileField::all() as $custom) { |
| 39 | - echo $form->fieldset()->text('custom_data.' . $custom->id); |
|
| 39 | + echo $form->fieldset()->text('custom_data.'.$custom->id); |
|
| 40 | 40 | } |
| 41 | 41 | ?> |
| 42 | 42 | |
@@ -20,10 +20,10 @@ discard block |
||
| 20 | 20 | $name = $user->profile->getNickname(); |
| 21 | 21 | |
| 22 | 22 | $this->layout('_layouts/default', [ |
| 23 | - 'title' => __('Profile') . ': ' . $name, |
|
| 23 | + 'title' => __('Profile').': '.$name, |
|
| 24 | 24 | 'breadcrumbs' => [ |
| 25 | 25 | Url::to('/') => __('Home'), |
| 26 | - __('Profile') . ': ' . $name |
|
| 26 | + __('Profile').': '.$name |
|
| 27 | 27 | ] |
| 28 | 28 | ]); |
| 29 | 29 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | <img src="<?= $user->profile->getAvatarUrl('big') ?>" class="img-fluid img-thumbnail" /> |
| 44 | 44 | <?php if ($ratingOn): |
| 45 | 45 | $rateClass = 'btn-secondary'; |
| 46 | - $rateValue = (int)$user->profile->rating; |
|
| 46 | + $rateValue = (int) $user->profile->rating; |
|
| 47 | 47 | if ($user->profile->rating > 0) { |
| 48 | 48 | $rateClass = 'btn-info'; |
| 49 | 49 | } elseif ($user->profile->rating < 0) { |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | <?php |
| 81 | 81 | $userMenu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs flex-column']); |
| 82 | 82 | if ($isSelf) { |
| 83 | - $userMenu->menu(['link' => ['profile/feed'], 'text' => '<i class="fa fa-rss-square"></i> ' . __('Feed'), 'html' => true]); |
|
| 84 | - $userMenu->menu(['link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> ' . __('Avatar'), 'html' => true]); |
|
| 85 | - $userMenu->menu(['link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> ' . __('Messages') . ' <span class="badge pm-count-block">0</span>', 'html' => true]); |
|
| 86 | - $userMenu->menu(['link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true]); |
|
| 87 | - } else if(\App::$User->isAuth()) { |
|
| 83 | + $userMenu->menu(['link' => ['profile/feed'], 'text' => '<i class="fa fa-rss-square"></i> '.__('Feed'), 'html' => true]); |
|
| 84 | + $userMenu->menu(['link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> '.__('Avatar'), 'html' => true]); |
|
| 85 | + $userMenu->menu(['link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> '.__('Messages').' <span class="badge pm-count-block">0</span>', 'html' => true]); |
|
| 86 | + $userMenu->menu(['link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true]); |
|
| 87 | + } else if (\App::$User->isAuth()) { |
|
| 88 | 88 | $userMenu->menu(['link' => ['profile/messages', null, ['newdialog' => $user->id]], 'text' => __('Write message')]); |
| 89 | 89 | $userMenu->menu(['link' => ['profile/ignore', null, ['id' => $user->id]], 'text' => __('Block')]); |
| 90 | 90 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | foreach ($hobbyArray as $item) { |
| 161 | 161 | $item = \App::$Security->strip_tags($item); |
| 162 | 162 | if (!Str::likeEmpty($item)) { |
| 163 | - echo Url::a(['profile/index', ['hobby', trim($item, ' ')]], $item, ['class' => 'label label-success']) . ' '; |
|
| 163 | + echo Url::a(['profile/index', ['hobby', trim($item, ' ')]], $item, ['class' => 'label label-success']).' '; |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | ?> |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | <div class="col-xs-8 col-md-10"> |
| 214 | 214 | <div class="h5" style="margin-top: 0;margin-bottom: 5px;"> |
| 215 | 215 | <i class="glyphicon glyphicon-user"></i> |
| 216 | - <?= Url::a(['profile/show', [$post->sender_id]], $post->senderUser->profile->getNickname(), ['style' => 'color: ' . $post->senderUser->role->color]) ?> |
|
| 216 | + <?= Url::a(['profile/show', [$post->sender_id]], $post->senderUser->profile->getNickname(), ['style' => 'color: '.$post->senderUser->role->color]) ?> |
|
| 217 | 217 | <small class="pull-right"><?= Date::humanize($post->updated_at); ?></small> |
| 218 | 218 | </div> |
| 219 | 219 | <div class="object-text"> |