Fix display when no cover is found

This commit is contained in:
Sébastien Lucas 2013-05-16 13:35:24 +02:00
parent 89f18ad34f
commit 38d1607458

View file

@ -225,13 +225,15 @@
{
?>
<article class="books">
<span class="cover">
<?php
if ($entry->book->hasCover) {
?>
<span class="cover"><a data-fancybox-group="group" class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="<?php echo localize("i18n.coversection") ?>" /></a></span>
<a data-fancybox-group="group" class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="<?php echo localize("i18n.coversection") ?>" /></a>
<?php
}
?>
</span>
<h2 class="download">
<?php
$i = 0;