EntriesExport/epub: revert c779373f, move exportinfo to the end of the book
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
edd1825b58
commit
30cf72bf55
@ -188,7 +188,7 @@ class EntriesExport
|
|||||||
}
|
}
|
||||||
$filename = sha1($entry->getTitle());
|
$filename = sha1($entry->getTitle());
|
||||||
|
|
||||||
$titlepage = $content_start . '<h1>' . $entry->getTitle() . '</h1>' . $this->getExportInformation('PHPePub') . $bookEnd;
|
$titlepage = $content_start . '<h1>' . $entry->getTitle() . '</h1>' . $bookEnd;
|
||||||
$book->addChapter("Entry {$i} of {$entryCount}", "{$filename}_cover.html", $titlepage, true, EPub::EXTERNAL_REF_ADD);
|
$book->addChapter("Entry {$i} of {$entryCount}", "{$filename}_cover.html", $titlepage, true, EPub::EXTERNAL_REF_ADD);
|
||||||
$chapter = $content_start . $entry->getContent() . $bookEnd;
|
$chapter = $content_start . $entry->getContent() . $bookEnd;
|
||||||
|
|
||||||
@ -196,6 +196,8 @@ class EntriesExport
|
|||||||
$book->addChapter($entry->getTitle(), "{$filename}.html", $chapter, true, EPub::EXTERNAL_REF_ADD);
|
$book->addChapter($entry->getTitle(), "{$filename}.html", $chapter, true, EPub::EXTERNAL_REF_ADD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$book->addChapter('Notices', 'Cover2.html', $content_start . $this->getExportInformation('PHPePub') . $bookEnd);
|
||||||
|
|
||||||
// Could also be the ISBN number, prefered for published books, or a UUID.
|
// Could also be the ISBN number, prefered for published books, or a UUID.
|
||||||
$hash = sha1(sprintf('%s:%s', $this->wallabagUrl, implode(',', $entryIds)));
|
$hash = sha1(sprintf('%s:%s', $this->wallabagUrl, implode(',', $entryIds)));
|
||||||
$book->setIdentifier(sprintf('urn:wallabag:%s', $hash), EPub::IDENTIFIER_URI);
|
$book->setIdentifier(sprintf('urn:wallabag:%s', $hash), EPub::IDENTIFIER_URI);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user