{# /** * @file * Default theme implementation for a link to a file. * * Available variables: * - attributes: The HTML attributes for the containing element. * - link: A link to the file. * - file_size: The size of the file. * - file: L'objet fichier (si fourni). * * @see template_preprocess_file_link() * * @ingroup themeable */ #} {# Si c’est une image PNG ou JPG → ajouter la classe popup-link #} {% if file.mime == 'image/png' or file.mime == 'image/jpeg' %} {{ link|replace({' {% if file_size %} ({{ file_size }}) {% endif %}