' . e($message) . '

'; } function fws_packages_changelog(array $pkg): string { $html = '

Historique

'; if (empty($pkg['changelog'])) { $html .= fws_packages_empty('Historique en cours de rédaction.') . '
'; return $html; } $html .= '
    '; foreach ($pkg['changelog'] as $entry) { $html .= '
  1. ' . '' . e((string) ($entry['version'] ?? '—')) . '' . '' . (!empty($entry['notes']) ? '' . e((string) $entry['notes']) . '' : '') . '
  2. '; } $html .= '
'; return $html; } function fws_packages_screens(array $pkg): string { $html = '

Captures d\'écran

'; if (empty($pkg['screens'])) { $html .= fws_packages_empty("Captures d'écran à venir.") . '
'; return $html; } $html .= '
'; foreach ($pkg['screens'] as $screen) { $html .= '
'
            . e((string) ($screen['alt'] ?? ($pkg['name'] ?? ''))) . ''; if (!empty($screen['caption'])) { $html .= '
' . e((string) $screen['caption']) . '
'; } $html .= '
'; } $html .= '
'; return $html; } function fws_packages_links(array $pkg): string { $html = ''; return $html; } foreach ($pkg['links'] as $link) { $url = (string) ($link['url'] ?? ''); $external = (bool) preg_match('/^https?:\/\//i', $url); $html .= '' . e((string) ($link['label'] ?? '') !== '' ? (string) $link['label'] : $url) . ''; } $html .= ''; return $html; } function fws_packages_card(array $pkg, int $position): string { $latest = $pkg['latest'] ?? null; $latestText = ($latest !== null && ($latest['name'] ?? '') !== '') ? 'Dernière release : ' . $latest['name'] . (!empty($latest['date']) ? ' — ' . fws_format_date((string) $latest['date']) : '') : 'Aucune release publiée pour le moment.'; $html = '
' . '
' . '

' . e($pkg['name']) . '

' . '' . e($pkg['sinceLabel'] !== '' ? $pkg['sinceLabel'] : 'FWS') . '' . 'Voir en grand' . '
' . (!empty($pkg['tagline']) ? '

' . e($pkg['tagline']) . '

' : '') . '

' . e($latestText) . '

' . (!empty($pkg['description']) ? '

' . e($pkg['description']) . '

' : '') . '
' . '
' . fws_packages_changelog($pkg) . fws_packages_screens($pkg) . fws_packages_links($pkg) . '
' . '
'; return $html; } ?>

Paquets

Tous les outils développés pour FWS Linux, leur historique, leurs captures d'écran et les liens utiles.

$pkg): ?>