2014-04-28 13:31:49 +03:00
|
|
|
|
{**
|
|
|
|
|
* Навигация на странице пользователя
|
|
|
|
|
* TODO: В бекенде проставить sMenuProfileItemSelect
|
|
|
|
|
*}
|
|
|
|
|
|
2014-10-16 10:31:34 +03:00
|
|
|
|
{include 'components/nav/nav.tpl' name='user' activeItem=$sMenuProfileItemSelect mods='pills stacked' hookParams=[ 'oUserProfile' => $oUserProfile ] items=[
|
2014-08-05 17:28:16 +03:00
|
|
|
|
[ 'name' => 'whois', 'text' => {lang name='user.profile.nav.info'}, 'url' => "{$oUserProfile->getUserWebPath()}" ],
|
|
|
|
|
[ 'name' => 'wall', 'text' => {lang name='user.profile.nav.wall'}, 'url' => "{$oUserProfile->getUserWebPath()}wall/", 'count' => $iCountWallUser ],
|
|
|
|
|
[ 'name' => 'created', 'text' => {lang name='user.profile.nav.publications'}, 'url' => "{$oUserProfile->getUserWebPath()}created/topics/", 'count' => $iCountCreated ],
|
|
|
|
|
[ 'name' => 'favourites', 'text' => {lang name='user.profile.nav.favourite'}, 'url' => "{$oUserProfile->getUserWebPath()}favourites/topics/", 'count' => $iCountFavourite ],
|
|
|
|
|
[ 'name' => 'friends', 'text' => {lang name='user.profile.nav.friends'}, 'url' => "{$oUserProfile->getUserWebPath()}friends/", 'count' => $iCountFriendsUser ],
|
|
|
|
|
[ 'name' => 'activity', 'text' => {lang name='user.profile.nav.activity'}, 'url' => "{$oUserProfile->getUserWebPath()}stream/" ],
|
2014-11-05 17:45:27 +02:00
|
|
|
|
[ 'name' => 'talk', 'text' => {lang name='user.profile.nav.messages'}, 'url' => "{router page='talk'}", 'count' => $iUserCurrentCountTalkNew, 'is_enabled' => $oUserCurrent && $oUserCurrent->getId() == $oUserProfile->getId() ],
|
|
|
|
|
[ 'name' => 'settings', 'text' => {lang name='user.profile.nav.settings'}, 'url' => "{router page='settings'}", 'is_enabled' => $oUserCurrent && $oUserCurrent->getId() == $oUserProfile->getId() ]
|
2014-04-28 13:31:49 +03:00
|
|
|
|
]}
|