diff options
author | tcit <tcit@tcit.fr> | 2014-05-14 22:03:16 +0200 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-05-14 22:03:16 +0200 |
commit | f2b6b4e23064c40cde9e2ad5327499589dee503b (patch) | |
tree | 9dc8fbe034293dccece1bec996a67c942dee8fa5 /inc/3rdparty/libraries/PHPePub/EPub.php | |
parent | 6a3c5101577d08d65c22706dea61bba23cca782b (diff) | |
download | wallabag-f2b6b4e23064c40cde9e2ad5327499589dee503b.tar.gz wallabag-f2b6b4e23064c40cde9e2ad5327499589dee503b.tar.zst wallabag-f2b6b4e23064c40cde9e2ad5327499589dee503b.zip |
Fix bugs and improved epub rendering
Diffstat (limited to 'inc/3rdparty/libraries/PHPePub/EPub.php')
-rw-r--r-- | inc/3rdparty/libraries/PHPePub/EPub.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/inc/3rdparty/libraries/PHPePub/EPub.php b/inc/3rdparty/libraries/PHPePub/EPub.php index e120b341..f1f41bd5 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 setCover($fileName, $imageData = NULL, $mimetype = NULL, $coverText=NULL) { | 577 | function setCoverImage($fileName, $imageData = NULL, $mimetype = NULL,$bookTitle) { |
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,13 +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</title>\n" | 624 | . "\t\t<title>Cover Image</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" . $bookTitle . "\n" |
629 | . "\t\t<div>\n" | 629 | . "\t\t<div>\n" |
630 | . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 40%\"/>\n" | 630 | . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 100%\"/>\n" |
631 | . "\t\t</div>\n" | 631 | . "\t\t</div>\n" |
632 | . "\t</body>\n" | 632 | . "\t</body>\n" |
633 | . "</html>\n"; | 633 | . "</html>\n"; |
@@ -636,13 +636,13 @@ class EPub { | |||
636 | . "<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" |
637 | . "<head>" | 637 | . "<head>" |
638 | . "\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" |
639 | . "\t\t<title>Cover</title>\n" | 639 | . "\t\t<title>Cover Image</title>\n" |
640 | . "\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" |
641 | . "\t</head>\n" | 641 | . "\t</head>\n" |
642 | . "\t<body>\n" | 642 | . "\t<body>\n" |
643 | . "\t\t<section epub:type=\"cover\">\n" | 643 | . "\t\t<section epub:type=\"cover\">\n" |
644 | . "\t\t" . $coverText . "\n" | 644 | . "\t" . $bookTitle . "\n" |
645 | . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 40%\"/>\n" | 645 | . "\t\t\t<img src=\"" . $imgPath . "\" alt=\"Cover image\" style=\"height: 30%\"/>\n" |
646 | . "\t\t</section>\n" | 646 | . "\t\t</section>\n" |
647 | . "\t</body>\n" | 647 | . "\t</body>\n" |
648 | . "</html>\n"; | 648 | . "</html>\n"; |