Better book detail
This commit is contained in:
parent
b3eaeb8592
commit
2de35f9897
|
@ -21,29 +21,33 @@ $tags = $book->getTags ();
|
||||||
<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="entryTitle"><?php echo htmlspecialchars ($book->title) ?></div>
|
<div class="entryTitle"><?php echo htmlspecialchars ($book->title) ?></div>
|
||||||
<div class="entrySection"><?php echo localize("authors.title") ?></div>
|
<div class="entrySection">
|
||||||
<div class="buttonEffect pad6">
|
<span><?php echo localize("authors.title") ?></span>
|
||||||
|
<div class="buttonEffect pad6">
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($authors as $author) {
|
foreach ($authors as $author) {
|
||||||
if ($i > 0) echo ", ";
|
if ($i > 0) echo ", ";
|
||||||
?>
|
?>
|
||||||
<a href="index.php<?php echo str_replace ("&", "&", $author->getUri ()) ?>"><?php echo $author->name ?></a>
|
<a href="index.php<?php echo str_replace ("&", "&", $author->getUri ()) ?>"><?php echo $author->name ?></a>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="entrySection"><?php echo localize("tags.title") ?></div>
|
<div class="entrySection">
|
||||||
<div class="buttonEffect pad6">
|
<span><?php echo localize("tags.title") ?></span>
|
||||||
|
<div class="buttonEffect pad6">
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
if ($i > 0) echo ", ";
|
if ($i > 0) echo ", ";
|
||||||
?>
|
?>
|
||||||
<a href="index.php<?php echo str_replace ("&", "&", $tag->getUri ()) ?>"><?php echo $tag->name ?></a>
|
<a href="index.php<?php echo str_replace ("&", "&", $tag->getUri ()) ?>"><?php echo $tag->name ?></a>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer" />
|
<div class="clearer" />
|
||||||
|
|
12
style.css
12
style.css
|
@ -150,10 +150,14 @@ padding-top: 120px;
|
||||||
|
|
||||||
.entrySection
|
.entrySection
|
||||||
{
|
{
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entrySection span
|
||||||
|
{
|
||||||
font-style:italic;
|
font-style:italic;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
margin-top: 8px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -171,3 +175,7 @@ font-weight: bold;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pad6
|
||||||
|
{
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue