Add single image display.

This commit is contained in:
2026-01-19 09:16:02 +01:00
parent 95a0e94b4a
commit 8aa022feff
14 changed files with 390 additions and 59 deletions

View File

@@ -54,14 +54,10 @@ class syntax_plugin_luxtools_directory extends syntax_plugin_luxtools_abstract
$params['titlefile']
);
if ($items == []) {
$this->renderEmptyState($renderer, 'empty_files');
return true;
}
// Always render as table style
$params['style'] = 'table';
// Render the table even if empty so the "Open Location" link is displayed.
$output = new Output($renderer, $pathInfo['root'], $pathInfo['web'], $items);
$output->renderAsFlatTable($params);
return true;