Better handling of missing covers
This commit is contained in:
parent
9c9eb0d2c3
commit
75e4362044
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue