调用友情链接范例
一、调用文字友链接(没有图标)
{if $_Y['basescript'] == 'index' && $links['text']} <dl> <dt>友情链接:</dt> {foreach $links['text'] as $v} <dl><a href="{$v['url']}" target="_blank">{$v['title']}</a></dl> {/foreach} </dl> {/if}
二、调用图标友情链接
{if $_Y['basescript'] == 'index' && $links['text']} <dl> <dt>友情链接:</dt> {foreach $links['text'] as $v} <dl><img src="{$v['pic']}@100w_200h.{$v['picsuffix']}" width="100" height="200" alt="{$v['title']}" /><a href="{$v['url']}" target="_blank">{$v['title']}</a></dl> {/foreach} </dl> {/if}
三、将所有友情链接以文字的形式调用出来
{if $_Y['basescript'] == 'index' && $links['text']} <dl> <dt>友情链接:</dt> {foreach $links['text'] as $v} <dl><a href="{$v['url']}" target="_blank">{$v['title']}</a></dl> {/foreach} {foreach $links['pic'] as $v} <dl><a href="{$v['url']}" target="_blank">{$v['title']}</a></dl> {/foreach} </dl> {/if}