3
1
Back

Want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Some comics supported elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } function hook_render_article($article) { $article['content'] .= "
$orig_content
"; } // Questionable Content (cleanup) $article['content'] .= "

$orig_content

"; //also append the blarg post.

New Pull Request