Add all download link in book detail
This commit is contained in:
parent
06ce256e55
commit
43a739be1d
|
@ -14,6 +14,7 @@ $book = Book::getBookById($_GET["id"]);
|
||||||
$authors = $book->getAuthors ();
|
$authors = $book->getAuthors ();
|
||||||
$tags = $book->getTags ();
|
$tags = $book->getTags ();
|
||||||
$serie = $book->getSerie ();
|
$serie = $book->getSerie ();
|
||||||
|
$book->getLinkArray ();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="bookpopup">
|
<div class="bookpopup">
|
||||||
|
@ -21,6 +22,16 @@ $serie = $book->getSerie ();
|
||||||
<div class="cover">
|
<div class="cover">
|
||||||
<img src="fetch.php?id=<?php echo $book->id ?>&height=150" alt="cover" />
|
<img src="fetch.php?id=<?php echo $book->id ?>&height=150" alt="cover" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="download">
|
||||||
|
<?php
|
||||||
|
foreach ($config['cops_prefered_format'] as $format)
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<div class="button buttonEffect"><a href="<?php echo "download/" . $entry->book->format [$format][0] . "/" . urlencode ($entry->book->format [$format][1]) ?>"><?php echo $format ?></a></div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
<div class="entryTitle"><?php echo htmlspecialchars ($book->title) ?></div>
|
<div class="entryTitle"><?php echo htmlspecialchars ($book->title) ?></div>
|
||||||
<div class="entrySection">
|
<div class="entrySection">
|
||||||
<span><?php echo localize("authors.title") ?></span>
|
<span><?php echo localize("authors.title") ?></span>
|
||||||
|
|
Loading…
Reference in a new issue