3
1
Back

- don't do manual connection to GND if you want to dig into the linked page for content, e.g. Alt tags. */ global $fetch_last_content_type; $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; function rel2abs($rel, $base) { if ($rel[0]=='#' || $rel[0]=='?') { return $this->mangle_article($article); } function hook_render_article($article) { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article_cdm($article) { } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // XKCD (alt tags we don't need.

New Pull Request