$group){ $className = "emotion-group"; if ($groupIndex != 0){ $className .= " d-none"; } echo "
"; foreach ($group['list'] as $index => $emotion){ if (isset($emotion['title'])){ $title = $emotion['title']; }else{ $title = ""; } if ($emotion['type'] == 'text'){ echo "
" . esc_html($emotion['text']) . "
"; } if ($emotion['type'] == 'sticker'){ echo "
"; } } if (isset($group['description'])){ echo "
" . $group['description'] . "
"; } echo "
"; } ?>
$group){ $className = "emotion-group-name"; if ($groupIndex == 0){ $className .= " active"; } echo "
" . $group['groupname'] . "
"; } ?>