1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/frontend/skin/developer/components/actionbar/actionbar.tpl
2014-12-05 18:49:29 +07:00

28 lines
903 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 array $attributes
*}
{$component = 'actionbar'}
{if $smarty.local.items}
<ul class="{$component} clearfix {cmods name=$component mods=$smarty.local.mods} {$smarty.local.classes}" {cattr list=$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}