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">
|
<div class="galleryGalleryName">
|
||||||
<?php endif;
|
<?php endif;
|
||||||
if (!empty($legend)):
|
if (!empty($legend)):
|
||||||
|
$shortenedLegend = helper::subword($legend, 0, 25);
|
||||||
|
if ( strlen($shortenedLegend) < strlen($legend) ) $legend = $shortenedLegend.'...';
|
||||||
echo $legend;
|
echo $legend;
|
||||||
// nettoyage et affichage du nom des images
|
// nettoyage et affichage du nom des images
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue