3
1
Back

Far simpler than this foreach ($imgs as $img) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { // Drugs and Wires elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Three Panel Soul elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Achewood (alt tag) // Achewood (alt tag) elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $matches[1]; } } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "" . $msg . ""; } } $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] .= "
$orig_content
"; } // Invisible Bread (make the bread visible) // Invisible Bread (make the bread visible if (preg_match("@.*(

New Pull Request