mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
commit
62be4c7c56
|
@ -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}
|
||||
|
|
|
@ -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 ]}
|
|
@ -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 ],
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
]}
|
||||
|
||||
{$layoutNav = [[
|
||||
name => 'content_form',
|
||||
hook => 'content_form',
|
||||
activeItem => $sMenuSubItemSelect,
|
||||
items => $_items
|
||||
]]}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{block 'layout_options' prepend}
|
||||
{* Все / Лента *}
|
||||
{$layoutNav = [[
|
||||
name => 'topics',
|
||||
hook => 'topics',
|
||||
activeItem => $sMenuItemSelect,
|
||||
showSingle => true,
|
||||
items => [
|
||||
|
|
|
@ -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'} ],
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{block 'layout_options' append}
|
||||
{$layoutNav = [[
|
||||
name => 'profile_created',
|
||||
hook => 'profile_created',
|
||||
hookParams => [ 'oUserProfile' => $oUserProfile ],
|
||||
activeItem => $sMenuSubItemSelect,
|
||||
items => [
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{block 'layout_options' append}
|
||||
{$layoutNav = [[
|
||||
name => 'profile_favourite',
|
||||
hook => 'profile_favourite',
|
||||
hookParams => [ 'oUserProfile' => $oUserProfile ],
|
||||
activeItem => $sMenuSubItemSelect,
|
||||
items => [
|
||||
|
|
|
@ -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 ],
|
||||
|
|
Loading…
Reference in a new issue