3
1
Back

Checks elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = new DOMXPath($doc); return $xpath; } function about() { function hook_render_article($article) { return $this->mangle_article($article); } function hook_render_article($article) { return $this->mangle_article($article); } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } else { return $base.$rel; } extract(parse_url($base)); $path = ''; foreach ($entries as $entry){ $article['content'] .= "
" . $msg . ""; } } return $result_html; } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL */ $abs = "$host$path/$rel"; function rel2abs($rel, $base) { if (GDORN_DEBUG && $article['debug']) { foreach ($article['debugging'] as $msg) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; .

New Pull Request