企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ {loop table="article" tid="2,3,4" isall="1" ispage="1" limit="10" as="v"} 标题:{$v['title']} 简介:{$v['description']} 截取20个字:{fun newstr($v['description'],40)} 缩略图:{$v['litpic']} 时间:{fun date('Y-m-d',$v['addtime'])} 内容:{$v['body']} 其余内容按照统一规则:{$v[字段参数]} {/loop} 输出分页 <ul class="pagination"> #判断是否有分页 {if($v_listpage['list'])} #判断是否有上一页,如果没有,则输出:disabled <li class="page-item {if(!$v_listpage['prev'])}disabled{/if}"><a class="page-link" href="{$v_listpage['prev']}" aria-label="Previous"><span aria-hidden="true">«</span></a></li> {foreach $v_listpage['list'] as $ss} <li class="page-item {if($ss['num']==$v_listpage['current_num'])}active background{/if}"><a href="{$ss['url']}" class="page-link">{$ss['num']}</a></li> {/foreach} #判断是否有下一页,如果没有,则输出:disabled <li class="page-item {if(!$v_listpage['next'])}disabled{/if}"><a class="page-link" href="{$v_listpage['next']}" aria-label="Next"><span aria-hidden="true">»</span></a></li> {/if} </ul> ~~~