3
1
Back

Written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Something Positive // Something Positive elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "
" . $msg . ""; } if (ADD_IDS) { $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first foreach($imgs as $img){ $article['content'] .= "
Error processing via _comics plugin!" . $e->getMessage(); function mangle_article($article) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $doc = NULL) { if ($img->getAttribute('title')) { $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; } } Clean up code formatting; added a.

New Pull Request