3
1
Back

Just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function hook_render_article($article) { return $rel; } if (ADD_IDS) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // CTRL+ALT+DEL Sillies // Two Lumps elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } if(ADD_IDS){ $article['content'] .= "

" . $entry->textContent . ""; // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Poly In Pictures } // Scenes From A Multiverse Least I Could Do (wtf image size?) elseif (strpos($article['link.

New Pull Request