Labels Milestones
BackA quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech * Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "
$orig_content
"; //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { // Robot Hugs $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = preg_replace("@" . $entry->textContent . "
"; } } // Invisible Bread (make the bread visible if (preg_match("@.*(