Almost finish everything for bookdetail. re #73
Todo : Handle max-size correctly (only if inside a fancybox)
This commit is contained in:
parent
a0cb911ce9
commit
07a891377d
2
book.php
2
book.php
|
@ -131,6 +131,7 @@ class Book extends Base {
|
||||||
"detailUrl" => $this->getDetailUrl (),
|
"detailUrl" => $this->getDetailUrl (),
|
||||||
"rating" => $this->getRating (),
|
"rating" => $this->getRating (),
|
||||||
"pubDate" => $this->getPubDate (),
|
"pubDate" => $this->getPubDate (),
|
||||||
|
"languagesName" => $this->getLanguages (),
|
||||||
"authorsName" => $this->getAuthorsName (),
|
"authorsName" => $this->getAuthorsName (),
|
||||||
"tagsName" => $this->getTagsName (),
|
"tagsName" => $this->getTagsName (),
|
||||||
"seriesName" => $sn,
|
"seriesName" => $sn,
|
||||||
|
@ -144,6 +145,7 @@ class Book extends Base {
|
||||||
$out ["detailurl"] = $this->getDetailUrl (true);
|
$out ["detailurl"] = $this->getDetailUrl (true);
|
||||||
$out ["coverurl"] = Data::getLink ($this, "jpg", "image/jpeg", Link::OPDS_IMAGE_TYPE, "cover.jpg", NULL)->hrefXhtml ();
|
$out ["coverurl"] = Data::getLink ($this, "jpg", "image/jpeg", Link::OPDS_IMAGE_TYPE, "cover.jpg", NULL)->hrefXhtml ();
|
||||||
$out ["thumbnailurl"] = Data::getLink ($this, "jpg", "image/jpeg", Link::OPDS_THUMBNAIL_TYPE, "cover.jpg", NULL, NULL, 150)->hrefXhtml ();
|
$out ["thumbnailurl"] = Data::getLink ($this, "jpg", "image/jpeg", Link::OPDS_THUMBNAIL_TYPE, "cover.jpg", NULL, NULL, 150)->hrefXhtml ();
|
||||||
|
$out ["content"] = $this->getComment (false);
|
||||||
$out ["datas"] = array ();
|
$out ["datas"] = array ();
|
||||||
foreach ($this->getDatas() as $data) {
|
foreach ($this->getDatas() as $data) {
|
||||||
array_push ($out ["datas"], array ("format" => $data->format, "url" => $data->getHtmlLink ()));
|
array_push ($out ["datas"], array ("format" => $data->format, "url" => $data->getHtmlLink ()));
|
||||||
|
|
|
@ -64,7 +64,10 @@
|
||||||
"nextAlt" => localize ("paging.next.alternate"),
|
"nextAlt" => localize ("paging.next.alternate"),
|
||||||
"searchAlt" => localize ("search.alternate"),
|
"searchAlt" => localize ("search.alternate"),
|
||||||
"homeAlt" => localize ("home.alternate"),
|
"homeAlt" => localize ("home.alternate"),
|
||||||
"permalinkAlt" => localize ("permalink.alternate"));
|
"permalinkAlt" => localize ("permalink.alternate"),
|
||||||
|
"pubdateTitle" => localize("pubdate.title"),
|
||||||
|
"languagesTitle" => localize("language.title"),
|
||||||
|
"contentTitle" => localize("content.summary"));
|
||||||
|
|
||||||
$out ["containsBook"] = 0;
|
$out ["containsBook"] = 0;
|
||||||
if ($currentPage->containsBook ()) {
|
if ($currentPage->containsBook ()) {
|
||||||
|
|
|
@ -31,4 +31,19 @@
|
||||||
<h3><a href="{{=it.book.seriesurl}}">{{=it.i18n.seriesTitle}}</a> : </h3>{{=htmlEscape (it.book.seriesCompleteName)}}
|
<h3><a href="{{=it.book.seriesurl}}">{{=it.i18n.seriesTitle}}</a> : </h3>{{=htmlEscape (it.book.seriesCompleteName)}}
|
||||||
</p>
|
</p>
|
||||||
{{?}}
|
{{?}}
|
||||||
|
{{? it.book.pubDate != ""}}
|
||||||
|
<p class="popupless">
|
||||||
|
<h3>{{=it.i18n.pubdateTitle}}: </h3>{{=it.book.pubDate}}
|
||||||
|
</p>
|
||||||
|
{{?}}
|
||||||
|
{{? it.book.languagesName != ""}}
|
||||||
|
<p class="popupless">
|
||||||
|
<h3>{{=it.i18n.languagesTitle}}: </h3>{{=it.book.languagesName}}
|
||||||
|
</p>
|
||||||
|
{{?}}
|
||||||
|
{{? it.book.content != ""}}
|
||||||
|
<br />
|
||||||
|
<h4>{{=it.i18n.contentTitle}}</h4>
|
||||||
|
<div>{{=it.book.content}}</div>
|
||||||
|
{{?}}
|
||||||
</article>
|
</article>
|
Loading…
Reference in a new issue