1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub-skin.git synced 2024-04-27 14:49:27 +03:00
ifhub-skin/navs/nav.user.created.tpl

14 lines
938 B
Smarty
Raw Permalink Normal View History

2017-01-08 13:05:51 +02:00
{**
* Навигация в профиле пользователя в разделе "Публикации"
*}
{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() ]
]}