' . _('Produced by wallabag with PHPePub') . '
'. _('Please open an issue if you have trouble with the display of this E-Book on your device.') . '
' . $bookEnd;
-
- //$book->addChapter("Table of Contents", "TOC.xhtml", NULL, false, EPub::EXTERNAL_REF_IGNORE);
- $book->addChapter("Notices", "Cover2.html", $cover);
-
- $book->buildTOC();
-
- foreach ($entries as $entry) { //set tags as subjects
- $tags = $this->store->retrieveTagsByEntry($entry['id']);
- foreach ($tags as $tag) {
- $book->setSubject($tag['value']);
- }
-
- $log->logLine("Set up parameters");
-
- $chapter = $content_start . $entry['content'] . $bookEnd;
- $book->addChapter($entry['title'], htmlspecialchars($entry['title']) . ".html", $chapter, true, EPub::EXTERNAL_REF_ADD);
- $log->logLine("Added chapter " . $entry['title']);
- }
-
- if (DEBUG_POCHE) {
- $epuplog = $book->getLog();
- $book->addChapter("Log", "Log.html", $content_start . $log->getLog() . "\n" . $bookEnd); // log generation
- }
- $book->finalize();
- $zipData = $book->sendBook($bookFileName);
- }
}