Working with cops
--HG-- extra : rebase_source : 66639c415fc1286e8df50c255d83b0e8f92777d3
This commit is contained in:
parent
30f801443e
commit
ea3da650de
3 changed files with 37 additions and 17 deletions
|
@ -194,6 +194,14 @@ class EPub {
|
|||
$src = $this->toc_xpath->query('x:content', $node)->item(0)->attr('src');
|
||||
$src = str_replace ("/", "-SLASH-", $src);
|
||||
$contents[] = array("title" => $title, "src" => $src);
|
||||
|
||||
$insidenodes = $this->toc_xpath->query('x:navPoint', $node);
|
||||
foreach($insidenodes as $insidenode){
|
||||
$title = $this->toc_xpath->query('x:navLabel/x:text', $insidenode)->item(0)->nodeValue;
|
||||
$src = $this->toc_xpath->query('x:content', $insidenode)->item(0)->attr('src');
|
||||
$src = str_replace ("/", "-SLASH-", $src);
|
||||
$contents[] = array("title" => $title, "src" => $src);
|
||||
}
|
||||
}
|
||||
return $contents;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue