summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a6e9ad0)
Set the export option on the same page, same as done in producePdf
Move the ToC at the end of the book so the title page is the first one
$book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png');
}
$book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png');
}
/*
* Adding actual entries
*/
/*
* Adding actual entries
*/
// in filenames, we limit to A-z/0-9
$filename = preg_replace('/[^A-Za-z0-9\-]/', '', $entry->getTitle());
// in filenames, we limit to A-z/0-9
$filename = preg_replace('/[^A-Za-z0-9\-]/', '', $entry->getTitle());
- $titlepage = "<h1>".$entry->getTitle()."</h1>";
- $chapter = $content_start . $titlepage . $entry->getContent() . $bookEnd;
+ $titlepage = $content_start . "<h1>".$entry->getTitle()."</h1>" . $this->getExportInformation('PHPePub') . $bookEnd;
+ $book->addChapter("Title", 'Title.html', $titlepage, true, EPub::EXTERNAL_REF_ADD);
+ $chapter = $content_start . $entry->getContent() . $bookEnd;
$book->addChapter($entry->getTitle(), htmlspecialchars($filename) . '.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
}
$book->addChapter($entry->getTitle(), htmlspecialchars($filename) . '.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
}
- $book->addChapter('Notices', 'Cover2.html', $content_start . $this->getExportInformation('PHPePub') . $bookEnd);
return Response::create(
$book->getBook(),
return Response::create(
$book->getBook(),