当前位置: eof; foreach ($breadcrumbs as $bread) { if ($bread['id'] != $selectedId) { echo <<{$bread['name']} / eof; } else { echo <<{$bread['name']} eof; } } echo << eof; } ?> eof; $index++; } //分割目录和文件 echo ''; if (!empty($category['files']) && count($category['files']) > 3) { echo '
'; } echo '
'; } if (!empty($category['files'])) { //一级目录支持 $total = count($category['files']); //翻页支持 $pageStartIndex = ($viewData['page']-1) * $viewData['pageSize']; $index = 0; foreach ($category['files'] as $file) { if (!in_array($file['extension'], $imgExts)) { continue; } //翻页支持 if ($index < $pageStartIndex) { $index ++; continue; }else if ($index >= $pageStartIndex + $viewData['pageSize']) { break; } $title = !empty($file['title']) ? $file['title'] : $file['filename']; if ($index > 0) { echo << {$file['filename']}
image {$title}
eof; } else { echo << {$file['filename']}
image {$title}
eof; } $index++; } } ?>