Cloud New

Cloud New
Cloud June 12, 2026 5 Views

<?php

$image = '';

if (!empty($tutorial['main_image'])) {

   $image = '/uploads/' . $tutorial['main_image'];

} elseif (!empty($tutorial['default_image'])) {

   $image = '/uploads/categories/' . $tutorial['default_image'];

}

?>

<?php if ($image): ?>
<div class="tutorial-hero-image">
   <img src="<?= htmlspecialchars($image) ?>"
        alt="<?= htmlspecialchars($tutorial['title']) ?>">
</div>
<?php endif; ?>

Leave a Comment