Labels Milestones
Back$article); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Something Positive elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] = $matches[1]; // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= $aftercomic; } } // Awkward Zombie elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*(