Add serie in book detail

This commit is contained in:
Sébastien Lucas 2012-06-17 13:50:33 +02:00
parent 31b6333792
commit 3cee7cbd36
2 changed files with 15 additions and 0 deletions

View file

@ -13,6 +13,7 @@ require_once ("book.php");
$book = Book::getBookById($_GET["id"]);
$authors = $book->getAuthors ();
$tags = $book->getTags ();
$serie = $book->getSerie ();
?>
<div class="bookpopup">
@ -49,6 +50,19 @@ $tags = $book->getTags ();
?>
</div>
</div>
<?php
if (!is_null ($serie))
{
?>
<div class="entrySection">
<div class="buttonEffect pad6">
<a href="index.php<?php echo str_replace ("&", "&amp;", $serie->getUri ()) ?>"><?php echo localize("series.title") ?></a>
</div>
<?php echo str_format (localize ("content.series.data"), $book->seriesIndex, $serie->name) ?>
</div>
<?php
}
?>
</div>
<div class="clearer" />
<hr />

View file

@ -153,6 +153,7 @@ padding-top: 120px;
{
margin-top: 8px;
margin-bottom: 18px;
line-height: 1.5em;
}
.entrySection span