Labels Milestones
BackIt, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function about() { function about() { function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $img; } } module arrow_indicator() { } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; // Wondermark (alt tag already present foreach ($imgs as $img) { From 5e32fb4fc0953f2a10f8dc9cf7a0a3653bcbf4f2 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Some comics supported elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // replace the