3
1
Back

Pitching up from a quote estimator tool, or if you feel like it, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function api_version() { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } function rel2abs($rel, $base if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if ($rel[0]=='#' || $rel[0]=='?') { return $this->mangle_article($article); } function mangle_article($article) { Added BCN, Something Positive elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Eat That Toast bog-standard example elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = preg_replace("@@", '', $article['content']); // Alice Grove (get bigger image elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Achewood.

New Pull Request