mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 17:34:26 +03:00
23 lines
625 B
Smarty
23 lines
625 B
Smarty
{**
|
|
* Выпадающее меню
|
|
*
|
|
* @param string name
|
|
* @param string text
|
|
* @param string activeItem
|
|
* @param array items
|
|
*}
|
|
|
|
{component_define_params params=[ 'items', 'name', 'text', 'activeItem', 'mods', 'classes', 'attributes' ]}
|
|
|
|
{component 'nav'
|
|
name = ( $name ) ? "{$name}_menu" : ''
|
|
activeItem = $activeItem
|
|
mods = 'stacked'
|
|
isSubnav = true
|
|
showSingle = true
|
|
classes = "ls-dropdown-menu js-ls-dropdown-menu {$classes}"
|
|
attributes = array_merge( $attributes|default:[], [
|
|
'role' => 'menu',
|
|
'aria-hidden' => 'true'
|
|
])
|
|
items = $items} |