fenom/sandbox/templates/macros.tpl

14 lines
560 B
Smarty
Raw Normal View History

2014-11-06 22:31:59 +03:00
{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>
2013-09-02 17:40:58 +04:00
{/macro}