limitation du nb de caractères de la légende affichée sous les vignettes
This commit is contained in:
parent
eda3d9d2bf
commit
495628d68e
|
@ -43,6 +43,8 @@ $get_location = albumHelper::gps_exif($picture);
|
|||
<div class="galleryGalleryName">
|
||||
<?php endif;
|
||||
if (!empty($legend)):
|
||||
$shortenedLegend = helper::subword($legend, 0, 25);
|
||||
if ( strlen($shortenedLegend) < strlen($legend) ) $legend = $shortenedLegend.'...';
|
||||
echo $legend;
|
||||
// nettoyage et affichage du nom des images
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue