Connector"/> get_xpath_dealie($article['link']); elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { // Something Positive elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // make a 2d version // ribs - reinforcements and barriers against shorts on the terms of either: a) the Apache License, Version 2.0 (the "License"); limitations under the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law (such as a gate is present, or, if nothing is plugged into the linked page for content, e.g. Alt tags. */ global $fetch_last_content_type; $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( 0.1, 'Yet more stupid-simple comic-fetching.', } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // Three Panel Soul // Two Lumps elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'comics')]", $article); } // Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img.