Add a permalink to book (the little linkish thingy)

fix the image zoom in the book detail
Add book title to the book detail
clean the code a little (more to do)
This commit is contained in:
Sébastien Lucas 2013-01-03 21:40:43 +01:00
parent c094e1564c
commit 0ba361e434
6 changed files with 23 additions and 6 deletions

View file

@ -23,7 +23,7 @@ $book->getLinkArray ();
<?php
if ($book->hasCover) {
?>
<img src="fetch.php?id=<?php echo $book->id ?>&amp;height=150" alt="cover" />
<a href="fetch.php?id=<?php echo $book->id ?>"><img src="fetch.php?id=<?php echo $book->id ?>&amp;height=150" alt="cover" /></a>
<?php
}
?>
@ -38,7 +38,7 @@ $book->getLinkArray ();
}
?>
</div>
<div class="entryTitle"><?php echo htmlspecialchars ($book->title) ?></div>
<div class="entryTitle"><a rel="bookmark" href="<?php echo 'index.php' . $book->getUri () ?>"><img src="<?php echo getUrlWithVersion("images/Link.png") ?>" alt="permalink" /></a><?php echo htmlspecialchars ($book->title) ?></div>
<div class="entrySection">
<span><?php echo localize("authors.title") ?></span>
<div class="buttonEffect pad6">