aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-05-16 16:49:09 +0200
committertcit <tcit@tcit.fr>2014-05-16 16:49:09 +0200
commite212e6b12acf19694ef854c011d04d8aa82aae68 (patch)
treef05dceb62c9084aa3252ab582a4696230f0291c2
parent404adf970d985da0f624c42a5aa5e9c63694b08d (diff)
downloadwallabag-e212e6b12acf19694ef854c011d04d8aa82aae68.tar.gz
wallabag-e212e6b12acf19694ef854c011d04d8aa82aae68.tar.zst
wallabag-e212e6b12acf19694ef854c011d04d8aa82aae68.zip
Cleaned epub fonction
-rwxr-xr-xinc/poche/Poche.class.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 92db7d1b..1b69cd61 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -1237,14 +1237,14 @@ class Poche
1237 1237
1238 $book->setCoverImage("Cover.png", file_get_contents("themes/baggy/img/apple-touch-icon-152.png"), "image/png", $fullTitle); 1238 $book->setCoverImage("Cover.png", file_get_contents("themes/baggy/img/apple-touch-icon-152.png"), "image/png", $fullTitle);
1239 1239
1240 $cover = $content_start . _('<span style="text-align:center;display:block;">Produced by wallabag with PHPePub</span>') . $bookEnd; 1240 $cover = $content_start . '<div style="text-align:center;"><p>' . _('Produced by wallabag with PHPePub') . '</p><p>'. _('Please open <a href="https://github.com/wallabag/wallabag/issues" >an issue</a> if you have trouble with the display of this E-Book on your device.') . '</p></div>' . $bookEnd;
1241 1241
1242 //$book->addChapter("Table of Contents", "TOC.xhtml", NULL, false, EPub::EXTERNAL_REF_IGNORE); 1242 //$book->addChapter("Table of Contents", "TOC.xhtml", NULL, false, EPub::EXTERNAL_REF_IGNORE);
1243 $book->addChapter("Notices", "Cover2.html", $cover); 1243 $book->addChapter("Notices", "Cover2.html", $cover);
1244 1244
1245 $book->buildTOC(); 1245 $book->buildTOC();
1246 1246
1247 foreach ($entries as $entry) { 1247 foreach ($entries as $entry) { //set tags as subjects
1248 $tags = $this->store->retrieveTagsByEntry($entry['id']); 1248 $tags = $this->store->retrieveTagsByEntry($entry['id']);
1249 foreach ($tags as $tag) { 1249 foreach ($tags as $tag) {
1250 $book->setSubject($tag['value']); 1250 $book->setSubject($tag['value']);
@@ -1258,10 +1258,8 @@ class Poche
1258 } 1258 }
1259 1259
1260 if (DEBUG_POCHE) { 1260 if (DEBUG_POCHE) {
1261 $epuplog = $book->getLog(); 1261 $epuplog = $book->getLog();
1262 $book->addChapter("Log", "Log.html", $content_start . $log->getLog() . "\n</pre>" . $bookEnd); // generation log 1262 $book->addChapter("Log", "Log.html", $content_start . $log->getLog() . "\n</pre>" . $bookEnd); // log generation
1263 // Only used in case we need to debug EPub.php.
1264 //$book->addChapter("ePubLog", "ePubLog.html", $content_start . $epuplog . "\n</pre>" . $bookEnd);
1265 } 1263 }
1266 $book->finalize(); 1264 $book->finalize();
1267 $zipData = $book->sendBook($bookFileName); 1265 $zipData = $book->sendBook($bookFileName);