diff --git a/epub.php b/epub.php index d2580cf..2c89575 100644 --- a/epub.php +++ b/epub.php @@ -136,7 +136,47 @@ $articleurl = str_replace('material', 'article/' . $entry->hash . '.json', $url); $articlejson = file_get_contents($articleurl); $article = json_decode($articlejson); - $epub->AddPage($article->title, false, $article->title); + + $content = '
' .$item->content . ''; + } + else if ($item->class == 'paragraphTitle') + { + $content .= '
' .$item->content . '
'; + } + } + } + } + + /*if ($article->imageUrl) + { + $epub->AddPage('', false, 'Page ' . $article->page, true); + }*/ + $epub->AddPage($content, false, $article->title); + } write_epub($epub); }