Better handling of missing covers

This commit is contained in:
Sébastien Lucas 2012-06-24 08:51:49 +02:00
parent 9c9eb0d2c3
commit 75e4362044
2 changed files with 7 additions and 0 deletions

View file

@ -149,7 +149,13 @@
?> ?>
<div class="book"> <div class="book">
<div class="cover"> <div class="cover">
<?php
if ($entry->book->hasCover) {
?>
<a class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="cover" /></a> <a class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="cover" /></a>
<?php
}
?>
</div> </div>
<div class="download"> <div class="download">
<?php <?php

View file

@ -111,6 +111,7 @@ margin-left: 10px;
float:left; float:left;
padding:5px 10px; padding:5px 10px;
min-width: 56px; min-width: 56px;
min-height: 70px;
} }
.download .download