29 lines
1.0 KiB
PHP
29 lines
1.0 KiB
PHP
<?php
|
|
require_once __DIR__ . "/../config/db.php";
|
|
require_once __DIR__ . "/../controllers/CertificationsController.php";
|
|
|
|
$certifications = showThreeCertifications($mysqli);
|
|
?>
|
|
|
|
<?php if (!empty($certifications)): ?>
|
|
<?php
|
|
$delay = 1;
|
|
foreach ($certifications as $cert):
|
|
$delayClass = "reveal-delay-" . (($delay % 3 === 0) ? 3 : ($delay % 3));
|
|
?>
|
|
<div class="cert-card reveal <?php echo $delayClass; ?>">
|
|
<div class="cert-icon"><?php echo htmlspecialchars($cert['icon']); ?></div>
|
|
<div class="cert-info">
|
|
<h3><?php echo htmlspecialchars($cert['title']); ?></h3>
|
|
<p class="issuer"><?php echo htmlspecialchars($cert['issuer']); ?></p>
|
|
<span class="date">Issued <?php echo htmlspecialchars($cert['date_issued']); ?></span>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
$delay++;
|
|
endforeach;
|
|
?>
|
|
<?php else: ?>
|
|
<p style="color: var(--text-muted); grid-column: 1/-1; text-align:center; padding: 40px 0;">No certifications found.</p>
|
|
<?php endif; ?>
|