Labels Milestones
BackMess with this. Less than 3, use the ARTICLE_FILTER hook. } function mangle_article($article) { // Poorly Drawn Lines // Berkeley Mews elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // And get blog entry $article['content'] .= "
Alt: " . $article['id']; $article = $this->alt_textify($article); $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Poly In Pictures } // Joy of Tech } // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = new DOMXpath($doc); elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { // Dead Philosophers elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE.