@@ -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/messages'], '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/messages'], '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 | ?> |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | <div class="col-xs-8 col-md-10"> |
216 | 216 | <div class="h5" style="margin-top: 0;margin-bottom: 5px;"> |
217 | 217 | <i class="glyphicon glyphicon-user"></i> |
218 | - <?= Url::a(['profile/show', [$post->sender_id]], $post->senderUser->profile->getNickname(), ['style' => 'color: ' . $post->senderUser->role->color]) ?> |
|
218 | + <?= Url::a(['profile/show', [$post->sender_id]], $post->senderUser->profile->getNickname(), ['style' => 'color: '.$post->senderUser->role->color]) ?> |
|
219 | 219 | <small class="pull-right"><?= Date::humanize($post->updated_at); ?></small> |
220 | 220 | </div> |
221 | 221 | <div class="object-text"> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | // check if SAPI client == cli (php built-in dev server) |
15 | 15 | if (php_sapi_name() === 'cli-server') { |
16 | 16 | $clearPath = strtok($uriRequest, '?'); // fix file.css?version=1.2.3 or ?time marks |
17 | - $path = root . DIRECTORY_SEPARATOR . ltrim($clearPath, '/'); |
|
17 | + $path = root.DIRECTORY_SEPARATOR.ltrim($clearPath, '/'); |
|
18 | 18 | // if static file exist |
19 | 19 | if (is_file($path)) { |
20 | 20 | // check if it looks like standalone php script |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | |
30 | 30 | // get configs to prepare posible route to switch environment |
31 | -$configs = require(root . '/Private/Config/Default.php'); |
|
31 | +$configs = require(root.'/Private/Config/Default.php'); |
|
32 | 32 | // remove base path |
33 | 33 | $uriRequest = substr($uriRequest, strlen($configs['basePath'])); |
34 | 34 | $uriArray = explode('/', $uriRequest); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | $uriLoader = ucfirst(strtolower(str_replace('.', '', $uriLoader))); |
40 | 40 | |
41 | 41 | // if loader of interface is available - require it |
42 | -if (in_array($uriLoader, $loaderList, true) && file_exists(root . '/Loader/' . $uriLoader . '/index.php')) { |
|
43 | - require_once (root . '/Loader/' . $uriLoader . '/index.php'); |
|
42 | +if (in_array($uriLoader, $loaderList, true) && file_exists(root.'/Loader/'.$uriLoader.'/index.php')) { |
|
43 | + require_once (root.'/Loader/'.$uriLoader.'/index.php'); |
|
44 | 44 | } else { // else - try to load default interface |
45 | - require_once (root . '/Loader/Front/index.php'); |
|
45 | + require_once (root.'/Loader/Front/index.php'); |
|
46 | 46 | } |
47 | 47 | \ No newline at end of file |