3
1
Back

$article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Dead Philosophers Added BCN, Something Positive elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Two Lumps // Two Lumps elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = new DOMXPath($doc); return $xpath; } function mangle_article($article) { Added BCN, Something Positive $alt_text = $entry->getAttribute('title'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Invisible Bread (make the bread visible if (preg_match("@.*(Error processing via _comics plugin!
" . $e->getMessage(); } } Invisible Bread, Softer World (alt tags we don't need to call out for elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { //noop elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath.

New Pull Request