From 4877836b12cde621a9c6200ec460ce025384ea35 Mon Sep 17 00:00:00 2001 From: tcit Date: Wed, 7 May 2014 12:40:09 +0200 Subject: Many improvements to epub produced : better cover, better tags --- inc/3rdparty/libraries/PHPePub/EPub.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'inc/3rdparty') diff --git a/inc/3rdparty/libraries/PHPePub/EPub.php b/inc/3rdparty/libraries/PHPePub/EPub.php index 0260ce4f..e120b341 100644 --- a/inc/3rdparty/libraries/PHPePub/EPub.php +++ b/inc/3rdparty/libraries/PHPePub/EPub.php @@ -574,7 +574,7 @@ class EPub { * @param string $mimetype Image mimetype, such as "image/jpeg" or "image/png". * @return bool $success */ - function setCoverImage($fileName, $imageData = NULL, $mimetype = NULL) { + function setCover($fileName, $imageData = NULL, $mimetype = NULL, $coverText=NULL) { if ($this->isFinalized || $this->isCoverImageSet || array_key_exists("CoverPage.html", $this->fileList)) { return FALSE; } @@ -621,12 +621,13 @@ class EPub { . "\n" . "\t\n" . "\t\t\n" - . "\t\tCover Image\n" + . "\t\tCover\n" . "\t\t\n" . "\t\n" . "\t\n" + . "\t\t" . $coverText . "\n" . "\t\t
\n" - . "\t\t\t\"Cover\n" + . "\t\t\t\"Cover\n" . "\t\t
\n" . "\t\n" . "\n"; @@ -635,12 +636,13 @@ class EPub { . "\n" . "" . "\t\n" - . "\t\tCover Image\n" + . "\t\tCover\n" . "\t\t\n" . "\t\n" . "\t\n" . "\t\t
\n" - . "\t\t\t\"Cover\n" + . "\t\t" . $coverText . "\n" + . "\t\t\t\"Cover\n" . "\t\t
\n" . "\t\n" . "\n"; -- cgit v1.2.3