Labels Milestones
BackWeedonwantcha foreach ($entries as $entry) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Wondermark (alt tag already present) // Wondermark (alt tag already present elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } Assorted updates elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // Girls with Slingshots $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry){ foreach ($entries as $entry){ $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; } } } // Three Panel Soul elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { //noop elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // make a 2d version v_wall(h=4, l=height-rail_clearance*2, th=right_rib_thickness); // top horizontal rib //} module make_surface(filename, h) { } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Gunnerkrigg Court elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $doc = new DOMDocument(); // replace the