1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00
This commit is contained in:
Alexander Yakovlev 2018-01-15 17:40:28 +07:00
commit e1839a704f
10 changed files with 16 additions and 16 deletions

View file

@ -6,7 +6,7 @@
{block 'layout_options' append}
{$layoutNav = [[
hook => 'profile_created',
hook => 'profile_favourite',
hookParams => [ 'oUserProfile' => $oUserProfile ],
activeItem => $sMenuSubItemSelect,
items => [
@ -14,4 +14,4 @@
[ 'name' => 'comments', 'text' => {lang name='user.favourites.nav.comments'}, 'url' => "{$oUserProfile->getUserWebPath()}favourites/comments/", 'count' => $iCountCommentFavourite ]
]
]]}
{/block}
{/block}

View file

@ -3,12 +3,12 @@
*}
{$component = 'user-info-group'}
{component_define_params params=[ 'url', 'count', 'html', 'items', 'name', 'title', 'mods', 'classes', 'attributes' ]}
{component_define_params params=[ 'url', 'hookParams','count', 'html', 'items', 'name', 'title', 'mods', 'classes', 'attributes' ]}
{hook run="{$component}-{$name}-before"}
{* Получаем пункты установленные плагинами *}
{hook run="{$component}-{$name}-items" assign='itemsHook' items=$items array=true}
{hook run="{$component}-{$name}-items" assign='itemsHook' items=$items array=true params=$hookParams}
{$items = ($itemsHook) ? $itemsHook : $items}
{if $html || $items}

View file

@ -83,7 +83,7 @@
]}
{/if}
{component 'user.info-group' title={lang name='user.profile.personal.title'} items=$items}
{component 'user.info-group' title={lang name='user.profile.personal.title'} items=$items hookParams = [ 'user' => $user ]}
{**
* Активность
@ -185,7 +185,7 @@
]}
{/if}
{component 'user.info-group' name='activity' title={lang name='user.profile.activity.title'} items=$items}
{component 'user.info-group' name='activity' title={lang name='user.profile.activity.title'} items=$items hookParams = [ 'user' => $user ]}
</div>
<div class="user-info-group-col">
@ -218,7 +218,7 @@
]}
{/foreach}
{component 'user.info-group' name='social-networks' title={lang name='user.profile.social_networks'} items=$items}
{component 'user.info-group' name='social-networks' title={lang name='user.profile.social_networks'} items=$items hookParams = [ 'user' => $user ]}
</div>
</div>
@ -250,4 +250,4 @@
]}
{/capture}
{component 'user.info-group' name='wall' title={lang name='wall.title'} html=$smarty.capture.user_info_wall}
{component 'user.info-group' name='wall' title={lang name='wall.title'} html=$smarty.capture.user_info_wall hookParams = [ 'user' => $user ]}

View file

@ -7,7 +7,7 @@
{block 'layout_options' append}
{if $sEvent != 'add'}
{$layoutNav = [[
name => 'blog_edit',
hook => 'blog_edit',
activeItem => $sMenuItemSelect,
items => [
[ 'name' => 'profile', 'url' => "{router page='blog'}edit/{$blogEdit->getId()}/", 'text' => $aLang.blog.admin.nav.profile ],

View file

@ -32,7 +32,7 @@
]}
{$layoutNav = [[
name => 'content_form',
hook => 'content_form',
activeItem => $sMenuSubItemSelect,
items => $_items
]]}

View file

@ -7,7 +7,7 @@
{block 'layout_options' prepend}
{* Все / Лента *}
{$layoutNav = [[
name => 'topics',
hook => 'topics',
activeItem => $sMenuItemSelect,
showSingle => true,
items => [

View file

@ -12,7 +12,7 @@
{/if}
{$layoutNav[] = [
name => 'topics_sub',
hook => 'topics_sub',
activeItem => $sMenuSubItemSelect,
items => [
[ 'name' => 'good', 'url' => $sNavTopicsSubUrl, 'text' => {lang name='blog.menu.all_good'} ],

View file

@ -6,7 +6,7 @@
{block 'layout_options' append}
{$layoutNav = [[
name => 'profile_created',
hook => 'profile_created',
hookParams => [ 'oUserProfile' => $oUserProfile ],
activeItem => $sMenuSubItemSelect,
items => [

View file

@ -6,7 +6,7 @@
{block 'layout_options' append}
{$layoutNav = [[
name => 'profile_created',
hook => 'profile_favourite',
hookParams => [ 'oUserProfile' => $oUserProfile ],
activeItem => $sMenuSubItemSelect,
items => [
@ -14,4 +14,4 @@
[ 'name' => 'comments', 'text' => {lang name='user.favourites.nav.comments'}, 'url' => "{$oUserProfile->getUserWebPath()}favourites/comments/", 'count' => $iCountCommentFavourite ]
]
]]}
{/block}
{/block}

View file

@ -6,7 +6,7 @@
{block 'layout_options' append}
{$layoutNav = [[
name => 'talk',
hook => 'talk',
activeItem => $sMenuSubItemSelect,
items => [
[ 'name' => 'inbox', 'url' => "{router page='talk'}", 'text' => $aLang.talk.nav.inbox ],