3
1
Back

Day 08c0726655 Added BCN, Something Positive Added BCN, Something Positive // Something Positive elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup) // Questionable Content (cleanup) // Questionable Content (cleanup) $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the source code. * @todo Add support for more shaft shapes (rectangular, gear shaped etc.). * @todo Adjust $fn based on the circumference surface. Enable_cone_indents = false; // Height of the cylinder at the first if(preg_match("@.*( New Pull Request