";
if ($isDir) {
echo "
✏️ Rename";
echo "
🗑️ Delete";
} else {
$ext = strtolower(pathinfo($item, PATHINFO_EXTENSION));
$editable = in_array($ext, ['txt', 'html', 'htm', 'css', 'js', 'php', 'xml', 'json', 'md', 'sql']);
if ($editable) {
echo "
✏️ Edit";
}
echo "
✏️ Rename";
echo "
🗑️ Delete";
}
echo "