This commit is contained in:
KONE SOREL 2025-12-29 13:42:14 +00:00
parent f4a0949365
commit af6b445abe

View File

@ -132,61 +132,15 @@
<!-- Zone d'information sur les extensions -->
<div class="alert alert-info mt-2 py-2 small">
<strong><?= _("Extensions autorisées :") ?></strong>
<!-- Documents -->
<div class="mt-2">
<span class="fw-bold text-dark"><?= _("Documents") ?> :</span>
<div class="d-flex flex-wrap mt-1">
<?php foreach ($tabExt as $ext): ?>
<?php if(isset($extStyles[$ext]) && $extStyles[$ext]["cat"] === "Documents"): ?>
<span class="badge bg-<?= $extStyles[$ext]["color"] ?> me-2 mb-2">
<i class="<?= $extStyles[$ext]["icon"] ?> me-1"></i><?= strtoupper($ext) ?>
</span>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<!-- Images -->
<div class="mt-2">
<span class="fw-bold text-dark"><?= _("Images") ?> :</span>
<div class="d-flex flex-wrap mt-1">
<?php foreach ($tabExt as $ext): ?>
<?php if(isset($extStyles[$ext]) && $extStyles[$ext]["cat"] === "Images"): ?>
<span class="badge bg-<?= $extStyles[$ext]["color"] ?> me-2 mb-2">
<i class="<?= $extStyles[$ext]["icon"] ?> me-1"></i><?= strtoupper($ext) ?>
</span>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<!-- Vidéos -->
<div class="mt-2">
<span class="fw-bold text-dark"><?= _("Vidéos") ?> :</span>
<div class="d-flex flex-wrap mt-1">
<?php foreach ($tabExt as $ext): ?>
<?php if(isset($extStyles[$ext]) && $extStyles[$ext]["cat"] === "Vidéos"): ?>
<span class="badge bg-<?= $extStyles[$ext]["color"] ?> me-2 mb-2">
<i class="<?= $extStyles[$ext]["icon"] ?> me-1"></i><?= strtoupper($ext) ?>
</span>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<!-- Audio -->
<div class="mt-2">
<span class="fw-bold text-dark"><?= _("Audio") ?> :</span>
<div class="d-flex flex-wrap mt-1">
<?php foreach ($tabExt as $ext): ?>
<?php if(isset($extStyles[$ext]) && $extStyles[$ext]["cat"] === "Audio"): ?>
<span class="badge bg-<?= $extStyles[$ext]["color"] ?> me-2 mb-2">
<i class="<?= $extStyles[$ext]["icon"] ?> me-1"></i><?= strtoupper($ext) ?>
</span>
<?php endif; ?>
<?php endforeach; ?>
</div>
<div class="d-flex flex-wrap mt-2">
<?php foreach ($tabExt as $ext): ?>
<?php
$style = isset($extStyles[$ext]) ? $extStyles[$ext] : ["color" => "secondary", "icon" => "fas fa-file"];
?>
<span class="badge bg-<?= $style["color"] ?> me-2 mb-2">
<i class="<?= $style["icon"] ?> me-1"></i><?= strtoupper($ext) ?>
</span>
<?php endforeach; ?>
</div>
</div>
</div>