1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 21:34:25 +03:00
ifhub.club/application/frontend/skin/developer/components/actionbar/actionbar.tpl
2014-11-05 22:45:27 +07:00

28 lines
890 B
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Экшнбар
*
* @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}