3
1
Back

Plugin!
" . $e->getMessage(); } } // Drugs and Wires elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); } } Dead Philosophers elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Joy of Tech * Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Wondermark (alt tag already present elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { //noop elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Timothy Winchester (People I Know) $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE .

New Pull Request