Labels Milestones
BackAs $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // Dinosaur Comics Cleanup // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Timothy Winchester (People I Know elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Dead Philosophers elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } Assorted updates Assorted updates jesus and mo, maintenance Fixes for CAD and sorcery101 Updated LICD, alter alt-textify to handle both title and alt tags if both exist achewood, gwss fix, fix for when invisible bread has no duty or obligation with respect to elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first if(preg_match("@.*(