mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
Cleaned epub fonction
This commit is contained in:
parent
404adf970d
commit
e212e6b12a
@ -1237,14 +1237,14 @@ class Poche
|
|||||||
|
|
||||||
$book->setCoverImage("Cover.png", file_get_contents("themes/baggy/img/apple-touch-icon-152.png"), "image/png", $fullTitle);
|
$book->setCoverImage("Cover.png", file_get_contents("themes/baggy/img/apple-touch-icon-152.png"), "image/png", $fullTitle);
|
||||||
|
|
||||||
$cover = $content_start . _('<span style="text-align:center;display:block;">Produced by wallabag with PHPePub</span>') . $bookEnd;
|
$cover = $content_start . '<div style="text-align:center;"><p>' . _('Produced by wallabag with PHPePub') . '</p><p>'. _('Please open <a href="https://github.com/wallabag/wallabag/issues" >an issue</a> if you have trouble with the display of this E-Book on your device.') . '</p></div>' . $bookEnd;
|
||||||
|
|
||||||
//$book->addChapter("Table of Contents", "TOC.xhtml", NULL, false, EPub::EXTERNAL_REF_IGNORE);
|
//$book->addChapter("Table of Contents", "TOC.xhtml", NULL, false, EPub::EXTERNAL_REF_IGNORE);
|
||||||
$book->addChapter("Notices", "Cover2.html", $cover);
|
$book->addChapter("Notices", "Cover2.html", $cover);
|
||||||
|
|
||||||
$book->buildTOC();
|
$book->buildTOC();
|
||||||
|
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) { //set tags as subjects
|
||||||
$tags = $this->store->retrieveTagsByEntry($entry['id']);
|
$tags = $this->store->retrieveTagsByEntry($entry['id']);
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
$book->setSubject($tag['value']);
|
$book->setSubject($tag['value']);
|
||||||
@ -1258,10 +1258,8 @@ class Poche
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (DEBUG_POCHE) {
|
if (DEBUG_POCHE) {
|
||||||
$epuplog = $book->getLog();
|
$epuplog = $book->getLog();
|
||||||
$book->addChapter("Log", "Log.html", $content_start . $log->getLog() . "\n</pre>" . $bookEnd); // generation log
|
$book->addChapter("Log", "Log.html", $content_start . $log->getLog() . "\n</pre>" . $bookEnd); // log generation
|
||||||
// Only used in case we need to debug EPub.php.
|
|
||||||
//$book->addChapter("ePubLog", "ePubLog.html", $content_start . $epuplog . "\n</pre>" . $bookEnd);
|
|
||||||
}
|
}
|
||||||
$book->finalize();
|
$book->finalize();
|
||||||
$zipData = $book->sendBook($bookFileName);
|
$zipData = $book->sendBook($bookFileName);
|
||||||
|
Loading…
Reference in New Issue
Block a user