Add single image display.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user