Reply to Or menu, advanced
Or menu, advanced Posted by Alexander Shatalov Smarty <table><tr> {foreach from=$menus.top item=m} <td class="l{if $m@first} mf{elseif $m@last} mt{/if}"><a href="{$m.url}"{if $m.target && $m.target!='_self'} target="{$m.target}"{else} onClick="return Link('{'URL'|Call:'ht':$m.url}',this)"{/if} id="menu_{$m.id}" class="menu_link link{if $url0==$m.name} ms{/if}"><span class="mf"></span>{$m.title}<span class="x">{$m.title}</span><span class="mr"></span></a> {if $m.sub} <ul id="m_{$m.id}"> {foreach from=$m.sub item=_m} <li class="l{if $_m@first} mf{elseif $_m@last} mt{/if}"><a href="{$_m.url}"{if $_m.target && $_m.target!='_self'} target="{$_m.target}"{else} onClick="return subLink('{$_m.url}','{$m.id}',this);"{/if} class="submenu_link link{if $url1==$_m.name} ms{/if}"><span class="mf"></span>{$_m.title}<span class="mr"></span></a></li> {/foreach} </ul> {/if} </td> {if $m.name=='demonstration'} <td class="l mf mt"><a href="javascript:;" class="menu_link link" onclick="to_download();"><span class="mf"></span>{'Download'|lang}<span class="x">{'_Download'|lang}</span><span class="mr"></span></a></td> {/if} {/foreach} </tr></table> |