Labels Milestones
BackUse center alignment. Control Labels Synth Wizards Modules Faceplate Style Notes Very much WIP; take these as suggestions until we get a bit organize a bit organize a bit further and run into hurdles. Title Label Control Labels Synth Wizards Modules Faceplate Style Notes Very much WIP; take these as suggestions until we get a bit 057198b8de MK VCO and Luthers Update README.md Update README.md 2015-02-23 04:37:33 -08:00 It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $article['content'] = $doc->saveXML(); } // Something Positive if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } Dead Philosophers elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // replace the