aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/PHPePub
diff options
context:
space:
mode:
Diffstat (limited to 'inc/3rdparty/libraries/PHPePub')
-rw-r--r--inc/3rdparty/libraries/PHPePub/EPub.php12
1 files changed, 7 insertions, 5 deletions
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 {
574 * @param string $mimetype Image mimetype, such as "image/jpeg" or "image/png". 574 * @param string $mimetype Image mimetype, such as "image/jpeg" or "image/png".
575 * @return bool $success 575 * @return bool $success
576 */ 576 */
577 function setCoverImage($fileName, $imageData = NULL, $mimetype = NULL) { 577 function setCover($fileName, $imageData = NULL, $mimetype = NULL, $coverText=NULL) {
578 if ($this->isFinalized || $this->isCoverImageSet || array_key_exists("CoverPage.html", $this->fileList)) { 578 if ($this->isFinalized || $this->isCoverImageSet || array_key_exists("CoverPage.html", $this->fileList)) {
579 return FALSE; 579 return FALSE;
580 } 580 }
@@ -621,12 +621,13 @@ class EPub {
621 . "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:epub=\"http://www.idpf.org/2007/ops\" xml:lang=\"en\">\n" 621 . "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:epub=\"http://www.idpf.org/2007/ops\" xml:lang=\"en\">\n"
622 . "\t<head>\n" 622 . "\t<head>\n"
623 . "\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n" 623 . "\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n"
624 . "\t\t<title>Cover Image</title>\n" 624 . "\t\t<title>Cover</title>\n"
625 . "\t\t<link type=\"text/css\" rel=\"stylesheet\" href=\"Styles/CoverPage.css\" />\n" 625 . "\t\t<link type=\"text/css\" rel=\"stylesheet\" href=\"Styles/CoverPage.css\" />\n"
626 . "\t</head>\n" 626 . "\t</head>\n"
627 . "\t<body>\n" 627 . "\t<body>\n"
628 . "\t\t" . $coverText . "\n"
628 . "\t\t<div>\n" 629 . "\t\t<div>\n"
629 . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 100%\"/>\n" 630 . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 40%\"/>\n"
630 . "\t\t</div>\n" 631 . "\t\t</div>\n"
631 . "\t</body>\n" 632 . "\t</body>\n"
632 . "</html>\n"; 633 . "</html>\n";
@@ -635,12 +636,13 @@ class EPub {
635 . "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:epub=\"http://www.idpf.org/2007/ops\">\n" 636 . "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:epub=\"http://www.idpf.org/2007/ops\">\n"
636 . "<head>" 637 . "<head>"
637 . "\t<meta http-equiv=\"Default-Style\" content=\"text/html; charset=utf-8\" />\n" 638 . "\t<meta http-equiv=\"Default-Style\" content=\"text/html; charset=utf-8\" />\n"
638 . "\t\t<title>Cover Image</title>\n" 639 . "\t\t<title>Cover</title>\n"
639 . "\t\t<link type=\"text/css\" rel=\"stylesheet\" href=\"Styles/CoverPage.css\" />\n" 640 . "\t\t<link type=\"text/css\" rel=\"stylesheet\" href=\"Styles/CoverPage.css\" />\n"
640 . "\t</head>\n" 641 . "\t</head>\n"
641 . "\t<body>\n" 642 . "\t<body>\n"
642 . "\t\t<section epub:type=\"cover\">\n" 643 . "\t\t<section epub:type=\"cover\">\n"
643 . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 100%\"/>\n" 644 . "\t\t" . $coverText . "\n"
645 . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 40%\"/>\n"
644 . "\t\t</section>\n" 646 . "\t\t</section>\n"
645 . "\t</body>\n" 647 . "\t</body>\n"
646 . "</html>\n"; 648 . "</html>\n";