迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
评论名字调用标签是什么
会员的id号:{$t['uid']} 会员头像:{dr_avatar($t['uid'])} 如果调用会员其他字段,必须先调用这句话: {php $user=dr_member_info($t['uid']);} 会员name:{$user.name} 会员username:{$user.username} 会员phone:{$user.phone} 会员email:{$user.email} 生成其他会员自定义字段: https://www.xunruicms.com/doc/code/field.html?--user
{$user.name}
<div class="swiper-wrapper"> {comment module=news order=avgsort num=10} <div class="swiper-slide review-item"> <svg class="avatar avatar--80" viewBox="0 0 84 84"> <g class="avatar__hexagon"> <image xlink:href="{dr_avatar($t['uid'])}" height="100%" width="100%" /> </g> </svg> {php $user=dr_member_info($t['uid']);} <h4 class="title title--h5">{$user.name}</h4> <p class="review-item__caption">{$t.content}</p> <p class="review-item__caption">{dr_date($t._inputtime, 'Y-m-d')}</p> </div> {/comment} </div>
<h4 class="title title--h5">{if $t.uid}{$user.name}{else}游客{/if}</h4>
<div class="swiper-wrapper"> <!-- Item review --> {comment module=news order=avgsort num=10} <div class="swiper-slide review-item"> <svg class="avatar avatar--80" viewBox="0 0 84 84"> <g class="avatar__hexagon"> <image xlink:href="{dr_avatar($t['uid'])}" height="100%" width="100%" /> </g> </svg> {php $user=dr_member_info($t['uid']);} <h4 class="title title--h5">{$user.name}</h4> <p class="review-item__caption">{$t.content}</p> <p class="review-item__caption">{dr_date($t._inputtime, 'Y-m-d')}</p> </div> {/comment} </div>
<div class="swiper-wrapper"> {comment module=news order=avgsort num=10} <div class="swiper-slide review-item"> <svg class="avatar avatar--80" viewBox="0 0 84 84"> <g class="avatar__hexagon"> <image xlink:href="{dr_avatar($t['uid'])}" height="100%" width="100%" /> </g> </svg> {php $user=dr_member_info($t['uid']);} <!-- <h4 class="title title--h5">{$user.name}</h4> --> <h4 class="title title--h5">{if $t.uid}{$user.name}{else}游客{/if}</h4> <p class="review-item__caption"><a href="">{$t.content}</a></p> <p class="review-item__caption">{dr_date($t._inputtime, 'Y-m-d')}</p> </div> {/comment} </div>