getThesisFiles($item['id']);
foreach ($files as $file) {
$ext = strtolower(pathinfo($file['file_path'], PATHINFO_EXTENSION));
if (in_array($ext, ['jpg', 'jpeg', 'png', 'gif']) && $file['file_type'] === 'main') {
$coverImage = $file['file_path'];
break;
}
}
}
?>
= htmlspecialchars($item['title']); ?>
= htmlspecialchars($item['authors'] ?? 'Auteur inconnu'); ?>
= htmlspecialchars($item['year']); ?>
$excerpt_length
? substr($synopsis, 0, $excerpt_length) . '...'
: $synopsis;
?>
= htmlspecialchars($description_excerpt); ?>