mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -188,7 +188,7 @@ class EntriesExport
|
|||
}
|
||||
$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);
|
||||
$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('Notices', 'Cover2.html', $content_start . $this->getExportInformation('PHPePub') . $bookEnd);
|
||||
|
||||
// Could also be the ISBN number, prefered for published books, or a UUID.
|
||||
$hash = sha1(sprintf('%s:%s', $this->wallabagUrl, implode(',', $entryIds)));
|
||||
$book->setIdentifier(sprintf('urn:wallabag:%s', $hash), EPub::IDENTIFIER_URI);
|
||||
|
|
Loading…
Reference in a new issue