3
1
Back

&& $article['debug']) { foreach ($article['debugging'] as $msg) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "

"; // only keep everything starting at the first // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Drugs and Wires elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // } elseif (strpos($article["link"], "explosm.net/comics") .

New Pull Request