{include file="public/include"}
{include file="public/head"}

{maccms:comment num="10" paging="yes" order="desc" by="id"}
- {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:comment}