Clean up unused syntax
This commit is contained in:
@@ -22,11 +22,9 @@ class syntax_plugin_luxtools_images extends syntax_plugin_luxtools_abstract
|
||||
{
|
||||
// Images syntax doesn't use some of the common params
|
||||
return [
|
||||
'style' => null,
|
||||
'tableheader' => null,
|
||||
'showsize' => null,
|
||||
'showdate' => null,
|
||||
'listsep' => null,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -62,19 +60,13 @@ class syntax_plugin_luxtools_images extends syntax_plugin_luxtools_abstract
|
||||
return true;
|
||||
}
|
||||
|
||||
$output = new Output($renderer, $pathInfo['root'], $pathInfo['web'], $items);
|
||||
|
||||
if ($format == 'xhtml') {
|
||||
$output->renderAsGallery($params);
|
||||
return true;
|
||||
// Images syntax only supports XHTML format (gallery rendering)
|
||||
if ($format !== 'xhtml') {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Fallback for non-XHTML formats: render as a list of links
|
||||
$params['style'] = 'list';
|
||||
$params['showsize'] = 0;
|
||||
$params['showdate'] = 0;
|
||||
$params['listsep'] = ', ';
|
||||
$output->renderAsList($params);
|
||||
$output = new Output($renderer, $pathInfo['root'], $pathInfo['web'], $items, $this);
|
||||
$output->renderAsGallery($params);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user