diff --git a/epub.php b/epub.php index f9f50ee..915ccd5 100644 --- a/epub.php +++ b/epub.php @@ -47,6 +47,7 @@ $author = $finder->query('//a[contains(@href, "biographie")]')->item(0)->textContent; $date = trim($finder->query('//time')->item(1)->textContent); $summary = $finder->query('//p[contains(@class, "news__heading__top__intro")]')->item(0)->textContent; + $category = trim($finder->query('//p[contains(@class,"news__heading__top__kicker")]')->item(0)->textContent); // strip images $toremove = $finder->query('//svg'); @@ -66,6 +67,7 @@ } $result = '
' . $category . '
'; $result .= '' . $author . '
'; $result .= '' . $date . '
'; $result .= '' . $summary . '
'; @@ -470,7 +472,7 @@ $date = $finder->query('//span[@class="date"]')->item(0)->textContent; $summary = $finder->query('//div[@class="extrait"]')->item(0)->textContent; - // tranform "zoom" divs into aside tags + // transform "zoom" divs into aside tags $zooms = $finder->query('//div[contains(@class,"gt_zoom")]'); foreach ($zooms as $zoom) {