3
1
Back

Written for about a dozen webcomics. Examples: Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($doc === NULL) { foreach ($article['debugging'] as $msg) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } } return $article; } function hook_render_article($article) { return array(0.1, return array( $html, $content_type ); } /* OotS uses.

New Pull Request