当前位置: eof; foreach($breadcrumbs as $bread) { if ($bread['id'] != $selectedId) { echo <<{$bread['name']} / eof; }else { echo <<{$bread['name']} eof; } } echo << eof; } ?> eof; $index ++; } } if (!empty($category['files'])) { //一级目录支持 $index = 0; foreach($category['files'] as $file) { if (!in_array($file['extension'], $imgExts)) {continue;} $title = !empty($file['title']) ? $file['title'] : $file['filename']; if ($index > 0) { echo << {$file['filename']} eof; }else { echo << {$file['filename']} eof; } $index ++; } } ?>