苹果cms判断文字还是图片友情链接
{maccms:link num="'.($conch['theme']['links']['num']).'" type="all" order="asc" by="sort"}{if condition="$vo['link_type'] eq 0"}
<li><a class="text_muted" href="{$vo.link_url}" title="{$vo.link_name}" target="_blank">{$vo.link_name}</a>
</li>
{elseif condition="$vo['link_type'] eq 1"}
<li><a class="text_muted" href="{$vo.link_url}" title="{$vo.link_name}" target="_blank"><img src="{$vo.link_logo}" class="link_logo"></a>
</li>
{/if}
{/maccms:link}
这也太好了吧
页:
[1]