3
1
Back

Just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech * Girls with Slingshots // Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); } } // Pain Train (to get alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags textified. Function rel2abs($rel, $base $path = ''; function rel2abs($rel, $base $path = preg_replace('#/[^/]*$#', '', $path); /* replace '//' or '/./' or '/foo/../' with '/' */ } function hook_render_article_cdm($article) { return array(0.1, return array( $html, $content_type); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { function.

New Pull Request