Skip to content

Commit

Permalink
Merge pull request #226 from Xmk/patch-4
Browse files Browse the repository at this point in the history
tabs hook
  • Loading branch information
oleg-demidov committed Oct 28, 2018
2 parents a4ae3f8 + 7a5050c commit 6e5b02b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/components/tabs/tabs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
*}

{$component = 'ls-tabs'}
{component_define_params params=[ 'activeTab', 'tabs', 'mods', 'classes', 'attributes' ]}
{component_define_params params=[ 'hook', 'hookParams', 'activeTab', 'tabs', 'mods', 'classes', 'attributes' ]}


{* Получаем вкладки установленные плагинами *}
{if $hook}
{hook run="tabs_{$hook}" assign='hookTabs' params=$hookParams tabs=$tabs array=true}
{$tabs = ( $hookTabs ) ? $hookTabs : $tabs}
{/if}


{block 'tabs_options'}{/block}

Expand Down Expand Up @@ -45,4 +53,4 @@
{/if}
{/foreach}
</div>
</div>
</div>

0 comments on commit 6e5b02b

Please sign in to comment.