3
1
Back

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 about() { return $rel; } if (ADD_IDS) { $new_element->appendChild($para_element); if ($alt_text && $alt_text != $article['title']){ $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { function about() { return $this->mangle_article($article); } function mangle_article($article) { if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debug'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Doghouse Diaries, which has broken.

New Pull Request