3
1
Back

Simpler than this foreach($imgs as $img){ $article['content'] .= "Error processing via _comics plugin!" . $e->getMessage(); function mangle_article($article) { Added BCN, Something Positive } if ($rel[0]=='#' || $rel[0]=='?') { $path = ''; function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { //noop $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ if (preg_match("@.*(get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup // only keep everything starting at the top surface of the Stick // } elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Three Panel Soul elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); // Awkward Zombie $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link.

New Pull Request