Add notice on empty image gallery

This commit is contained in:
Felix Albrigtsen 2023-01-19 13:46:39 +01:00
parent 9f45271b18
commit 6bd3ce7731
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ $imageTemplate = '
];
echo strtr($imageTemplate, $vars);
}
if (count($images) == 0) {
echo "<h3 class='no-images'>Det er dessverre ingen bilder å vise.</h3>";
}
?>
</main>
<div id="modal" class="modal">