mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
28 lines
890 B
Smarty
28 lines
890 B
Smarty
{**
|
||
* Экшнбар
|
||
*
|
||
* @param array $items Массив с кнопками
|
||
* @param string $mods
|
||
* @param string $classes
|
||
* @param string $attributes
|
||
*}
|
||
|
||
{$component = 'actionbar'}
|
||
|
||
{if $smarty.local.items}
|
||
<ul class="{$component} clearfix {mod name=$component mods=$smarty.local.mods} {$smarty.local.classes}" {$smarty.local.attributes}>
|
||
{foreach $smarty.local.items as $item}
|
||
{if $item[ 'html' ]}
|
||
{$item[ 'html' ]}
|
||
{else}
|
||
{include './actionbar-item.tpl'
|
||
url = $item[ 'url' ]
|
||
classes = $item[ 'classes' ]
|
||
text = $item[ 'text' ]
|
||
icon = $item[ 'icon' ]
|
||
show = $item[ 'show' ]
|
||
attributes = $item[ 'attributes' ]}
|
||
{/if}
|
||
{/foreach}
|
||
</ul>
|
||
{/if} |