fenom/sandbox/templates/macros.tpl
2014-11-06 22:31:59 +03:00

14 lines
560 B
Smarty

{macro pills($title, $items, $active)}
<div class="header">
<ul class="nav nav-pills pull-right" role="tablist">
{foreach $items as $code => $item}
{if $code == $active}
<li role="presentation" class="{$code}"><a href="">{$item.name}</a></li>
{else}
<li role="presentation" class="active {$code}"><a href="{$item.url}">{$item.name}</a></li>
{/if}
{/foreach}
</ul>
<h3 class="text-muted">{$title}</h3>
</div>
{/macro}