diff options
Diffstat (limited to 'inc/poche/WallabagEBooks.class.php')
-rw-r--r-- | inc/poche/WallabagEBooks.class.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/inc/poche/WallabagEBooks.class.php b/inc/poche/WallabagEBooks.class.php index 42913ff8..ec1e4b27 100644 --- a/inc/poche/WallabagEBooks.class.php +++ b/inc/poche/WallabagEBooks.class.php | |||
@@ -120,8 +120,12 @@ class WallabagEpub extends WallabagEBooks | |||
120 | $book->addDublinCoreMetadata(DublinCore::CONTRIBUTOR, "PHP"); | 120 | $book->addDublinCoreMetadata(DublinCore::CONTRIBUTOR, "PHP"); |
121 | $book->addDublinCoreMetadata(DublinCore::CONTRIBUTOR, "wallabag"); | 121 | $book->addDublinCoreMetadata(DublinCore::CONTRIBUTOR, "wallabag"); |
122 | 122 | ||
123 | $cssData = "body {\n margin-left: .5em;\n margin-right: .5em;\n text-align: justify;\n}\n\np {\n font-family: serif;\n font-size: 10pt;\n text-align: justify;\n text-indent: 1em;\n margin-top: 0px;\n margin-bottom: 1ex;\n}\n\nh1, h2 {\n font-family: sans-serif;\n font-style: italic;\n text-align: center;\n background-color: #6b879c;\n color: white;\n width: 100%;\n}\n\nh1 {\n margin-bottom: 2px;\n}\n\nh2 {\n margin-top: -2px;\n margin-bottom: 2px;\n}\n"; | 123 | /* |
124 | 124 | * Line not used but planned to be used | |
125 | * | ||
126 | *$cssData = "body {\n margin-left: .5em;\n margin-right: .5em;\n text-align: justify;\n}\n\np {\n font-family: serif;\n font-size: 10pt;\n text-align: justify;\n text-indent: 1em;\n margin-top: 0px;\n margin-bottom: 1ex;\n}\n\nh1, h2 {\n font-family: sans-serif;\n font-style: italic;\n text-align: center;\n background-color: #6b879c;\n color: white;\n width: 100%;\n}\n\nh1 {\n margin-bottom: 2px;\n}\n\nh2 {\n margin-top: -2px;\n margin-bottom: 2px;\n}\n"; | ||
127 | */ | ||
128 | |||
125 | $log->logLine("Add Cover"); | 129 | $log->logLine("Add Cover"); |
126 | 130 | ||
127 | $fullTitle = "<h1> " . $this->bookTitle . "</h1>\n"; | 131 | $fullTitle = "<h1> " . $this->bookTitle . "</h1>\n"; |
@@ -179,8 +183,6 @@ class WallabagMobi extends WallabagEBooks | |||
179 | $mobi = new MOBI(); | 183 | $mobi = new MOBI(); |
180 | $content = new MOBIFile(); | 184 | $content = new MOBIFile(); |
181 | 185 | ||
182 | $messages = new Messages(); // for later | ||
183 | |||
184 | Tools::logm('Filling metadata for Mobi...'); | 186 | Tools::logm('Filling metadata for Mobi...'); |
185 | 187 | ||
186 | $content->set("title", $this->bookTitle); | 188 | $content->set("title", $this->bookTitle); |
@@ -242,10 +244,9 @@ class WallabagPDF extends WallabagEbooks | |||
242 | 244 | ||
243 | $pdf->writeHTMLCell(0, 0, '', '', $intro, 0, 1, 0, true, '', true); | 245 | $pdf->writeHTMLCell(0, 0, '', '', $intro, 0, 1, 0, true, '', true); |
244 | 246 | ||
245 | $i = 1; | ||
246 | Tools::logm('Adding actual content...'); | 247 | Tools::logm('Adding actual content...'); |
247 | foreach ($this->entries as $item) { | 248 | foreach ($this->entries as $item) { |
248 | $tags = $this->wallabag->store->retrieveTagsByEntry($entry['id']); | 249 | $tags = $this->wallabag->store->retrieveTagsByEntry($item['id']); |
249 | foreach ($tags as $tag) { | 250 | foreach ($tags as $tag) { |
250 | $pdf->SetKeywords($tag['value']); | 251 | $pdf->SetKeywords($tag['value']); |
251 | } | 252 | } |