还可以输入 200 字
{if condition="$comment.verify eq 1"} {/if}
{maccms:comment num="5" paging="yes" order="desc" by="id"} {/maccms:comment}

{maccms:foreach name="__LIST__" id="vo"}
- {php}$avatar_src = mac_get_user_portrait(isset($vo['user_id']) ? $vo['user_id'] : 0); $avatar_alt = isset($vo['comment_name']) ? (string)$vo['comment_name'] : ''; $avatar_user_id = isset($vo['user_id']) ? (int)$vo['user_id'] : 0;{/php}
  {include file="widget/user_avatar" avatar_user_id="$avatar_user_id" avatar_size="xs" avatar_variant="list" avatar_class="comm_avat part_roun" /}
  {$vo.comment_name}
  {$vo.comment_content|mac_em_replace}
  {maccms:foreach name="$vo.sub" id="child"}
  {php}$avatar_src = mac_get_user_portrait(isset($child['user_id']) ? $child['user_id'] : 0); $avatar_alt = isset($child['comment_name']) ? (string)$child['comment_name'] : ''; $avatar_user_id = isset($child['user_id']) ? (int)$child['user_id'] : 0;{/php}
  {include file="widget/user_avatar" avatar_user_id="$avatar_user_id" avatar_size="xs" avatar_variant="list" avatar_class="comm_avat part_roun" /}
  {$child.comment_name}
  {$child.comment_content|mac_em_replace}
  {/maccms:foreach}
{/maccms:foreach}

{if$__PAGING__.page_total>1}

- 首页
- 上一页
{maccms:foreach name="$__PAGING__.page_num" id="num"}
- {if condition="$__PAGING__['page_current'] eq $num"} {$num} {else} {$num} {/if}
{/maccms:foreach}
- {$__PAGING__.page_current}/{$__PAGING__.page_total}
- 下一页
- 尾页

共 {$__PAGING__.record_total} 条数据 / 当前 {$__PAGING__.page_current}/{$__PAGING__.page_total} 页
{elseif$__PAGING__.page_total<=0}

暂无留言

{/if}