mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-04 23:44:25 +03:00
14 lines
938 B
Smarty
14 lines
938 B
Smarty
{**
|
|
* Навигация в профиле пользователя в разделе "Публикации"
|
|
*}
|
|
|
|
{component 'nav'
|
|
name = 'profile_created'
|
|
activeItem = $sMenuSubItemSelect
|
|
mods = 'pills'
|
|
hookArguments = [ 'oUserProfile' => $oUserProfile ]
|
|
items = [
|
|
[ 'name' => 'topics', 'url' => "{$oUserProfile->getUserWebPath()}created/topics/", 'text' => {lang name='user.publications.nav.topics'}, 'count' => $iCountTopicUser ],
|
|
[ 'name' => 'comments', 'url' => "{$oUserProfile->getUserWebPath()}created/comments/", 'text' => {lang name='user.publications.nav.comments'}, 'count' => $iCountCommentUser ],
|
|
[ 'name' => 'notes', 'url' => "{$oUserProfile->getUserWebPath()}created/notes/", 'text' => {lang name='user.publications.nav.notes'}, 'count' => $iCountNoteUser, 'is_enabled' => $oUserCurrent && $oUserCurrent->getId() == $oUserProfile->getId() ]
|
|
]} |