3
1
Back

= hole_depth, center = true); // The Oatmeal elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Various updates, additions elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, &$article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src.

New Pull Request