sorta fixed book popup
and broken several other things.. maybe.. ><
This commit is contained in:
parent
5c7daaf21d
commit
b9cca99fc0
|
@ -20,16 +20,15 @@ $book->getLinkArray ();
|
||||||
<?php
|
<?php
|
||||||
if (isset ($page) && $page == Base::PAGE_BOOK_DETAIL) {
|
if (isset ($page) && $page == Base::PAGE_BOOK_DETAIL) {
|
||||||
?>
|
?>
|
||||||
<div class="bookdetail">
|
<div>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<div class="bookpopup">
|
<article class="bookpopup">
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="booke">
|
<span class="cover">
|
||||||
<div class="cover">
|
|
||||||
<?php
|
<?php
|
||||||
if ($book->hasCover) {
|
if ($book->hasCover) {
|
||||||
?>
|
?>
|
||||||
|
@ -37,21 +36,19 @@ $book->getLinkArray ();
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</span>
|
||||||
<div class="download">
|
|
||||||
<?php
|
<?php
|
||||||
foreach ($book->getDatas() as $data)
|
foreach ($book->getDatas() as $data)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<div class="button buttonEffect"><a href="<?php echo $data->getHtmlLink () ?>"><?php echo $data->format ?></a></div>
|
<h2 class="download"><a href="<?php echo $data->getHtmlLink () ?>"><?php echo $data->format ?></a></h2>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
<h1><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) ?></h1>
|
||||||
<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">
|
<h3><?php echo localize("authors.title") ?>: </h3>
|
||||||
<span><?php echo localize("authors.title") ?></span>
|
<p class="popupless">
|
||||||
<div class="buttonEffect pad6">
|
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($authors as $author) {
|
foreach ($authors as $author) {
|
||||||
|
@ -61,14 +58,12 @@ $book->getLinkArray ();
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</p><br />
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
if (count ($tags) > 0) {
|
if (count ($tags) > 0) {
|
||||||
?>
|
?>
|
||||||
<div class="entrySection">
|
<h3><?php echo localize("tags.title") ?>: </h3>
|
||||||
<span><?php echo localize("tags.title") ?></span>
|
<p class="popupless">
|
||||||
<div class="buttonEffect pad6">
|
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
|
@ -78,44 +73,36 @@ $book->getLinkArray ();
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</p><br />
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if (!is_null ($serie))
|
if (!is_null ($serie))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<div class="entrySection">
|
<h3><a href="index.php<?php echo str_replace ("&", "&", $serie->getUri ()) ?>"><?php echo localize("series.title") ?></a>: </h3>
|
||||||
<div class="buttonEffect pad6">
|
|
||||||
<a href="index.php<?php echo str_replace ("&", "&", $serie->getUri ()) ?>"><?php echo localize("series.title") ?></a>
|
|
||||||
</div>
|
|
||||||
<?php echo str_format (localize ("content.series.data"), $book->seriesIndex, htmlspecialchars ($serie->name)) ?>
|
<?php echo str_format (localize ("content.series.data"), $book->seriesIndex, htmlspecialchars ($serie->name)) ?>
|
||||||
</div>
|
<br />
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($book->getPubDate() != "")
|
if ($book->getPubDate() != "")
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<div class="entrySection">
|
|
||||||
<span><?php echo localize("pubdate.title") ?></span>
|
<h3><?php echo localize("pubdate.title") ?>: </h3>
|
||||||
<?php echo $book->getPubDate() ?>
|
<?php echo $book->getPubDate() ?>
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($book->getLanguages () != "")
|
if ($book->getLanguages () != "")
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<div class="entrySection">
|
<br />
|
||||||
<span><?php echo localize("config.Language.label") ?></span>
|
<h3><?php echo localize("config.Language.label") ?>: </h3>
|
||||||
<?php echo $book->getLanguages () ?>
|
<?php echo $book->getLanguages () ?>
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
<br />
|
||||||
<div class="clearer" />
|
<p><h4><?php echo localize("content.summary") ?></h4>
|
||||||
<hr />
|
<?php if (!isset ($page)) ?><?php echo $book->getComment (false) ?></p>
|
||||||
<div><?php echo localize("content.summary") ?></div>
|
</article>
|
||||||
<div class="content" <?php if (!isset ($page)) echo 'style="max-width:700px;"' ?>><?php echo $book->getComment (false) ?></div>
|
|
||||||
<hr />
|
|
||||||
</div>
|
|
30
style.css
30
style.css
|
@ -47,12 +47,14 @@ a:hover { color:#000; text-decoration: underline; }
|
||||||
.frontpage a:hover { display:inline-block; width: 100%; background-color: #778899;}
|
.frontpage a:hover { display:inline-block; width: 100%; background-color: #778899;}
|
||||||
|
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
Main container stuff goes here
|
Main container stuff goes here and other globals
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
.container{
|
.container{
|
||||||
background: #414141; border:1px solid #000; border-radius:10px;
|
background: #414141; border:1px solid #000; border-radius:10px;
|
||||||
max-width:800px;width:95%;margin:0 auto;position:relative; }
|
max-width:800px;width:95%;margin:0 auto;position:relative; }
|
||||||
|
|
||||||
|
|
||||||
|
.fancyabout { font-weight:400; text-decoration: none; }
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
Header stuff goes here
|
Header stuff goes here
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
@ -90,6 +92,7 @@ background-color: #fff;
|
||||||
|
|
||||||
article {
|
article {
|
||||||
border-bottom: 1px solid black;
|
border-bottom: 1px solid black;
|
||||||
|
max-width:800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------frontpage article-------------*/
|
/*-------------frontpage article-------------*/
|
||||||
|
@ -136,6 +139,31 @@ border-bottom: 1px solid black;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-------------books popup article-------------*/
|
||||||
|
.bookpopup h2{
|
||||||
|
margin: 15px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookpopup h3{
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookpopup p{
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookpopup h4{
|
||||||
|
border-top: 1px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popupless a{
|
||||||
|
font-weight: 100;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: darkgray;
|
||||||
|
background: radial-gradient(#666, black);
|
||||||
|
color: #EEE;
|
||||||
|
padding: 0 5px 0;
|
||||||
|
}
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
Footer stuff goes here
|
Footer stuff goes here
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
Loading…
Reference in a new issue