苹果cms判断文字还是图片友情链接

{maccms:link num="'.($conch['theme']['links']['num']).'" type="all" order="asc" by="sort"}
{if condition="$vo['link_type&

[时间:04-12]    [浏览:]    [放入收藏夹]    [查看详情]
{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}

  本文转载自:精准像素:11px.cn ,感谢作者分享实用知识


标签: