view shared_view/includes/menu.tt @ 16:e69c970c3ddd default tip

sync
author sergey
date Tue, 20 May 2014 01:28:48 +0400
parents d9551c7e7101
children
line wrap: on
line source

[% META class='IMPL::Web::View::TTMenuControl' %]
[% MACRO link(href,title) BLOCK -%]
<a href="$href" class="menu-item"><span class="menu-item-icon">&nbsp;</span>$title</a>
[%- END %]
[% MACRO span(title) BLOCK -%]
<span class="menu-item"><span class="menu-item-icon">&nbsp;</span>$title</span>
[%- END %]
<ul class="$class" id="$id">
[% FOREACH item IN items ~%]
    <li [% IF item.active %]class="active"[% END %]>[% item.href ? link(item.href,item.title) : span(item.title) %]</li>
[%~ END %]
</ul>