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

@@ -41,9 +41,9 @@ class syntax_plugin_luxtools_files extends syntax_plugin_luxtools_abstract
$params['titlefile']
);
if ($result == []) {
$this->renderEmptyState($renderer, 'empty_files');
return true;
// For table style, pass the base directory as openlocation so the "Open Location" link is displayed.
if ($params['style'] === 'table') {
$params['openlocation'] = $pathInfo['root'] . $pathInfo['local'];
}
$output = new Output($renderer, $pathInfo['root'], $pathInfo['web'], $result);