[10.0.055] Aperçu dans gallery

This commit is contained in:
Fred Tempez 2020-04-06 10:14:52 +02:00
parent 96a8e2993f
commit d825de7b6c
2 changed files with 2 additions and 3 deletions

View File

@ -274,8 +274,7 @@ class gallery extends common {
template::text('legend[' . $fileInfos->getFilename() . ']', [
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'legend', str_replace('.','',$fileInfos->getFilename())])
]),
'<img src="'. str_replace('source','thumb',$directory) . '/' . $fileInfos->getFilename() . '">'
'<a href="'. $directory . '/' . $fileInfos->getFilename() .'" data-lity><img src="'. str_replace('source','thumb',$directory) . '/' . $fileInfos->getFilename() . '"></a>'
];
}
}

View File

@ -45,6 +45,6 @@
</div>
</div>
<?php if($module::$pictures): ?>
<?php echo template::table([4, 1, 6, 1], $module::$pictures, ['Image', 'Couverture','Légende','Aperçu']); ?>
<?php echo template::table([4, 1, 6, 1], $module::$pictures, ['Image', 'Couverture','Légende','']); ?>
<?php endif; ?>
<?php echo template::formClose(); ?>