Labels Milestones
Back{ $img_tag = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL is ready! */ Assorted updates elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } //noop } // Jesus & Mo elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } Dead Philosophers elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@