3
1
Back

Dozen webcomics. Examples: * Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $img_tag . $article['content']; } Various updates, additions // PhD Unknown elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); //also get blog entry $entries = $xpath->query("//div[@id='signoff-wrapper']"); $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if (!$alt_text || strpos($article['title'], $title_text) !== False) { $alt_text = $entry->getAttribute('title'); $alt_text = $entry->getAttribute('alt'); $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($entry->getAttribute('title')); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; // only keep everything starting at the bottom of box [right_edge, -extra_depth], // top point? // Pain Train (to get alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { //no-op function rel2abs($rel, $base) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { } function hook_render_article($article) { return $this->mangle_article($article); } function get_content($link) { /** * Use this if you feel like it, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function rel2abs($rel, $base) { Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text function get_content($link) { .

New Pull Request