<ul>
  <{foreach item=link from=$block.links}>
    <li>

    <{if $link.show_banner == 1}>
      <a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>">

      <{if $link.width > 0 }>
        <img src="<{$link.banner}>" width="<{$link.width}>" border="0" alt="banner" />
      <{else}>
        <img src="<{$link.banner}>" border="0" alt="banner" />
      <{/if}>

      </a>
    <{/if}>

    <a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>"><{$link.title}></a> (<{$link.rates}>) 

    <{if $link.show_new == 1}>
      <img src="<{$block.module_url}>/images/new.gif" border="0" alt="new" />
    <{/if}>

    <{if $link.show_update == 1}>
      <img src="<{$block.module_url}>/images/update.gif" border="0" alt="update" />
    <{/if}>

    <{if $link.show_pop == 1}>
      <img src="<{$block.module_url}>/images/pop.gif" border="0" alt="popular" />
    <{/if}>

    </li>
  <{/foreach}>
</ul>
