phpcms 友情链接的调用

phpcmsv9调用文字友情链接
 
{pc:link action="type_list" siteid="$siteid" order="listorder DESC" num="10" return="dat"}
{loop $dat $v}
<a href="{$v[url]}" target="_blank">{$v[name]}</a> |
{/loop}
{/pc}
 
phpcmsv9调用图片友情链接
 
{pc:link  action="type_list" siteid="$siteid" linktype="1" order="listorder DESC" num="8" return="pic_link"}
{loop $pic_link $v}
<li><a href="{$v['url']}" title="{$v['name']}" target="_blank"><img src="{$v[logo]}" width="88" height="31" /></a></li>
{/loop}
{/pc}
posted @ 2017-06-30 15:35  心若微漪  阅读(5745)  评论(0编辑  收藏  举报