3
1
Back

(strpos($article['content'], 'wondermark.com/c') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } function rel2abs($rel, $base) { Various updates, additions elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // Girls with Slingshots elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // XKCD (alt tags we don't need.

New Pull Request