Better handling of missing covers
This commit is contained in:
parent
9c9eb0d2c3
commit
75e4362044
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue